GetPorts is a tool developed in Python 3, intended to collect all the ports of an XML report after a NMAP scan.
Besides, it copies them to the clipboard making easier the task, when a machine has many ports open. just use CTRL + V
- Download the GetPorts script.
- Install require modules
- Save the file in a system path (I rather /usr/local/bin)
- make sure that the permissions are 754
if you just write GetPorts in a console, you will receive:
Asking for a XML File as a parameter
If the XML file is valid, you will see the result
When is not a valid XML, you will see:
You MUST be SUDO to run this script.