{"id":15639842,"url":"https://github.com/justintimperio/gomap","last_synced_at":"2025-04-14T10:21:04.740Z","repository":{"id":43464817,"uuid":"345501473","full_name":"JustinTimperio/gomap","owner":"JustinTimperio","description":"A fully self-contained Nmap like parallel port scanning module in pure Golang that supports SYN-ACK (Silent Scans)","archived":false,"fork":false,"pushed_at":"2023-05-31T09:54:58.000Z","size":185,"stargazers_count":88,"open_issues_count":6,"forks_count":19,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-14T07:09:16.136Z","etag":null,"topics":["golang","gomap","nmap","parallel","port-scanner","portscan","portscanner","scanning","service-discovery","syn-ack","tcp-scanner","udp-scanning"],"latest_commit_sha":null,"homepage":"","language":"Go","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/JustinTimperio.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}},"created_at":"2021-03-08T01:56:22.000Z","updated_at":"2025-03-11T03:01:15.000Z","dependencies_parsed_at":"2022-09-10T20:21:45.050Z","dependency_job_id":"c0ce1daa-3a75-4795-9830-34ec9a4f7472","html_url":"https://github.com/JustinTimperio/gomap","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JustinTimperio%2Fgomap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JustinTimperio%2Fgomap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JustinTimperio%2Fgomap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JustinTimperio%2Fgomap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JustinTimperio","download_url":"https://codeload.github.com/JustinTimperio/gomap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248860005,"owners_count":21173343,"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":["golang","gomap","nmap","parallel","port-scanner","portscan","portscanner","scanning","service-discovery","syn-ack","tcp-scanner","udp-scanning"],"created_at":"2024-10-03T11:27:57.752Z","updated_at":"2025-04-14T10:21:04.711Z","avatar_url":"https://github.com/JustinTimperio.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gomap\n\n![GitHub](https://img.shields.io/github/license/JustinTimperio/gomap)\n[![Go Reference](https://pkg.go.dev/badge/github.com/JustinTimperio/gomap.svg)](https://pkg.go.dev/github.com/JustinTimperio/gomap)\n[![Go Report Card](https://goreportcard.com/badge/github.com/JustinTimperio/gomap)](https://goreportcard.com/report/github.com/JustinTimperio/gomap)\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/a338ee8deaad42328d78f98f6e6481a3)](https://www.codacy.com/gh/JustinTimperio/gomap/dashboard?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=JustinTimperio/gomap\u0026amp;utm_campaign=Badge_Grade)\n\n## What is gomap?\nGomap is a fully self-contained nmap like module for Golang. Unlike other projects which provide nmap C bindings or rely on other local dependencies, gomap is a fully implemented in pure Go. Gomap imports zero non-core modules making it ideal for applications that have zero control on the clients operating system. Since this is a small library, it only focuses on providing a few core features. For the most part its API is stable with changes being applied to its unexposed internal scanning functions.\n\n\n## Features\n  - Parallel port scanning using go routines\n  - Automated CIDR range scanning\n  - Service prediction by port number\n  - SYN (Silent) Scanning Mode\n  - UDP Scanning (Non-Stealth)\n  - Fast and detailed scanning for common ports\n  - Pure Go with zero dependencies\n  - Easily integrated into other projects\n\n## Upcoming Features\n  - CIDR range size detection\n\n## Example Usage - 1\nPerforms a fastscan for the most common ports on every IP on a local range\n### Create Files\n 1. Create `quickscan.go`\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/JustinTimperio/gomap\"\n)\n\nfunc main() {\n\tvar (\n\t\tproto    = \"tcp\"\n\t\tfastscan = true\n\t\tsyn      = false\n\t)\n\n\tscan, err := gomap.ScanRange(proto, fastscan, syn)\n\tif err != nil {\n\t\t// handle error\n\t}\n\tfmt.Printf(scan.String())\n}\n```\n 2. `go mod init quickscan`\n 3. `go mod tidy`\n 4. `go run quickscan.go`\n\n### Example Output\n\n```\nHost: computer-name (192.168.1.132)\n        |     Port      Service\n        |     ----      -------\n        |---- 22        ssh\n \nHost: server-nginx (192.168.1.143)\n        |     Port      Service\n        |     ----      -------\n        |---- 443       https\n        |---- 80        http\n        |---- 22        ssh\n \nHost: server-minio (192.168.1.112)\n        |     Port      Service\n        |     ----      -------\n        |---- 22        ssh\n\nHost: some-phone (192.168.1.155)\n        |- No Open Ports\n```\n\n## Example Usage - 2\nPerforms a detailed stealth scan on a single IP\n\n### Create Files\n 1. Create `stealthmap.go`\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/JustinTimperio/gomap\"\n)\n\nfunc main() {\n\t// Stealth scans MUST be run as root/admin\n\tvar (\n\t\tfastscan = false\n\t\tsyn      = true\n\t\tproto    = \"tcp\"\n\t\tip       = \"192.168.1.120\"\n\t)\n\n\tscan, err := gomap.ScanIP(ip, proto, fastscan, syn)\n\tif err != nil {\n\t\t// handle error\n\t}\n\tfmt.Printf(scan.String())\n}\n```\n 2. `go mod init stealthmap`\n 3. `go mod tidy`\n 4. `sudo go run stealthmap.go`\n\n### Example Output\n\n```\nHost: 192.168.1.120 | Ports Scanned 3236/3236\nHost: Voyager (192.168.1.120)\n        |     Port      Service\n        |     ----      -------\n        |---- 22        SSH Remote Login Protocol\n        |---- 80        World Wide Web HTTP\n        |---- 443       HTTP protocol over TLS/SSL\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustintimperio%2Fgomap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjustintimperio%2Fgomap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustintimperio%2Fgomap/lists"}