PORT STATE SERVICE VERSION 22/tcp open ssh OpenSSH 8.2p1 Ubuntu 4ubuntu0.1 (Ubuntu Linux; protocol 2.0) | ssh-hostkey: | 3072 a3d84a89a9256d07c53d762806edd1c0 (RSA) | 256 e7b289055457dc02f48c3a7c558b51aa (ECDSA) |_ 256 fd77072b4a163a016be0000c0a36d82f (ED25519) 80/tcp open http Apache httpd 2.4.41 ((Ubuntu)) | http-robots.txt: 1 disallowed entry |_/tiki/ |_http-server-header: Apache/2.4.41 (Ubuntu) |_http-title: Apache2 Ubuntu Default Page: It works 139/tcp open netbios-ssn Samba smbd 4.6.2 445/tcp open netbios-ssn Samba smbd 4.6.2 MAC Address: 08:00:27:26:96:01 (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.6 Network Distance: 1 hop Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel
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 28.95 seconds
可以发现有samba服务,可以对samba进行枚举
用enum4linux跑一下可以找到silky的用户,用smbclient列举一下共享的资源
smbclient -L IP
1 2 3 4 5 6
Sharename Type Comment --------- ---- ------- print$ Disk Printer Drivers Notes Disk My Notes IPC$ IPC IPC Service (ubuntu server (Samba, Ubuntu))