{"id":20751473,"url":"https://github.com/bitsadmin/nmappy","last_synced_at":"2025-04-28T13:32:27.559Z","repository":{"id":128177837,"uuid":"75840652","full_name":"bitsadmin/nmappy","owner":"bitsadmin","description":"NmapPy - Python implementation of Nmap","archived":false,"fork":false,"pushed_at":"2018-11-27T19:40:40.000Z","size":153,"stargazers_count":35,"open_issues_count":0,"forks_count":9,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-26T07:16:57.486Z","etag":null,"topics":["commandline","nmap","portscan"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bitsadmin.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-12-07T13:54:24.000Z","updated_at":"2024-01-14T06:59:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"10227f2f-9232-49b3-8a62-408d2b453d11","html_url":"https://github.com/bitsadmin/nmappy","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/bitsadmin%2Fnmappy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitsadmin%2Fnmappy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitsadmin%2Fnmappy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitsadmin%2Fnmappy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitsadmin","download_url":"https://codeload.github.com/bitsadmin/nmappy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251319793,"owners_count":21570456,"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":["commandline","nmap","portscan"],"created_at":"2024-11-17T08:33:44.846Z","updated_at":"2025-04-28T13:32:27.470Z","avatar_url":"https://github.com/bitsadmin.png","language":"Python","readme":"# NMapPy\n## Files\n* nmappy.py - Python implementation of Nmap\n* include-services.py - Utility to integrate list top services from the nmap-services file into the nmappy.py file\n* topports.py - Utility to obtain the top X ports from the nmap-services file\n* nmap-services - Copy from https://github.com/nmap/nmap\n\n## Tools\n### NmapPy\n_Python implementation of Nmap_\n\n**Commandline**\n```\nusage: nmappy.py [-iL [INPUT_FILENAME]] [-Pn] [-sn] [-s {T,U}] [-p PORTS]\n                 [--top-ports TOP_PORTS] [-F] [-r] [-T {1,2,3,4,5}] [-v]\n                 [-o {N,X}] [-h]\n                 [targets] [output_file]\n\nNmapPy 0.51 ( https://github.com/bitsadmin/nmappy/ )\n\nTARGET SPECIFICATION:\n  targets               Can pass hostnames, IP addresses, networks, etc.\n  -iL [INPUT_FILENAME]  Input from list of hosts/networks\n\nHOST DISCOVERY:\n  -Pn                   Treat all hosts as online -- skip host discovery\n  -sn                   Ping Scan - disable port scan\n\nSCAN TECHNIQUES:\n  -s {T,U}              TCP Connect()/UDP scan (not implemented)\n\nPORT SPECIFICATION AND SCAN ORDER:\n  -p PORTS              Only scan specified ports\n  --top-ports TOP_PORTS\n                        Scan \u003cnumber\u003e most common ports\n  -F                    Fast mode - Scan fewer ports than the default scan\n  -r                    Scan ports consecutively - don't randomize\n\nTIMING AND PERFORMANCE:\n  -T {1,2,3,4,5}        Set timing template (higher is faster)\n\nOUTPUT:\n  -v                    Increase verbosity level (use -vv or more for greater\n                        effect)\n  -o {N,X}              Output scan in normal/XML (not implemented)\n  output_file           File name/location\n\nMISC:\n  -h, --help            Print this help summary page.\n```\n\n### Include-Services \n_Utility to integrate list top services from the nmap-services file into the nmappy.py file._\n\n**Commandline**\n```\nusage: nmappy_services.py [-h] [-i NUMBER] [nmappy_file] [nmap_services_file]\n\nNmapPy services includer 0.10 ( https://github.com/bitsadmin/nmappy/ )\n\npositional arguments:\n  nmappy_file           File to patch\n  nmap_services_file    nmap-services source file\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -i NUMBER, --include NUMBER\n                        Number of TCP and UDP services to include (default:\n                        50). Use -1 for all.\n```\n\n### TopPorts\n_Utility to obtain the top X ports from the nmap-services file._\n\nThis is for example useful when you want to use Cobalt Strike to run a portscan on the top 10 TCP ports.\n\n**Commandline**\n```\nusage: topports.py [top # of ports] [optional: tcp|udp]\nexample: topports.py 10 tcp\n\nTopPorts v1.0 ( https://github.com/bitsadmin/nmappy/ )\n```\n\n## PyInstaller\nIn order to use the tools stand-alone, binaries can be generated using PyInstaller.\n\n1. **Install PyInstaller**: `pip install PyInstaller`\n\n2. **Generate the Windows/Linux binary:** `pyinstaller --onefile nmappy.py`\n\n3. Output file can be found in `./dist`\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitsadmin%2Fnmappy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitsadmin%2Fnmappy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitsadmin%2Fnmappy/lists"}