{"id":74569,"library":"ullaakut-nmap","title":"Nmap Bindings for Go","description":"Provides idiomatic Go bindings for the nmap network scanning tool, allowing programmatic control of scans.","status":"active","version":"2.0.2+incompatible","language":"go","source_language":null,"source_url":"https://github.com/Ullaakut/nmap","tags":["nmap","network","scanning","security"],"install":[{"cmd":"go get github.com/Ullaakut/nmap","lang":"bash","label":"Install github.com/Ullaakut/nmap"}],"dependencies":[],"imports":[{"symbol":"nmap","correct":"github.com/Ullaakut/nmap"}],"quickstart":{"code":"package main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\t\"github.com/Ullaakut/nmap\"\n)\n\nfunc main() {\n\tscanner, err := nmap.NewScanner(\n\t\tnmap.WithTargets(\"scanme.nmap.org\"),\n\t\tnmap.WithPorts(\"80,443\"),\n\t)\n\tif err != nil {\n\t\tfmt.Println(err)\n\t\treturn\n\t}\n\tresult, warnings, err := scanner.Run(context.Background())\n\tif err != nil {\n\t\tfmt.Println(err)\n\t\treturn\n\t}\n\tfmt.Printf(\"Open ports: %d\\n\", len(result.Ports))\n\t_ = warnings\n}","lang":"go","description":"Runs an nmap scan on a target host."},"warnings":[{"fix":"Install nmap via your package manager (e.g., apt install nmap).","message":"Requires nmap to be installed on the system.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'allow':15 'bind':2,8 'control':17 'go':4,7 'idiomat':6 'network':12,21 'nmap':1,11,20 'programmat':16 'provid':5 'scan':13,19,22 'secur':23 'tool':14","created_at":"2026-06-17T19:05:22.450322+00:00","updated_at":"2026-06-17T19:05:22.450322+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/Ullaakut/nmap","github":"https://github.com/Ullaakut/nmap","docs":"https://pkg.go.dev/github.com/Ullaakut/nmap#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["networking"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}