Posts

Showing posts with the label rapid7

The Seven of Hearts

Image
Metasploitable 3 The Seven of Hearts For this one I used SSH with the Administrator account with the password that I guessed for another flag/card. I remembered there was a flag in the C:\inetpub\wwwroot folder and went to take a look at the folder:    root@igor-kali : ~/metasploitable3 # ssh Administrator@10.20.10.23 Administrator@10.20.10.23’s password: Last login: Sat Dec 17 12:41:58 2016 from 10.20.10.18 -sh-4.3$ pwd /cygdrive/c/Users/Administrator -sh-4.3$ cd ../../inetpub -sh-4.3$ pwd /cygdrive/c/inetpub -sh-4.3$ cd wwwroot -sh-4.3$ ls aspnet_client  caidao.asp  hahaha.jpg  index.html  seven_of_hearts.html   six_of_diamonds.zip  welcome.png I used Burp Suite to intercept the response with the whole URL generated by the JavaScript embedded in the HTML file Burp Suite showing base64 URL I saved the output to text file in my system and ran a quick perl script with a regex to extract only the base64 da...

The Seven of Spades

Image
Metasplopitable 3 The Seven of Spades Once I guessed the Administrator user's password I was able to login through SSH in the Metasploitable3 server root@igor-kali : ~ # ssh Administrator@10.20.10.19 Administrator@10.20.10.19's password: Permission denied, please try again. Administrator@10.20.10.19's password: -sh-4.3$ -sh-4.3$ pwd /cygdrive/c/Users/Administrator I started navigating through the folders and ended up in Users/Public/Documents and looking at the list of file I found a PDF file.  -sh-4.3$ cd Public -sh-4.3$ ls Desktop  Documents  Downloads  Favorites  Libraries  Music  Pictures  Videos  desktop.ini -sh-4.3$ cd Documents/ -sh-4.3$ ls My Music  My Pictures  My Videos  desktop.ini  jack_of_hearts.docx  seven_of_spades.pdf I downloaded the file using scp root@igor-kali : ~ # scp Administrator@10.20.10.19:/cygdrive/c/Users/Public/Documents/seven_of_spades.pdf . Adm...