🗣️Introduction

For the next few HTB entries the post will simply be my notes from Obsidian converted to WordPress. This is due to recent time constraints with my personal life not providing enough time to write out full guides. I do see the usefulness in the post though as the tags and information allow me to quickly reference how I handled certain aspects in the past.

🔎🦶Enumeration/Foothold

Copy

dig – Guessing the Trick.htb domain and finding a sub-domain

Copy

ffuf finding an additional sub-domain when I noticed preprod- :

Copy

ffuf – Finding an LFI Inject point in the page= parameter

Copy

Verified LFI with browser and used Michael user found to get SSH key passwd | id_rsa:

/etc/password file found via LFI.

/etc/password file found via LFI.

🔝Escalation to Root

Logging in as Michael:

Copy

Database Credentials found under Payroll sub-domain (not needed – possible secondary exploit method?):

Copy

Lines 274-279 – Found Username/Password for other sub-domain (not needed – possible secondary exploit method?):

Copy

Sudo -l shows fail2ban running and I can restart it:

Copy

Reading Grumpgeekwrite – Fail2Ban shows exploit available via fail2ban:

iptables-multiport.conf

Copy
Copy

Rooted

Copy

Rooted

Published On: July 12th, 2023 / Categories: HTB, Technology / Tags: , , , , , /

Leave A Comment