{"id":13842505,"url":"https://github.com/elddy/NimScan","last_synced_at":"2025-07-11T15:31:45.411Z","repository":{"id":38692275,"uuid":"287033618","full_name":"elddy/NimScan","owner":"elddy","description":"🚀 Fast Port Scanner 🚀","archived":false,"fork":false,"pushed_at":"2022-02-10T13:23:02.000Z","size":2982,"stargazers_count":394,"open_issues_count":8,"forks_count":38,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-19T16:11:27.620Z","etag":null,"topics":["c","cpp","fast","filtered","linux","nim","pentesting","port","port-scan","port-scanner","port-scanning","redteam","scanner","security-tools","windows"],"latest_commit_sha":null,"homepage":"","language":"Nim","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/elddy.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":"2020-08-12T14:20:46.000Z","updated_at":"2025-05-15T11:13:37.000Z","dependencies_parsed_at":"2022-07-10T22:01:12.539Z","dependency_job_id":null,"html_url":"https://github.com/elddy/NimScan","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/elddy/NimScan","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elddy%2FNimScan","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elddy%2FNimScan/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elddy%2FNimScan/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elddy%2FNimScan/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elddy","download_url":"https://codeload.github.com/elddy/NimScan/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elddy%2FNimScan/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264840849,"owners_count":23671755,"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":["c","cpp","fast","filtered","linux","nim","pentesting","port","port-scan","port-scanner","port-scanning","redteam","scanner","security-tools","windows"],"created_at":"2024-08-04T17:01:37.714Z","updated_at":"2025-07-11T15:31:44.816Z","avatar_url":"https://github.com/elddy.png","language":"Nim","readme":"# 👑 NimScan 👑\nReally fast port scanner (With filtered option - Windows support only)\n\n![Administrator_ Command Prompt 2021-03-09 18-01-21](https://user-images.githubusercontent.com/69467775/110504297-b1a2fb00-8105-11eb-866e-0c438cc1d1a0.gif)\n\n## Benchmarks\n\n| ⚙️ Category|  👁️ Nmap |  🤖 RustScan      |  ♨️ masscan  |  👑 NimScan          |\n|    :---:     |     :---:    |     :---:            |      :---:      |      :---:                  |\n| Filtered     | ~107 Seconds  | ❌                  |   ❌           | ~60 Seconds (Windows Only)  |\n| non-filtered | ~25 Seconds  | ~3 Seconds (Linux)   | ~8 Seconds (Linux)| ~7 Seconds (2 threads)    |\n| Dependencies |  Npcap driver |   Nmap              | libpcap driver  | No dependencies             | \n| Can be used as module/library  |    ❌    |   ❌  |      ❌         | ✔️                         |\n\nAll bechmarks were performed inside LAN and on 65K ports. \n\n## Usage\n```shell\nUsage:\n    NimScan \u003chost | IPs\u003e -p:\u003cportX\u003e-\u003cportY\u003e [--timeout=\u003ctime\u003e] [--files=\u003climit of file descriptors\u003e] [-a]\n    NimScan \u003chost | IPs\u003e -p:\u003cport\u003e\n    NimScan \u003chost | IPs\u003e -p:\u003cport1\u003e,\u003cport2\u003e,\u003cportN\u003e\n    NimScan (-h | --help)\nOptions:\n    -h, --help            Show this screen.\n    -p, --ports           Ports to scan. [default: 1-65,535]\n    -a, --all             Use rawsockets to find filtered/closed/open ports (Takes longer and limited to 10,000 ports).\n    -t, --threads         Number of threads per scan.\n    -f, --files=\u003climit\u003e   File descriptors per thread limit.\n    -i, --ignore          Ignore ping latency check.\n    --timeout=\u003ctime\u003e      Timeout to add to the latency [default: 1500].\n```\n## Examples\nScan range between 1 to 5000 ports\n\n```shell\nNimScan 10.0.0.0/24 -p:1-5000 \n```\n\nScan specific ports\n```shell\nNimScan 10.0.0.1-10.0.0.10 -p:80,443,445\n```\n\nShow closed/filtered/open using rawsockets\n```shell\nNimScan.exe 10.0.0.69 -a\n```\n## C/C++ Library 🧑🏻‍💻\n\n### Guide\n\n#### Exported functions\n```C\nscan(char * host, int * ports, int size);\nscanner(char * host, int * ports, int size, char * parameters);\n```\n\n#### Options\n* host        - IP/HOST to scan\n* ports       - Ports to scan\n* size        - Size of ports array\n* parameters  - Parameters to give for the scanner as mentiond above under Usage\n\n\n#### Create\n```C\n#include \u003cstdio.h\u003e\n\nint main(void)\n{\n    NimMain(); // A MUST! \n\n    int ports[] = {1, 445, 8080, 3389, 135, 139};\n    int size = sizeof ports / sizeof ports[0];\n    \n    scan(\u003cIP/HOST\u003e, ports, size); // Scan given ports with default configuration (timeout = 1500ms, files = 5000)\n\n    scanner(\u003cIP/HOST\u003e, NULL, 0, \"\u003carguments\u003e\"); // Scanning all 65K ports with given arguments\n    return 0;\n}\n```\n\n#### Compile\n\n*Make sure NimScanToC.a is in your program's folder.*\n```shell\ngcc \u003cfile\u003e.c -L. -l:NimScanToC.a -w -o NimScan.exe\n```\n","funding_links":[],"categories":["Nim (13)","Nim"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felddy%2FNimScan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felddy%2FNimScan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felddy%2FNimScan/lists"}