Posts

Showing posts with the label pentesting

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 Jack of Hearts

Image
Metasploitable 3 The Jack of Hearts I ssh'ed into the server with the Administrator credentials previously found. 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 files I found a Word .docx 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 with scp and doubled click on the file in Kali Linux and since I don’t have any Application to read .docx files, it saw it as a Zip file and opened in the Arc...

The Four of Clubs

Image
Metasploitable 3 The Four of Clubs Using the meterpreter’s search command I looked for the four of clubs and downloaded a WAV file. meterpreter > search -f four_of_clubs* Found 3 results...     C:\Program Files\OpenSSH\home\Public\Music\four_of_clubs.wav (550302 bytes)     C:\Users\Public\Music\four_of_clubs.wav (550302 bytes)     C:\vagrant\resources\flags\four_of_clubs.wav (550302 bytes) meterpreter > cd Users cmeterpreter > cd Public meterpreter > cd Music meterpreter > dir Listing: C:\Users\Public\Music ============================== Mode              Size    Type  Last modified              Name ----              ----    ----  -------------  ...

SANS HHC 2016 - Part 2: Awesome Package Konveyance

Image
SANS Holiday Hack Challenge 2016 Part 2: Awesome Package Konveyance Bushy Evergreen talking about APKTool 3) What username and password are embedded in the APK file? My new friend Bushy Evergreen told me about this tool called APKTOOL and point me to a nice video by none other than Joshua Wright himself about working with apk files and making changes in the smali code. I moved all my APK work to Kali Linux because... well… that’s where the good stuff is J  root@igor-kali : ~/hhack2016 # apktool d SantaGram_4.2.apk I: Using Apktool 2.2.0-dirty on SantaGram_4.2.apk I: Loading resource table... I: Decoding AndroidManifest.xml with resources... I: Loading resource table from file: /root/.local/share/apktool/framework/1.apk I: Regular manifest package... I: Decoding file-resources... I: Decoding values */* XMLs... I: Baksmaling classes.dex... I: Copying assets and libs... I: Copying unknown files... I: Copying original files... Ok, now...

SANS HHC 2016 - Part 1: A Most Curios Business Card

Image
SANS Holiday Hack Challenge 2016 Part 1: A Most Curios Business Card So Santa was kidnapped and our mission is to rescue him, lucky us he left us the first clue, he's business card Santa's Business Card 1) What is the secret message in Santa's tweets? With the business card we go to Twitter and look and Santa's tweets, probably full of fun and magic, right? :) Not so magical Tweet Then I remembered Josh mentioned something called the Twime Machine:  "I almost wish we had a Twime Machine to relive all those great Christmases of the past" And guess what? there's actually a website called twime machine that let's you look at old tweets from any public account and display them in a very simple format. Twime Machine - @Santawclaus - Screen Captured and rotated 90 degrees to the left   Copy Pasting into a Notepad So there you go, the answer is BUG BOUNTY 2) What is inside the ZIP file distributed by S...