I would like to make a structure in this repo. The steps i would like to do are:
-
Download from raw.git.
-
Disable cheats within an interactive cheat sheet
-
Enable cheats within an interactive cheat sheet
i. Download from raw.git.
export repo="https://raw.githubusercontent.com/esp0xdeadbeef/cheat.sheets/main/bruteforce.cheat"
export repo="<raw_github_url>"
export output_dir="$HOME/.local/share/navi/cheats/$(echo $repo | awk -F '/' '{print $4"__"$5}')"
mkdir $output 2> /dev/null
wget $repo -P $output
ii. Disable cheats within an interactive cheat sheet
find ~/.local/share/navi/cheats/ -name '*.cheat' | grep <cheats_to_disable> | while read line; do mv $line $line.old; done
# or something like this:
find ~/.local/share/navi/cheats/ -name '*<cheats_to_disable>*.cheat' -exec echo mv {} {}.old \;
iii. Re enable (old) cheats within an interactive cheat sheet
find ~/.local/share/navi/cheats/ -name '*.cheat.old' | grep '<cheats_to_enable>' | while read line; do mv $line $(echo "$line" | sed 's/\.old//g' ); done
# or something like this (needs rename util `apt install rename -y`):
find ~/.local/share/navi/cheats/ -name '*<cheats_to_enable>*.cheat.old' -exec rename 's/\.old//;' {} \;
https://www.autopsy.com/download/ https://github.com/sleuthkit/sleuthkit/
https://github.com/davehardy20/sysinternals
accesschk.exe -ucqv [service_name] (requires sysinternals accesschk!)
add msfvenom cheats (key;val, searchable for exploit, maybe add a cron so this list is always accurate from my box)
echo "generating payload list: /tmp/msfpayloads";msfvenom --list payloads | tee /tmp/msfpayloads
tail -n +7 /tmp/msfpayloads | awk '{print $1}' | fzf
tail -n +7 /tmp/msfpayloads | fzf | awk '{print $1}'