This plugin integrates Nmap scanning into the PTT framework.
- Can saves scan results to
nmap_scans.dband locally. - XML output parsing for open ports and service detection.
- Recent results are viewable from the frontend and clickable to re-run.
- Results can be shared with PTT database for direct use by other plugins.
nmapinstalled and available in your systemPATH
Install dependencies:
pip install -r requirements.txtBuild the plugin:
pyinstaller --onefile --name nmap.plugin --add-data "web/index.html:." main.pyMove the plugin to PTT plugins folder.
Open port results sent to the PTT DB are stored with the user_id shared and the key open_ports
They are stored in key-value pairs in the DB row: {"ip": "192.168.0.1", "port": 22}, {"ip": "192.168.0.1", "port": 80}
An example of fetching these results can be seen in the example under example_db_fetch directory