Created
May 15, 2017 14:12
-
-
Save jgamblin/a70cefeba64e64edf252120bbd3fe505 to your computer and use it in GitHub Desktop.
A simple script to check your network for MS17-010 vulnerability using NMAP.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ip=$1 | |
cd ~/Desktop | |
mkdir MS17010 | |
cd MS17010 | |
wget https://raw.githubusercontent.com/cldrn/nmap-nse-scripts/master/scripts/smb-vuln-ms17-010.nse | |
nmap -oN MS17010.txt -p 445 --script "smb-vuln-ms17-010.nse" $ip |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To Run:
chmod +x ms17010.sh
./ms17010.sh 192.168.0.1/24 < Change This.