Skip to content

Instantly share code, notes, and snippets.

@jgamblin
Created May 15, 2017 14:12
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jgamblin/a70cefeba64e64edf252120bbd3fe505 to your computer and use it in GitHub Desktop.
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.
#!/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
@jgamblin
Copy link
Author

To Run:

chmod +x ms17010.sh
./ms17010.sh 192.168.0.1/24 < Change This.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment