diff options
author | Dan Fedele <dan.fedele@gmail.com> | 2020-05-09 10:32:11 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-09 10:32:11 -0400 |
commit | 33e553341ee97c7e1c27d263939c085412160a2a (patch) | |
tree | 55f252bcd95fd2dd9e1914d6b2b0b4df1188af4d /master-bash_functions | |
parent | 29770b55a97d5a3e016b47236bc8ae3a5eaf7b9c (diff) |
added master-bash_functions
Diffstat (limited to 'master-bash_functions')
-rw-r--r-- | master-bash_functions | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/master-bash_functions b/master-bash_functions new file mode 100644 index 0000000..c3e39f1 --- /dev/null +++ b/master-bash_functions @@ -0,0 +1,9 @@ +# This is a file I will store all bash functions I use + +scan() { + echo "Scanning with masscan..." + echo "If this takes way too long, ping $1 in a separate terminal" + echo "because masscan has a weird bug that holds connections open or something" + P=$(masscan -p 1-65535 -e tun0 --rate=1000 $1 | grep Discovered | awk '{print $4}' | cut -d/ -f1 | tr "\n" "," | sed 's/\,$/\n/') ; nmap -sC -sV -p $P -oN scanresults-$1.txt $1 + echo "Stored results in scanresults-$1.txt" +} |