summaryrefslogtreecommitdiff
path: root/zsh_functions.zsh
diff options
context:
space:
mode:
authorDan Fedele <dan.fedele@gmail.com>2022-11-07 11:36:13 -0500
committerGitHub <noreply@github.com>2022-11-07 11:36:13 -0500
commit4149814addc0747dc4e40590085ec4a626f9ae5a (patch)
tree78cc85e218e6367259aa0a1dd7032e9a68a31e7c /zsh_functions.zsh
parentc1c81a728173638abf84ad21df34d398fa956240 (diff)
parent27dc9030e0de0c6622ae3f2cde189988d4a8464a (diff)
Merge pull request #2 from AgroDan/dev
Dev
Diffstat (limited to 'zsh_functions.zsh')
-rw-r--r--zsh_functions.zsh17
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