Vulnhub-Deathnote: 1
试试简单的渗透测试。(小灯表示并非简单QAQ
打开靶机以后看到:

而我也不知道密码说是,于是只能尝试扫描所有存活主机:
1 | sudo arp-scan xxx |
但是扫描出来发现没有靶机的IP啊)
推测是因为VMware的问题,网络适配器驱动可能不兼容导致没有成功从DHCP服务器获取到IP地址
那就需要手动设置IP)
(后面探索以后发现是因为网卡没有被启用,也没有获取 IP)
启用网卡以后DHCP获取IP
然后扫描存活主机得到:
1 | 192.168.216.131 |
服了第一步花了最长时间😭
然后使用nmap扫描端口看看:
回显:
1 | Starting Nmap 7.98 ( https://nmap.org ) at 2026-09-07 04:51 -0400 |
发现一个80端口http我们试着访问一下
发现显示无法访问但是url重定向为:
1 | http://deathnote.vuln/wordpress |
问了一下ds(没经验.jpg
发现应该是域名没有成功DNS映射到该IP地址上,于是我们尝试修改hosts文件:
1 | sudo nano /etc/hosts |
然后尝试在攻击机上访问:
1 | http://deathnote.vuln/wordpress |
成功出现页面:

然后就开始正式地渗透测试:
首先先扫描目录试试:
1 | dirsearch -u http://deathnote.vuln/ -e php,html,txt -t 30 -i 200 |

login.php是一个php的登录页面,但是我们并不知道用户名和密码
查看页面的HINT部分发现:
1 | Find a notes.txt file on server |
我们再次扫描一下:
1 | 这次范围变一下: |

notes.txt和user.txt分别是密码和用户名字典,尝试进行爆破:
1 | hydra -L user.txt -P notes.txt ssh://192.168.216.131 |
爆破结果:
1 | 用户:l |
尝试使用ssh连接登录:
1 | ssh l@192.168.216.131 |
输入密码后:
1 | Linux deathnote 4.19.0-17-amd64 #1 SMP Debian 4.19.194-2 (2021-06-21) x86_64 |
1 | l@deathnote:~$ pwd |
1 | ++++++++++[>+>+++>+++++++>++++++++++<<<<-]>>>>+++++.<<++.>>+++++++++++.------------.+.+++++.---.<<.>>++++++++++.<<.>>--------------.++++++++.+++++.<<.>>.------------.---.<<.>>++++++++++++++.-----------.---.+++++++..<<.++++++++++++.------------.>>----------.+++++++++++++++++++.-.<<.>>+++++.----------.++++++.<<.>>++.--------.-.++++++.<<.>>------------------.+++.<<.>>----.+.++++++++++.-------.<<.>>+++++++++++++++.-----.<<.>>----.--.+++..<<.>>+.--------.<<.+++++++++++++.>>++++++.--.+++++++++.-----------------. |
brainfuck解码得:
i think u got the shell , but you wont be able to kill me -kira
没什么用,看看其他目录:
1 | l@deathnote:~$ ls -la /opt/ |
有个L目录
1 | l@deathnote:~$ ls -la /opt/L/ |
cat kira-case得到密码的十六进制
转码得到:
kiraisevil
发现回到靶机以后可以登录,说明已经拿到靶机的最高权限,本次渗透测试结束。。
ps:真不简单啊QAQ
Leave a comment