Created
July 17, 2014 15:45
-
-
Save kjseefried/fd1cf312895b95d5e142 to your computer and use it in GitHub Desktop.
Example of python rig to use nmap module
This file contains 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
import nmap | |
nm=nmap.PortScanner() | |
nm.scan('10.1.0.0/16', '445', arguments='--script=/usr/local/share/nmap/scripts/smb-os-discovery.nse') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can we use some mechanism to get NMAP installed path? and then append script name to it scripts/smb-os-discovery.nse