Skip to content

Instantly share code, notes, and snippets.

@pathcl
Created September 16, 2015 19:18
Show Gist options
  • Select an option

  • Save pathcl/2481fcbd5f4d23527b9c to your computer and use it in GitHub Desktop.

Select an option

Save pathcl/2481fcbd5f4d23527b9c to your computer and use it in GitHub Desktop.
scan.py
#!/usr/bin/env python3
from nmap import PortScanner
netws = [
'a.b.c.d/24',
'a.b.c.d/23',
]
nm = PortScanner()
for key in netws:
nm.scan(key, '8443')
print(nm.csv())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment