Phishing
How I Pwned a Phishing Campaign : Hacking the Hackers

Intro:
So as usual I was working on a Monday Morning and I received an email from my company with a different domain which didn’t sounded suspicious as an organization does have multiple domains nor was there any keywords in email such as Urgent or Login or change your password so I let it go at that time.
Initial Foothold:
So I continued working but later my curiosity started bothering me to try something so I started reconnaissance on this domain starting with whois information for the domain but nothing there, the domain obviously has privacy protection enabled.
Later when I checked the URL:
https://redacted-phishing.com/?rid=qhALn63
It rang many bells for me, I recalled this pattern of URL in one of my Red Team Engagements and there it was rid parameter which was used in GoPhish, an open-source phishing toolkit which is really easy to setup. All I knew was gophish by default runs on port 3333 which will give me a gophish login page where I can try bruteforce and after I opened the port 3333

Tried default credentials for GoPhish it did not work then tried to enumerate different ports and I found something which Blew me.

Now I can confirm GoPhish is being used and my intuitions were right but the bigger picture over here is gophish.db so this is a SQLite Database file which stores all data for the GoPhish Application so the mistake hacker made here was to enable this server long enough for me to dump his database.
So I started analyzing SQLite Database File and started viewing all the users created in order to login to the GoPhish Console.

So there is only one user i.e. admin and we have password hash which I cracked to gain access to the console.

Here I could view all the Phishing campaigns created by them and also view the credentials entered by the victim.

Thanks for reading. Hope you liked the blog.
Follow Me @RootSploit for more awesome content.