{"id":22954806,"url":"https://github.com/sgabe/nmap2csv","last_synced_at":"2025-04-16T05:51:35.381Z","repository":{"id":24281292,"uuid":"27675976","full_name":"sgabe/nmap2csv","owner":"sgabe","description":"Nmap to CSV spreadsheet converter","archived":false,"fork":false,"pushed_at":"2016-11-02T12:56:41.000Z","size":8,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T05:04:41.943Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sgabe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-12-07T16:17:03.000Z","updated_at":"2023-12-04T06:43:39.000Z","dependencies_parsed_at":"2022-07-24T01:02:32.185Z","dependency_job_id":null,"html_url":"https://github.com/sgabe/nmap2csv","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgabe%2Fnmap2csv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgabe%2Fnmap2csv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgabe%2Fnmap2csv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgabe%2Fnmap2csv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sgabe","download_url":"https://codeload.github.com/sgabe/nmap2csv/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249205034,"owners_count":21229849,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-14T16:19:40.926Z","updated_at":"2025-04-16T05:51:35.356Z","avatar_url":"https://github.com/sgabe.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Nmap2CSV\n=======\n\n**Nmap2CSV** is a simple Python script to convert one or more XML (`-oX`) Nmap output files to a single CSV spreadsheet which summarizes all hosts and open ports in a table in `IP,PORT1,PORT2,PORT3,...,PORTN` format: The first row is the header with all open ports found on the scanned hosts. In the following rows the specified character (default `X`) marks if the given port was found open on the given host.\n\n## Usage\n\nPass the XML Nmap output (`-oX`) via a specified file or directory (`-i`). The resulted CSV spreadsheet is saved to a file (default is nmap2csv-summary-tcp.csv).\n\n### Options\n```\n$ python nmap2csv.py -h\nusage: nmap2csv.py [-h] [-i INPUT] [-p PREFIX] [-s SUFFIX] [-m MARKER]\n\n _  _                 ___ ___ _____   __\n| \\| |_ __  __ _ _ __|_  ) __/ __\\ \\ / /\n| .` | '  \\/ _` | '_ \\/ / (__\\__ \\\\ V / \n|_|\\_|_|_|_\\__,_| .__/___\\___|___/ \\_/  \n                |_|                     \n\n   Nmap to CSV spreadsheet converter\n\noptional arguments:\n  -h, --help  show this help message and exit\n  -i INPUT    Scan output file or folder (default current folder)\n  -p PREFIX   prefix for output file names (default nmap2csv)\n  -s SUFFIX   suffix for output file names (default tcp)\n  -m MARKER   marker character (default X)\n```\n\n### Example output\n```\n0.0.0.0,123,135,139,443,445,\n192.168.1.1,,X,X,,,\n192.168.1.2,X,,,X,X,\n192.168.1.3,X,,,,,\n192.168.1.4,,,,X,X,\n```\n| 0.0.0.0     | 123 | 135 | 139 | 443 | 445 |\n| ------------|:---:|:---:|:---:|:---:|:---:|\n| 192.168.1.1 |     |  X  |  X  |     |     |\n| 192.168.1.2 |  X  |     |     |  X  |  X  |\n| 192.168.1.3 |  X  |     |     |     |     |\n| 192.168.1.4 |     |     |     |  X  |  X  |\n\n## License\nThis project is licensed under the terms of the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsgabe%2Fnmap2csv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsgabe%2Fnmap2csv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsgabe%2Fnmap2csv/lists"}