InfoSec Write-ups

A collection of write-ups from the best hackers in the world on topics ranging from bug bounties…

Follow publication

credit — hac kthebox

Member-only story

Hack The Box — UnderPass Walkthrough

Satyam Pathania
InfoSec Write-ups
Published in
3 min readFeb 6, 2025

This is how I hacked underpass machine easily and how can you do that yourself

I began the challenge by conducting a TCP scan using nmap to find open ports, but it yielded no valuable results. Switching tactics, I tried brute-forcing directories with ffuf, followed by an attempt to brute-force subdomains. Unfortunately, both approaches led to dead ends.

With no significant progress, I turned to UDP scanning:

NMAP SCAN

nmap -sS -sU -p- underpass.htb

┌─[root@parrot]─[/home/cryptoknights]
└──╼ #nmap -sS -sU -p- underpass.htb
Starting Nmap 7.94SVN ( https://nmap.org ) at 2025–02–05 13:42 IST
Stats: 0:01:29 elapsed; 0 hosts completed (1 up), 1 undergoing SYN Stealth Scan
This revealed UDP Port 161 (SNMP) was open. To probe further, I ran the following command:

This revealed UDP Port 161 (SNMP) was open. To probe further, I ran the following command:

snmpwalk

snmpwalk -v 2c -c public underpass.htb

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Published in InfoSec Write-ups

A collection of write-ups from the best hackers in the world on topics ranging from bug bounties and CTFs to vulnhub machines, hardware challenges and real life encounters. Subscribe to our weekly newsletter for the coolest infosec updates: https://weekly.infosecwriteups.com/

Written by Satyam Pathania

Hello, I'm Satyam Pathania, a cybersecurity writer. I simplify digital security to empower readers. Join me to explore tech, code, and books!

No responses yet

Write a response