123456789101112131415161718192021222324252627282930 |
- #!/bin/bash
- ips="$1"
- params="-Pn"
- echo "[*] Enumerating all SMB Shares"
- nmap -p 139,445 --script=smb-enum-shares -iL $ips -oA nmap/smb-enum-shares $params > /dev/null
- echo "[*] Enumerating SMB Vulnerability: MS06-025"
- nmap -p 139,445 --script=smb-vuln-ms06-025 -iL $ips -oA nmap/smb-vuln-ms06-025 $params > /dev/null
- echo "[*] Enumerating SMB Vulnerability: MS07-029"
- nmap -p 139,445 --script=smb-vuln-ms07-029 -iL $ips -oA nmap/smb-vuln-ms07-029 $params > /dev/null
- echo "[*] Enumerating SMB Vulnerability: MS08-067"
- nmap -p 139,445 --script=smb-vuln-ms08-067 -iL $ips -oA nmap/smb-vuln-ms08-067 $params > /dev/null
- echo "[*] Enumerating SMB Vulnerability: MS10-054"
- nmap -p 139,445 --script=smb-vuln-ms10-054 -iL $ips -oA nmap/smb-vuln-ms10-054 $params > /dev/null
- echo "[*] Enumerating SMB Vulnerability: MS10-061"
- nmap -p 139,445 --script=smb-vuln-ms10-061 -iL $ips -oA nmap/smb-vuln-ms10-061 $params > /dev/null
- echo "[*] Enumerating SMB Vulnerability: ms17-010 (aka EternalBlue)"
- nmap -p 139,445 --script=smb-vuln-ms17-010 -iL $ips -oA nmap/smb-vuln-ms17-010 $params > /dev/null
- echo "[*] Enumerating SMB Vulnerability: regsvc-dos"
- nmap -p 139,445 --script=smb-vuln-regsvc-dos -iL $ips -oA nmap/smb-vuln-regsvc-dos $params > /dev/null
-
-
-
-
-
-
-
-
-
-
|