3 packets received by filter, 0 packets dropped by kernel Ending arp-scan 1.10.0: 256 hosts scanned in 2.405 seconds (106.44 hosts/sec). 3 responded
┌──(root㉿kali)-[~/Desktop/tmp] └─# nmap 192.168.31.254 -p- Starting Nmap 7.95 ( https://nmap.org ) at 2025-07-17 23:30 EDT Nmap scan report for 192.168.31.254 Host is up (0.0020s latency). Not shown: 65532 closed tcp ports (reset) PORT STATE SERVICE 21/tcp open ftp 22/tcp open ssh 80/tcp open http MAC Address: 08:00:27:8A: AF: 88 (PCS Systemtechnik/Oracle VirtualBox virtual NIC)
Nmap done: 1 IP address (1 host up) scanned in 4.86 seconds
web 页面是生成一个随机的 8 位数,然后放进 password.log 中,肯定和密码有关系。
FTP
1 2 3 4 5 6
┌──(root㉿kali)-[~/Desktop/tmp] └─# ftp anonymous@192.168.31.254 Connected to 192.168.31.254. 220 220 Welcome to FTP Service Please use guest: guest to login 331 Please specify the password. Password:
class EventHandler(pyinotify.ProcessEvent): def process_IN_MODIFY(self, event): if event.pathname == PASSWORD_FILE: logger.info(f"Detected modification to {PASSWORD_FILE}") try:
if not os.path.exists(PASSWORD_FILE): open(PASSWORD_FILE, 'w').close() os.chmod(PASSWORD_FILE, 0o600) logger.info(f"Created password file at {PASSWORD_FILE}")
film@Paste:~$ sudo -l Matching Defaults entries for film on Paste: env_reset, mail_badpass, secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin
User film may run the following commands on Paste: (ALL) NOPASSWD: /usr/bin/paste