{"id":37891173,"url":"https://github.com/cyberok-org/cokmap","last_synced_at":"2026-01-16T16:56:27.595Z","repository":{"id":313110794,"uuid":"848769588","full_name":"cyberok-org/cokmap","owner":"cyberok-org","description":"Cokmap — is a fast network scanner written in Go that identifies services and products on open ports","archived":false,"fork":false,"pushed_at":"2025-09-11T18:45:41.000Z","size":34932,"stargazers_count":6,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-09-11T21:37:10.265Z","etag":null,"topics":["banner-grabbing","bugbounty","cli","fingerprinting","http","linux","macos","network-discovery","pentest-tool","ping","port-scanner","products","protocols","security","service-detection","service-discovery","ssl-certificate","version-detection"],"latest_commit_sha":null,"homepage":"https://www.cyberok.ru","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cyberok-org.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-08-28T11:28:05.000Z","updated_at":"2025-09-11T19:15:07.000Z","dependencies_parsed_at":"2025-09-04T01:19:44.300Z","dependency_job_id":"0b5002de-3029-43a1-8639-814a69abf0ee","html_url":"https://github.com/cyberok-org/cokmap","commit_stats":null,"previous_names":["cyberok-org/cokmap"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/cyberok-org/cokmap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cyberok-org%2Fcokmap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cyberok-org%2Fcokmap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cyberok-org%2Fcokmap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cyberok-org%2Fcokmap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cyberok-org","download_url":"https://codeload.github.com/cyberok-org/cokmap/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cyberok-org%2Fcokmap/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28480081,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["banner-grabbing","bugbounty","cli","fingerprinting","http","linux","macos","network-discovery","pentest-tool","ping","port-scanner","products","protocols","security","service-detection","service-discovery","ssl-certificate","version-detection"],"created_at":"2026-01-16T16:56:27.513Z","updated_at":"2026-01-16T16:56:27.579Z","avatar_url":"https://github.com/cyberok-org.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cokmap 🚀\n\n**Cokmap** — is a fast network scanner written in Go that identifies services and products on open ports by sending probes from an `nmap-service-probes` -formatted file, following the rules described in [Technique Described](https://nmap.org/book/vscan-technique.html).\n\n## 🔥 Features\n- **High-speed  scanning**\n- **Fast product detection** via `pm_[YOUR_GOOS].so` plugin\n- **Supports nmap-service-probes format** — [details here](https://nmap.org/book/vscan-fileformat.html).\n- **Works on Linux and macOS**\n- **Flexible configuration**\n- **Detailed statistics**\n\n## 🛠️ Installation\n### Build from source\n1. Ensure Go  is installed **Go** version **`1.24.2`**.\n2. Clone the repository and build:\n    ```bash\n    git clone https://github.com/cyberok-org/cokmap.git\n    cd cokmap\n    CGO_ENABLED=1 go build -o cokmap ./cmd/.\n    ```\n    You need to install \"gcc\"\n    ```bash\n    sudo apt install gcc\n    ```\n3. Download the latest `nmap-service-probes`\n    ```bash\n    curl -O https://raw.githubusercontent.com/nmap/nmap/master/nmap-service-probes\n    ```\n\n### Environment variables\n\n\u003cdetails\u003e\n\u003csummary\u003eClick here to see the \u003ccode\u003ego env\u003c/code\u003e output\u003c/summary\u003e\n\n```bash\nAR='ar'\nCC='gcc'\nCGO_CFLAGS='-O2 -g'\nCGO_CPPFLAGS=''\nCGO_CXXFLAGS='-O2 -g'\nCGO_ENABLED='1'\nCGO_FFLAGS='-O2 -g'\nCGO_LDFLAGS='-O2 -g'\nCXX='g++'\nGCCGO='gccgo'\nGO111MODULE=''\nGOAMD64='v1'\nGOARCH='amd64'\nGOAUTH='netrc'\nGOBIN=''\nGOCACHE='$HOME/.cache/go-build'\nGOCACHEPROG=''\nGODEBUG=''\nGOENV='$HOME/.config/go/env'\nGOEXE=''\nGOEXPERIMENT=''\nGOFIPS140='off'\nGOFLAGS=''\nGOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build3338366565=/tmp/go-build -gno-record-gcc-switches'\nGOHOSTARCH='amd64'\nGOHOSTOS='linux'\nGOINSECURE=''\nGOMOD='$HOME/cokmap/go.mod'\nGOMODCACHE='$HOME/go/pkg/mod'\nGONOPROXY=''\nGONOSUMDB=''\nGOOS='linux'\nGOPATH='$HOME/go'\nGOPRIVATE=''\nGOPROXY='https://proxy.golang.org,direct'\nGOROOT='/usr/local/go'\nGOSUMDB='sum.golang.org'\nGOTELEMETRY='local'\nGOTELEMETRYDIR='$HOME/.config/go/telemetry'\nGOTMPDIR=''\nGOTOOLCHAIN='auto'\nGOTOOLDIR='/usr/local/go/pkg/tool/linux_amd64'\nGOVCS=''\nGOVERSION='go1.24.2'\nGOWORK=''\nPKG_CONFIG='pkg-config'\n```\n\u003c/details\u003e\n\n**Pre-built releases are available in the [Releases](https://github.com/cyberok-org/cokmap/releases) section.** \n\n## ⚙️ Usage\n\n### Input file format:\n```text\n192.168.0.1:8080/tcp\n192.168.0.1:443/tcp\n192.168.0.1:8080/udp\n```\n### Example\n- Scan a single target:\n    ```bash\n    echo 192.168.0.1:8080/tcp | ./cokmap -plugin plugin/pm_[YOUR_GOOS].so -n nmap-service-probes -o result.json\n    ```\n- Scan a list of targets:\n    ```bash\n    ./cokmap -plugin plugin/pm_[YOUR_GOOS].so -i targets -n nmap-service-probes -o result.jsonl\n    # or\n    cat targets | ./cokmap -plugin plugin/pm_[YOUR_GOOS].so  -n nmap-service-probes -o result.jsonl\n    ```\n\n\n\n## ❓ Help\n```text\n    ./cokmap [flags]\n\nFlags:\n    INPUT:\n        -i string Input filename, use - for stdin (default \"-\") format  ip:port/protocol\n    TIMEOUT:\n        -crt int Set connection read timeout in seconds (default 5)\n        -cst int Set connection send timeout in seconds (default 5)\n        -ct int Set connection to host timeout in seconds (default 5)\n        -ret int Set regexp match timeout in seconds (default 1)\n    RATE-LIMIT:\n        -tm int process numbers using during parsing (default 10)\n        -tr int process numbers using during scanning (default 10)\n    MATCHERS:\n        -plugin string Name of product matcher dynamic plugin file (default \"../plugin/pm.so\")\n        -fr bool Enable softmatch parsing (default true)\n    PROBES:\n        -n string A flat file to store the version detection probes and match strings (default \"./nmap-service-probes\")\n        -n-extra string Extra, golden probes to expand\"nmap-service-probes\"\n        -pc int Sets the count of sending probes by rarity, dont disable others probes by ports, usefull for quickiest runtime (default 5)\n        -probes-cfg string ini file for probes specifiations, sets which regular expression have different format, which indicates where need to convert banner\n        -use-NULL Use NULL probe in dialer service (default false)\n    OUTPUT:\n        -o string Output filename, use - for stdout (default \"-\")\n        -v int Output more information during service scanning 0=Error 1=Warning 2=Info 3=Debug\n        -sr int Sets the intensity level of a version scan to the specified value (default 7)\n        -stat bool Save summary grab results (default true)\n        -err-stat bool Save errors summary (default true)\n        -p-stat bool Save successful-probes summary (default true)\n        -file-stat-name string Save successful-match summary (default \"summary_cokmap_result\")\n        -bs int Output banner limit size: negative int = fullsize, 0 = without banner (default fullsize)\n```\n\n## 🛠️ Building custom plugins\nFor plugin documentation, see [Go Plugin Documentation](https://pkg.go.dev/plugin)\n\nTo create custom product matchers, use types defined in [types.go](https://github.com/cyberok-org/cokmap-api/blob/main/types/types.go).\nPlugins must implement:\n```go\nfunc LoadMatchers(in io.Reader, timeout time.Duration) (types.Matchers, error)\nfunc ExtractProductsFromRunes(matchers types.Matchers, input []rune, ip string) ([]types.HostInfo, []error)\n```\n\n\n\n## 📄 License\n\nMIT License. Details in [LICENSE](LICENCE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcyberok-org%2Fcokmap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcyberok-org%2Fcokmap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcyberok-org%2Fcokmap/lists"}