Skip to content

Instantly share code, notes, and snippets.

@lucasmaurice
Last active April 22, 2024 10:44
Show Gist options
  • Save lucasmaurice/a90a01686c9c837150ce180712fcbc16 to your computer and use it in GitHub Desktop.
Save lucasmaurice/a90a01686c9c837150ce180712fcbc16 to your computer and use it in GitHub Desktop.
A Cheat Sheet for CTF.

Sysadmin CTF Cheat Sheet

SYSADMIN

STEPS

  • bash history

  • Check Home folder and inspect files

  • Check running process (ps aux)

  • Check files for containing infos (strarting with /etc) (grep -r "info" 2>/dev/null)

  • Check readables files (find . -readable -and -user $(whoami) 2>/dev/null | head -n 10)

  • Check accessibles commands (sudo -l)

  • Check by attaching to a running process (strace -ewrite -p $PID)

HINTS

  • Find a word in all file in the current password (grep -i flag *)

  • .E01 files : user ewflib

TOOLS

TO CHECK

Trainings

@lucasmaurice
Copy link
Author

find / \( -user root -o -group root \) \( -perm -u=s -o -perm -g=s \) -type f -ls 2>/dev/null

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment