Advertisement
Super7

BOOTER.SU - AutoScanner & Filter

Sep 21st, 2016
2,128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 5.85 KB | None | 0 0
  1. #!/bin/bash
  2. #    BOOTER.SU - AutoScanner & Filter
  3. #    Script Installer: http://pastebin.com/zPJpQrbW
  4. #
  5. #    This program is free software; you can redistribute it and/or modify
  6. #    it under the terms of the GNU General Public License as published by
  7. #    the Free Software Foundation; either version 2 of the License, or
  8. #    (at your option) any later version.
  9. #
  10. #    Available Methods to Scan:
  11. #      NTP
  12. #      SSDP
  13. #      DNS
  14. #      CHARGEN
  15. #      SNMPv2
  16. #      Sentinel
  17. #      NetBIOS
  18. #      MSSQL
  19. #      TS3
  20. #      PORTMAP
  21. #
  22. #
  23. #    2016-05-03: Initial version, tested with Ubuntu 15.04
  24.  
  25. if [ $# != 1 ]; then
  26. echo "BOOTER.SU - AutoScanner & Filter"
  27. echo "Usage: $0 [OPTION]"
  28. echo "Option: -ntp (Scan for NTP Amps)"
  29. echo "Option: -ssdp (Scan for SSDP Amps)"
  30. echo "Option: -dns (Scan for DNS Amps)"
  31. echo "Option: -chargen (Scan for CHARGEN Amps)"
  32. echo "Option: -snmp (Scan for SNMPv2 Amps)"
  33. echo "Option: -sentinel (Scan for Sentinel Amps)"
  34. echo "Option: -netbios (Scan for NetBIOS Amps)"
  35. echo "Option: -mssql (Scan for MSSQL Amps)"
  36. echo "Option: -ts3 (Scan for TS3 Amps)"
  37. echo "Option: -portmap (Scan for PORTMAP Amps)"
  38. echo "Option: -h (Help)"
  39. exit 0
  40. fi
  41.  
  42. while test $# -gt 0; do
  43.         case "$1" in
  44.                 -ntp)
  45.                 echo "IPv4 Range? (START END): "
  46.                 read range
  47.                 echo "Starting NTP Scan...."
  48.                 amp/ntpscan $range amplists/ntp-og.txt 4 10
  49.                 cd amplists
  50.                 echo "Filtering..."
  51.                 cat ntp-og.txt | sort -u > unique.txt
  52.                 cat unique.txt | awk '{print $1}' | sort -u | sort -R > ntp.txt
  53.                 rm -rf unique.txt
  54.                 ls -l
  55.                 cd ..
  56.                 exit 0
  57.                         ;;
  58.                 -ssdp)
  59.                 echo "IPv4 Range? (START END): "
  60.                 read range
  61.                 echo "Starting SSDP Scan...."
  62.                 amp/ssdpscan $range amplists/ssdp-og.txt 4 10
  63.                 cd amplists
  64.                 echo "Filtering..."
  65.                 cat ssdp-og.txt | sort -u > unique.txt
  66.                 cat unique.txt | awk '{print $1}' | sort -u | sort -R > ssdp.txt
  67.                 rm -rf unique.txt
  68.                 ls -l
  69.                 cd ..
  70.                 exit 0
  71.                         ;;
  72.                 -dns)
  73.                 echo "IPv4 Range? (START END): "
  74.                 read range
  75.                 echo "Starting DNS Scan...."
  76.                 amp/dnsscan $range amplists/dns-og.txt 4 10
  77.                 cd amplists
  78.                 echo "Filtering..."
  79.                 cat dns-og.txt | sort -u > unique.txt
  80.                 cat unique.txt | awk '{print $1}' | sort -u | sort -R > dns.txt
  81.                 rm -rf unique.txt
  82.                 ls -l
  83.                 cd ..
  84.                 exit 0
  85.                         ;;
  86.                 -chargen)
  87.                 echo "IPv4 Range? (START END): "
  88.                 read range
  89.                 echo "Starting CHARGEN Scan...."
  90.                 amp/chargenscan $range amplists/chargen-og.txt 4 10
  91.                 cd amplists
  92.                 echo "Filtering..."
  93.                 cat chargen-og.txt | sort -u > unique.txt
  94.                 cat unique.txt | awk '{print $1}' | sort -u | sort -R > chargen.txt
  95.                 rm -rf unique.txt
  96.                 ls -l
  97.                 cd ..
  98.                 exit 0
  99.                         ;;
  100.                 -snmp)
  101.                 echo "IPv4 Range? (START END): "
  102.                 read range
  103.                 echo "Starting SNMP Scan...."
  104.                 amp/snmpscan $range amplists/snmp-og.txt 4 10
  105.                 cd amplists
  106.                 echo "Filtering..."
  107.                 cat snmp-og.txt | sort -u > unique.txt
  108.                 cat unique.txt | awk '{print $1}' | sort -u | sort -R > snmp.txt
  109.                 rm -rf unique.txt
  110.                 ls -l
  111.                 cd ..
  112.                 exit 0
  113.                         ;;
  114.                 -sentinel)
  115.                 echo "IPv4 Range? (START END): "
  116.                 read range
  117.                 echo "Starting Sentinel Scan...."
  118.                 amp/sentinelscan $range amplists/sentinel-og.txt 4 10
  119.                 cd amplists
  120.                 echo "Filtering..."
  121.                 cat sentinel-og.txt | sort -u > unique.txt
  122.                 cat unique.txt | awk '{print $1}' | sort -u | sort -R > sentinel.txt
  123.                 rm -rf unique.txt
  124.                 ls -l
  125.                 cd ..
  126.                 exit 0
  127.                         ;;
  128.                 -netbios)
  129.                 echo "IPv4 Range? (START END): "
  130.                 read range
  131.                 echo "Starting NetBIOS Scan...."
  132.                 amp/netbiosscan $range amplists/netbios-og.txt 4 10
  133.                 cd amplists
  134.                 echo "Filtering..."
  135.                 cat netbios-og.txt | sort -u > unique.txt
  136.                 cat unique.txt | awk '{print $1}' | sort -u | sort -R > netbios.txt
  137.                 rm -rf unique.txt
  138.                 ls -l
  139.                 cd ..
  140.                 exit 0
  141.                         ;;
  142.                 -mssql)
  143.                 echo "IPv4 Range? (START END): "
  144.                 read range
  145.                 echo "Starting MSSQL Scan...."
  146.                 amp/mssqlscan $range amplists/mssql-og.txt 4 10
  147.                 cd amplists
  148.                 echo "Filtering..."
  149.                 cat mssql-og.txt | sort -u > unique.txt
  150.                 cat unique.txt | awk '{print $1}' | sort -u | sort -R > mssql.txt
  151.                 rm -rf unique.txt
  152.                 ls -l
  153.                 cd ..
  154.                 exit 0
  155.                         ;;
  156.                 -ts3)
  157.                 echo "IPv4 Range? (START END): "
  158.                 read range
  159.                 echo "Starting TS3 Scan...."
  160.                 amp/ts3scan $range amplists/ts3-og.txt 4 10
  161.                 cd amplists
  162.                 echo "Filtering..."
  163.                 cat ts3-og.txt | sort -u > unique.txt
  164.                 cat unique.txt | awk '{print $1}' | sort -u | sort -R > ts3.txt
  165.                 rm -rf unique.txt
  166.                 ls -l
  167.                 cd ..
  168.                 exit 0
  169.                         ;;
  170.                 -portmap)
  171.                 echo "IPv4 Range? (START END): "
  172.                 read range
  173.                 echo "Starting PORTMAP Scan...."
  174.                 amp/portmapscan $range amplists/portmap-og.txt 4 10
  175.                 cd amplists
  176.                 echo "Filtering..."
  177.                 cat portmap-og.txt | sort -u > unique.txt
  178.                 cat unique.txt | awk '{print $1}' | sort -u | sort -R > portmap.txt
  179.                 rm -rf unique.txt
  180.                 ls -l
  181.                 cd ..
  182.                 exit 0
  183.                         ;;
  184.                 -h|--help)
  185.                     echo "BOOTER.SU - AutoScanner & Filter"
  186.                     echo "Option: -ntp (Scan for NTP Amps)"
  187.                     echo "Option: -ssdp (Scan for SSDP Amps)"
  188.                     echo "Option: -dns (Scan for DNS Amps)"
  189.                     echo "Option: -chargen (Scan for CHARGEN Amps)"
  190.                     echo "Option: -snmp (Scan for SNMPv2 Amps)"
  191.                     echo "Option: -sentinel (Scan for Sentinel Amps)"
  192.                     echo "Option: -netbios (Scan for NetBIOS Amps)"
  193.                     echo "Option: -mssql (Scan for MSSQL Amps)"
  194.                     echo "Option: -ts3 (Scan for TS3 Amps)"
  195.                     echo "Option: -portmap (Scan for PORTMAP Amps)"
  196.                     exit 0
  197.                         ;;
  198.                 *)
  199.                     echo "Invalid Option. Exiting."
  200.                     exit 0
  201.                         ;;
  202.         esac
  203. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement