Advertisement
opexxx

nmapScan.sh

Jan 4th, 2016
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.56 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # -------------------------------------------------------------------------
  4. # Scan... alot.
  5. # -------------------------------------------------------------------------
  6. IP=$1
  7.  
  8.   echo "AVAILABLE OPTIONS
  9.  
  10.      1) -sS
  11.      2) -A -T3
  12.      3) -sV -T2
  13.      4) -sn
  14.      5) -sS -sU -T5 -A
  15.      6) -p 1-65535 -T4 -A
  16.      7) -A -Pn -T4
  17.      8) -sn --traceroute
  18.      9) --badsum
  19.     10) -sT -Pn --spoof-mac Cisco
  20.     11) -f
  21.     12) -sTU -p 137,138,139
  22.     13) -sTU -p 901
  23.     14) -sV -Pn -6
  24.     15) -O --osscan-guess
  25.     16) -sX -A
  26.     17) -sX -A -D192.168.1.5,10.5.1.2,172.1.2.4,3.4.2.1
  27.     18) -Pn -D192.168.1.5,10.5.1.2,172.1.2.4,3.4.2.1 --spoof-mac Cisco
  28.     19) --spoof-mac Cisco --data-length 9 -f -D 172.168.200.200,RND:5 ME -v -n -O -sS -sV -oA ~/Desktop/$IP --log-errors -append-output -p T:1-1024,1433,2222,2249,7778,8080,9999 --randomize-hosts  172.168.1.2
  29.     20) --script vuln
  30.     21) --script=smb-check-vulns.nse -p 445 U:137,138,T:139
  31.     22) -sC "not intrusive"
  32.     23) -sC "default or safe"
  33.     24) -sC "default and safe"
  34.     25) -sC (default or safe or intrusive) and not http-*
  35.     26) --script=auth*
  36.     27) --script=bit*
  37.     28) --script=broadcast*
  38.     29) --script=citrix*
  39.     30) --script=db2*
  40.     31) --script=dns*
  41.     32) --script=ftp*
  42.     33) --script=http*
  43.     34) --script=imap*
  44.     35) --script=ip*
  45.     36) --script=ldap*
  46.     37) --script=ms-sql*
  47.     38) --script=mysql*
  48.     39) --script=nessus*
  49.     40) --script=smb*
  50.     41) --script=smtp*
  51.     42) --script=socks*
  52.     43) --script=ssh*
  53.     44) --script=ssl*
  54.     45) --script=targets*
  55.     46) --script=x11*
  56.     47) --script=vnc*
  57.     48) --script-updatedb
  58.     49) NETCAT WEBSERVER SCAN "
  59.  
  60.     read n
  61.     case $n in
  62.         1) nmap -sS $IP;;
  63.         2) nmap -A -T3 IP;;
  64.         3) nmap -sV -T2 $IP;;
  65.         4) nmap -sn $IP;;
  66.         5) nmap -sS -sU -T5 -A $IP;;
  67.         6) nmap -p 1-65535 -T4 -A $IP;;
  68.         7) nmap -A -Pn -T4 $IP;;
  69.         8) nmap -sn --traceroute $IP;;
  70.         9) nmap --badsum $IP;;
  71.         10) nmap -sT -Pn --spoof-mac Cisco $IP;;
  72.         11) nmap -f $IP;;
  73.         12) nmap -sTU -p 137,138,139 $IP;;
  74.         13) nmap -sTU -p 901 $IP;;
  75.         14) nmap -sV -Pn -6 $IP;;
  76.         15) nmap -O --osscan-guess $IP;;
  77.         16) nmap -sX -A $IP;;
  78.         17) nmap -sX -A -D192.168.1.5,10.5.1.2,172.1.2.4,3.4.2.1 $IP;;
  79.         18) nmap -Pn -D192.168.1.5,10.5.1.2,172.1.2.4,3.4.2.1 --spoof-mac Cisco $IP;;
  80.         19) nmap --spoof-mac Cisco --data-length 9 -f -D 172.168.200.200,RND:5 ME -v -n -O -sS -sV -oA ~/Desktop/$IP --log-errors -append-output -p T:1-1024,1433,2222,2249,7778,8080,9999 --randomize-hosts $IP 172.168.1.2;;
  81.         20) nmap --script vuln $IP;;
  82.         21) nmap --script=smb-check-vulns.nse -p 445 U:137,138,T:139 $IP;;
  83.         22) nmap -sC "not intrusive" $IP;;
  84.         23) nmap -sC "default or safe" $IP;;
  85.         24) nmap -sC "default and safe" $IP;;
  86.         25) nmap -sC "(default or safe or intrusive) and not http-*" $IP;;
  87.         26) nmap --script=auth* $IP;;
  88.         27) nmap --script=bit* $IP;;
  89.         28) nmap --script=broadcast* $IP;;
  90.         29) nmap --script=citrix* $IP;;
  91.         30) nmap --script=db2* $IP;;
  92.         31) nmap --script=dns* $IP;;
  93.         32) nmap --script=ftp* $IP;;
  94.         33) nmap --script=http* $IP;;
  95.         34) nmap --script=imap* $IP;;
  96.         35) nmap --script=ip* $IP;;
  97.         36) nmap --script=ldap* $IP;;
  98.         37) nmap --script=ms-sql* $IP;;
  99.         38) nmap --script=mysql* $IP;;
  100.         39) nmap --script=nessus* $IP;;
  101.         40) nmap --script=smb* $IP;;
  102.         41) nmap --script=smtp* $IP;;
  103.         42) nmap --script=socks* $IP;;
  104.         43) nmap --script=ssh* $IP;;
  105.         44) nmap --script=ssl* $IP;;
  106.         45) nmap --script=targets* $IP;;
  107.         46) nmap --script=x11* $IP;;
  108.         47) nmap --script=vnc* $IP;;
  109.         48) nmap --script-updatedb;;
  110.         49) echo $IP && echo -e 'OPTIONS / HTTP/1.0\r\n\r\n' | ncat -v $IP 80;;
  111.          *) invalid option;;
  112.     esac
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement