{"id":18812136,"url":"https://github.com/lcvvvv/gomasscan","last_synced_at":"2026-02-27T01:05:24.299Z","repository":{"id":40629178,"uuid":"499374373","full_name":"lcvvvv/gomasscan","owner":"lcvvvv","description":"gomasscan是一个纯go编写的masscan扫描库","archived":false,"fork":false,"pushed_at":"2022-06-03T14:22:41.000Z","size":21,"stargazers_count":83,"open_issues_count":1,"forks_count":15,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-13T21:11:25.443Z","etag":null,"topics":["go","masscan","scanner"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lcvvvv.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}},"created_at":"2022-06-03T04:05:47.000Z","updated_at":"2025-02-24T07:30:39.000Z","dependencies_parsed_at":"2022-07-14T04:20:29.465Z","dependency_job_id":null,"html_url":"https://github.com/lcvvvv/gomasscan","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lcvvvv/gomasscan","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lcvvvv%2Fgomasscan","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lcvvvv%2Fgomasscan/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lcvvvv%2Fgomasscan/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lcvvvv%2Fgomasscan/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lcvvvv","download_url":"https://codeload.github.com/lcvvvv/gomasscan/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lcvvvv%2Fgomasscan/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29879925,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T23:51:21.483Z","status":"ssl_error","status_checked_at":"2026-02-26T23:50:46.793Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["go","masscan","scanner"],"created_at":"2024-11-07T23:29:50.463Z","updated_at":"2026-02-27T01:05:24.245Z","avatar_url":"https://github.com/lcvvvv.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gomasscan\ngomasscan是一个纯go编写的masscan扫描库\n\n## 前提\n\n - 只支持darwin/linux\n - 需要高权限\n - 需要安装libpcap\n \n## 写在前面\n\n - 部署PF_RING DNA设备的情况下，理论发包量可以达到到1000万/秒\n - darwin上的理论发包量能够达到30万/秒，linux则能达到150万\n - darwin上实测，发包量可以达到14万/秒，linux暂未测试，为什么会存在这样的折扣，原因未知\n \n## 使用\n    \n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com/lcvvvv/gomasscan\"\n\t\"time\"\n)\n\nfunc main() {\n\t//创建扫描器对象\n\tclient, err := gomasscan.NewScanner()\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer client.Done()\n\t//开放端口处理函数\n\tclient.HandlerOpen = func(ip string, port int) {\n\t\t//输出开放端口\n\t\tfmt.Println(ip, port)\n\t}\n\t//将IP地址加入筛选范围内\n\tvar ip = \"192.168.0.1\"\n\tvar startTime = time.Now()\n\t_ = client.Add(ip)\n\t//开始扫描\n\tgo func() {\n\t\tfor i := 0; i \u003c 65536; i++ {\n\t\t\tclient.SendSYN(ip, i, gomasscan.SYN)\n\t\t}\n\t}()\n\tfor {\n\t\ttime.Sleep(time.Second)\n\t\telapsed := time.Since(startTime)\n\t\tseconds := elapsed.Seconds()\n\t\tfmt.Println(\"发包量\", client.Count()/uint64(seconds), \"/s\")\n\t}\n\n}\n```\n\n## 感谢\n\n - [naabu](https://github.com/projectdiscovery/naabu)\n - [masscan](https://github.com/zan8in/masscan)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flcvvvv%2Fgomasscan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flcvvvv%2Fgomasscan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flcvvvv%2Fgomasscan/lists"}