boot767 notes · 24 posts

Every Shell Leaves a Trace

I keep what I learn about offensive security here: my notes from CTFs, certifications and university, plus the walkthroughs I write when a box is worth sharing. It's organized the way I work a box. Recon first, then a foothold, then privilege escalation, then the rest of the network.

latest transmission · 2026-11-19Collection of OSINT Tools and Resources
boot767 notes · 24 posts

Every Shell Leaves a Trace

I keep what I learn about offensive security here: my notes from CTFs, certifications and university, plus the walkthroughs I write when a box is worth sharing. It's organized the way I work a box. Recon first, then a foothold, then privilege escalation, then the rest of the network.

latest transmission · 2026-11-19Collection of OSINT Tools and Resources

Exposing Services with SSH Tunnels

SSH tunnels let you reach a service that a firewall blocks from the outside by forwarding its port over an SSH connection you control.

Reverse SSH port forwarding specifies that the given port on the remote server host is to be forwarded to the given host and port on the local side.

Local vs Remote Tunnels

-L is a local tunnel (YOU <-- CLIENT). If a site was blocked, you can forward the traffic to a server you own and view it. For example, if imgur was blocked at work, you can do:

ssh -L 9000:imgur.com:80 user@example.com

Going to localhost:9000 on your machine will load imgur traffic using your other server.

-R is a remote tunnel (YOU --> CLIENT). You forward your traffic to the other server for others to view. Similar to the example above, but in reverse.

Finding Listening Sockets

We will use a tool called ss to investigate sockets running on a host. Running ss -tulpn tells us what socket connections are running:

ss -tulpn
ArgumentDescription
-tDisplay TCP sockets
-uDisplay UDP sockets
-lDisplays only listening sockets
-pShows the process using the socket
-nDoesn't resolve service names

Exposing a Blocked Port

Suppose a service running on port 10000 is blocked via a firewall rule from the outside (visible from the IPtable list). Using an SSH tunnel we can expose the port to us locally.

From our local machine, run:

ssh -L 10000:localhost:10000 <username>@<ip>

Once complete, in your browser type "localhost:10000" and you can access the newly-exposed webserver.