{"id":13845794,"url":"https://github.com/dogasantos/masstomap","last_synced_at":"2025-12-25T02:33:26.278Z","repository":{"id":87984558,"uuid":"161091674","full_name":"dogasantos/masstomap","owner":"dogasantos","description":"A bridge between masscan and nmap - run fast masscan, parse output, execute nmap using masscan as input","archived":false,"fork":false,"pushed_at":"2024-07-02T18:18:47.000Z","size":65,"stargazers_count":26,"open_issues_count":2,"forks_count":10,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-21T19:38:44.100Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dogasantos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-09T23:35:07.000Z","updated_at":"2024-07-02T18:18:51.000Z","dependencies_parsed_at":"2024-11-21T19:31:21.411Z","dependency_job_id":"c97d6d6f-e071-489c-9e5d-cef9c9728f3c","html_url":"https://github.com/dogasantos/masstomap","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dogasantos/masstomap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dogasantos%2Fmasstomap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dogasantos%2Fmasstomap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dogasantos%2Fmasstomap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dogasantos%2Fmasstomap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dogasantos","download_url":"https://codeload.github.com/dogasantos/masstomap/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dogasantos%2Fmasstomap/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264930756,"owners_count":23684918,"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-08-04T17:03:36.399Z","updated_at":"2025-12-25T02:33:21.227Z","avatar_url":"https://github.com/dogasantos.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# MASSTOMAP\n\nmasstomap is a simple python script that can be used to read masscan reports and execute nmap powerful service versioning and scripting tasks. \n\nYou need to specify a masscan standard report file (-oL) and a name for the nmap report file this tool should create. \nA nmap grepable, text and xml report will be created. \n\n### Pause and Resume scan\n\nMasstomap creates a single nmap report per IP/target while it is running against a list of targets. The reason is that you can stop the scan and resume later. Soon as every target is scanned, masstomap will craft a single compliant nmap report using 3 different formats.\n\n### NOTE ###\nAgain, this tool will create 3 report files per IP/target (text, grepable, xml). All those files will be merged automatically in the end. Don't freak out.\n\n### FILES\n\nThis tool will generate 4 files:\u003cbr\u003e\n\u003cbr\u003e\n```\n\u003cgiven-report-name\u003e.new - a new masscan report using different notation (ip:port1,port2,portN) so you can run your own (custom) nmap scanning whenever you need.\n\u003cgiven-report-name\u003e.nmap.grepable - a grepable nmap report\n\u003cgiven-report-name\u003e.nmap.text - a standard text nmap report\n\u003cgiven-report-name\u003e.nmap.xml - a xml formated nmap report\n```\n\n\n\n### Usage:\n\n\u003ctable style=\"width:100%\"\u003e\n  \u003ctr\u003e\n    \u003cth colspan=\"2\"\u003e\u003e$ python masstomap.py [-h] -m MASSCAN -o NMAP_OUTPUT [-sl SCRIPT_LIST] [-v [VERBOSE]]\u003c/th\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e-h, --help\u003c/td\u003e\n    \u003ctd\u003e show this help message and exit\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e-m MASSCAN, --masscan MASSCAN\u003c/td\u003e\n    \u003ctd\u003e masscan report file\u003c/td\u003e \n   \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e-o NMAP_OUTPUT, --nmap-output NMAP_OUTPUT\u003c/td\u003e\n    \u003ctd\u003e nmap output file\u003c/td\u003e \n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e-sl SCRIPT_LIST, --script-list SCRIPT_LIST\u003c/td\u003e\n    \u003ctd\u003e Comma separated list of nmap scripts to run\u003c/td\u003e \n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e-v [VERBOSE], --verbose [VERBOSE]\u003c/td\u003e\n    \u003ctd\u003e Enable Verbosity\u003c/td\u003e \n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e-t THREADS, --threads THREADS\u003c/td\u003e\n    \u003ctd\u003e number of nmap threads\u003c/td\u003e\n   \u003c/tr\u003e\n  \u003ctr\u003e  \n\u003c/table\u003e\n\n\n\n### EXAMPLE:\n\u003cbr\u003e\nFirst, masscan:\u003cbr\u003e\n\u003cbr\u003e\n\n```\n$ sudo masscan -p1-65535 --rate 1000 --open -oL output.masscan \u003ctarget\u003e\n```\n\n\u003cbr\u003e\nThen masstomap:\u003cbr\u003e\n\u003cbr\u003e\n\n```\n\n$ python /usr/share/masstomap/masstomap.py -m output.masscan -o target.tcp\n$ ls\noutput.masscan  output.masscan.new  target.tcp.nmap.grepable  target.tcp.nmap.txt  target.tcp.nmap.xml\n$\n\n```\n\n\n### Requirements:\n\ncheck requirements.txt file\n\nResolve requirements by running \n```\npip install -p requirements.txt\n```\n\n### NMAP SCRIPTS:\n\nThis tool needs nmap in the $PATH so it can be executed, and by default, the following nmap scripts should be executed:\nhttp-title\nhttp-server-header\nhttp-robots.txt\nhttp-open-proxy\nhttp-methods\nhttp-headers\nhttp-internal-ip-disclosure\n\n\n\n#### NOTE: \n\nRemove --privileged if you don't plan to execute nmap as root (won't be able to use synscan, just full tcp scan which is slower)\n\n## RECOMMENDED TOOLS:\n\n### EXCEL OUTPUT\n\nGenerate a XLSX (Excel) nmap report:\n```\nhttps://github.com/dogasantos/nmapxml-to-xlsx\n```\n\n### INTELIGENT WEB TARGETS\nGenerate a list of WEB targets (with protocol and port):\n\n```\nhttps://github.com/dogasantos/webmapper\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdogasantos%2Fmasstomap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdogasantos%2Fmasstomap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdogasantos%2Fmasstomap/lists"}