Skip to content

Latest commit

 

History

History
56 lines (37 loc) · 2.57 KB

Taking-Notes.md

File metadata and controls

56 lines (37 loc) · 2.57 KB

OSCP Note-Taking Resources

My Shop Medium Github Buy Me A Coffee My GitBook X

Tools for Note-Taking

  • 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.

Tutorials and Guides for OSCP Note-Taking

Tips for Effective Note-Taking

Automate Saved shell output:

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.

image

View the logs by using cat. It will show the log content including the colors of previous inputs and outputs.

image