Skip to content

Instantly share code, notes, and snippets.

View KRKNUK's full-sized avatar

Jake KRKNUK

View GitHub Profile
@KRKNUK
KRKNUK / ports.py
Last active June 17, 2021 18:37 — forked from pry0cc/ports.py
Get all ports from an nmap XML output file in the host:ip format (updated to Python3)
#!/usr/bin/env python
## $ ports.py nmap.xml
## 8.8.8.8:80
## 8.8.8.8:443
## 8.8.8.8:3305
#install requirements: pip install python-libnmap
#uses python 2
#usage is something like ./python nmapParse.py scan.xml