diff options
author | Dan Fedele <dan.fedele@gmail.com> | 2022-11-06 17:14:38 -0500 |
---|---|---|
committer | Dan Fedele <dan.fedele@gmail.com> | 2022-11-06 17:14:38 -0500 |
commit | d35bf7f3c52f5719558f73b77ed1fc34e6997e89 (patch) | |
tree | 808ce3eabe1ee04d642bd7fcc5085867cff09c0f /zsh_functions.zsh | |
parent | c1c81a728173638abf84ad21df34d398fa956240 (diff) |
Post CFC version test
Diffstat (limited to 'zsh_functions.zsh')
-rw-r--r-- | zsh_functions.zsh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/zsh_functions.zsh b/zsh_functions.zsh new file mode 100644 index 0000000..5dd56f6 --- /dev/null +++ b/zsh_functions.zsh @@ -0,0 +1,17 @@ +# 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 +}
\ No newline at end of file |