{"id":22180566,"url":"https://github.com/dcso/gonmap","last_synced_at":"2025-07-26T17:32:17.551Z","repository":{"id":57522346,"uuid":"126204739","full_name":"DCSO/gonmap","owner":"DCSO","description":"go wrapper for the port and vulnerability scanner nmap","archived":false,"fork":false,"pushed_at":"2018-03-21T16:02:08.000Z","size":5,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-06-21T12:18:07.030Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/DCSO.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":"2018-03-21T16:00:01.000Z","updated_at":"2023-07-04T06:29:47.000Z","dependencies_parsed_at":"2022-08-26T23:50:12.791Z","dependency_job_id":null,"html_url":"https://github.com/DCSO/gonmap","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/DCSO%2Fgonmap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DCSO%2Fgonmap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DCSO%2Fgonmap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DCSO%2Fgonmap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DCSO","download_url":"https://codeload.github.com/DCSO/gonmap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227700405,"owners_count":17806365,"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-12-02T09:18:42.599Z","updated_at":"2024-12-02T09:18:43.293Z","avatar_url":"https://github.com/DCSO.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"gonmap - Wrapper around Nmap\n============================\n\nCopyright (c) 2017, 2018, DCSO Deutsche Cyber-Sicherheitsorganisation GmbH\n\ngonmap is a wrapper around the Nmap tool. It uses the XML output capability\nof Nmap to retrieve results and make them available in Go.\n\nImplemented capabilities\n------------------------\n\n* Simple port scanner for 1 host using either TCP or UDP.\n\nDependencies\n------------\n\ngonmap requires the Nmap tool to be available in the user's $PATH.\n\nQuick start\n-----------\n\n```\nimport (\n\t\"fmt\"\n\t\"os\"\n\n\t\"github.com/DCSO/gonmap\"\n)\n\nfunc main() {\n\tscan, err := gonmap.NewPortScan(\"localhost\", []string{\"tcp\"})\n\tif err != nil {\n\t\tfmt.Printf(\"nmap failed: %s\", err)\n\t\tos.Exit(1)\n\t}\n\tscan.Run()\n\n\tf := \"%5d/%s %-15s %s\\n\"\n\tft := \"%9s %-15s %s\\n\"\n\tfor _, host := range scan.Result().Hosts {\n\t\tfmt.Printf(\"Nmap scan report for %s\\n\", host.Address.Address)\n\t\tfmt.Printf(ft, \"PORT\", \"STATE\", \"SERVICE\")\n\t\tfor _, p := range host.Ports {\n\t\t\tfmt.Printf(f, p.Port, p.Protocol, p.Status.State, p.Service.Name)\n\t\t}\n\t}\n}\n```\n\nPossible output of the above example:\n\n```\nNmap scan report for 127.0.0.1\n     PORT STATE           SERVICE\n   22/tcp open            ssh\n   80/tcp open            http\n 3306/tcp open            mysql\n 5000/tcp open            upnp\n 5432/tcp open            postgresql\n```\n\nLicense\n-------\n\nThis project is licensed under a 3-clause BSD-like license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcso%2Fgonmap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdcso%2Fgonmap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcso%2Fgonmap/lists"}