{"id":26094083,"url":"https://github.com/vdjagilev/nmap2md","last_synced_at":"2025-04-12T09:34:08.163Z","repository":{"id":117934085,"uuid":"194423257","full_name":"vdjagilev/nmap2md","owner":"vdjagilev","description":"A little utility to convert nmap xml results to markdown tables","archived":false,"fork":false,"pushed_at":"2022-03-30T15:04:56.000Z","size":24,"stargazers_count":68,"open_issues_count":2,"forks_count":13,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-26T04:33:40.726Z","etag":null,"topics":["markdown","nmap","python3","scan","security","xml"],"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/vdjagilev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2019-06-29T15:56:21.000Z","updated_at":"2025-03-03T17:16:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"c6730fa8-5ecc-433e-ad20-4b20f1b19670","html_url":"https://github.com/vdjagilev/nmap2md","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vdjagilev%2Fnmap2md","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vdjagilev%2Fnmap2md/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vdjagilev%2Fnmap2md/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vdjagilev%2Fnmap2md/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vdjagilev","download_url":"https://codeload.github.com/vdjagilev/nmap2md/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248546493,"owners_count":21122329,"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":["markdown","nmap","python3","scan","security","xml"],"created_at":"2025-03-09T12:49:44.044Z","updated_at":"2025-04-12T09:34:08.117Z","avatar_url":"https://github.com/vdjagilev.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nmap2md\n\nA little utility to convert nmap XML results to markdown tables.\n\n## Usage\n\nDownload application, you can use git for it:\n\n```\ngit clone git@github.com:vdjagilev/nmap2md.git\ncd nmap2md\n```\n\nExample which parses nmap XML and outputs Markdown tables\n\n```\n./nmap2md.py test.xml\n```\n\n## Options\n\nColumns and row cells definition should be divided by `,`.\n\n* `-c` is used to define columns. It is possible to write there anything\n    * Default: `Port,State,Service,Version`\n* `--rc` is used to define **r**ow **c**ells\n    * Default: `[port.number]/[port.protocol],[state],[service.name],[service.product] [service.version]`\n    * Available options:\n        * `[port.number]` Port number (80) \n        * `[port.protocol]` Port protocol (TCP)\n        * `[state]` State (open)\n        * `[service.name]` Name of the used service (http)\n        * `[service.product]` Type of product used on that service (Apache httpd)\n        * `[service.version]` Version of the product (2.2.14)\n* `--hs` is **h**eader **s**ize. Size variations: from 1 to 6.\n    * Default: 0 (disabled)\n* `--sort` is for sorting.\n    * Default: `Port;asc`\n    * Can use any column that is defined in `-c`\n    * `asc` \u0026 `desc` options, if none is provided: `asc` by default\n* `--print-empty` some port scanning results are empty and those are not displayed. However if there is a need to print empty sets, this option allows this.\n    * Default: False\n\n## Output example\n\nAn example with many options and MD support in table cells (service values are *italic*).\nXML file was taken from https://nmap.org/book/output-formats-xml-output.html and this command was used:\n\n```\n./nmap2md.py test.xml -c \"Port,State,Service,Version\" --hs 4 --rc \"[port.number]/[port.protocol],[state],*[service.name]*,[service.product] [service.version]\"\n```\n\n#### 74.207.244.221\n\n| Port | State | Service | Version |\n|------|-------|---------|---------|\n| 22/tcp | open | *ssh* | OpenSSH 5.3p1 Debian 3ubuntu7 |\n| 80/tcp | open | *http* | Apache httpd 2.2.14 |\n\n## Contributors\n\nThanks to the listed contributors for fixing bugs/testing \u0026 adding new features:\n\n* Brandon Hinkel (https://github.com/b4ndit)\n* initinfosec (https://github.com/initinfosec)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvdjagilev%2Fnmap2md","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvdjagilev%2Fnmap2md","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvdjagilev%2Fnmap2md/lists"}