From c012b2026d4908e8533e6d3c3d8b89d36b11f168 Mon Sep 17 00:00:00 2001 From: Dan Fedele Date: Mon, 12 Jun 2023 16:48:51 -0400 Subject: Now using ansible roles. also removed linpeass --- roles/custom-config/files/zsh_functions.zsh | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 roles/custom-config/files/zsh_functions.zsh (limited to 'roles/custom-config/files/zsh_functions.zsh') diff --git a/roles/custom-config/files/zsh_functions.zsh b/roles/custom-config/files/zsh_functions.zsh new file mode 100644 index 0000000..e6df6e0 --- /dev/null +++ b/roles/custom-config/files/zsh_functions.zsh @@ -0,0 +1,26 @@ +# This is a handy list of functions I use + +scan() { + SCANDIR="${PWD}/nmap_scans" + if [ -z $1 ]; + then + read "TARGET?Enter a target: " + else + TARGET=$1 + fi + + echo "Scanning ${TARGET}..." + mkdir -p $SCANDIR + sudo nmap -sS -sV -sC -oN $SCANDIR/initial-scan -v $TARGET + sudo nmap -sS -p- -oN $SCANDIR/allports -v0 $TARGET &disown + sudo nmap -sU -oN $SCANDIR/udpports -v0 $TARGET &disown +} + +# Get latest version of linpeas and download to current directory +alias getlinpeas='curl -L https://github.com/carlospolop/PEASS-ng/releases/latest/download/linpeas.sh > linpeas.sh' + +# I use this a ton +alias webserver='python -m http.server' + +# hey why not, change this number to your preferred revshell port. +alias revshell='ncat -lvnp 9090' \ No newline at end of file -- cgit v1.2.3