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

Reading and Writing Files

Reading from and writing to files in Python.

Reading lines, then re-reading after seek(0):

#!/bin/python3

months = open("months.txt")
print(months.readlines()) # puts the data into a list [ ]
months.seek(0) # makes it so months.readlines can execute again
print(months.readlines())

for month in months:
    print(month.strip())

months.close()

Opening in append mode to add to a file:

#!/bin/python3

days = open("days.txt", "a")

days.write("Monday")

days.close()