- CherryTree - A hierarchical note-taking application with rich text and code support, perfect for OSCP.
- OffSec-Reporting - Pentest Reporting made easy: Design in HTML, Write in Markdown, Render to PDF. Self-hosted or Cloud.
- John Hammond - OSCP - Taking Notes & Resources.
- Conda - OSCP - How to Take Effective Notes.
- Elevate Cyber - My Top Note Taking Strategies for OSCP
It only takes a single step to set up: Copy-and-paste the following script to the end of ~/.zshrc.
if [ -z "${UNDER_SCRIPT}" ]; then
logdir=${HOME}/logs
logfile=${logdir}/$(date +%F.%H-%M-%S).$$.log
mkdir -p ${logdir}
export UNDER_SCRIPT=${logfile}
echo "The terminal output is saving to $logfile"
script -f -q ${logfile}
exit
fi
That's it. Now every command's input and output will be recorded and saved in a safe place under ~/logs/ with a timestamp. These changes will be effective in new windows/tabs.
Demo: Whenever a new shell session is created, the log path of that session is displayed.
View the logs by using cat. It will show the log content including the colors of previous inputs and outputs.