Skip to content

Instantly share code, notes, and snippets.

@kjseefried
Created July 17, 2014 15:45
Show Gist options
  • Save kjseefried/fd1cf312895b95d5e142 to your computer and use it in GitHub Desktop.
Save kjseefried/fd1cf312895b95d5e142 to your computer and use it in GitHub Desktop.
Example of python rig to use nmap module
import nmap
nm=nmap.PortScanner()
nm.scan('10.1.0.0/16', '445', arguments='--script=/usr/local/share/nmap/scripts/smb-os-discovery.nse')
@mshingote
Copy link

Can we use some mechanism to get NMAP installed path? and then append script name to it scripts/smb-os-discovery.nse

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