{"id":13840777,"url":"https://github.com/jmpews/goscan","last_synced_at":"2025-12-30T01:31:36.276Z","repository":{"id":87909459,"uuid":"75157687","full_name":"jmpews/goscan","owner":"jmpews","description":"golang的扫描框架, 支持协程池和自动调节协程个数. ","archived":false,"fork":false,"pushed_at":"2017-02-08T10:51:29.000Z","size":48,"stargazers_count":49,"open_issues_count":0,"forks_count":18,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-08-05T17:25:41.754Z","etag":null,"topics":["golang","goroutine-pool","scanner"],"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/jmpews.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,"roadmap":null,"authors":null,"dei":null}},"created_at":"2016-11-30T06:19:39.000Z","updated_at":"2023-06-06T02:05:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"19db8258-34fa-4e3f-8c59-7f2dbbde6e68","html_url":"https://github.com/jmpews/goscan","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/jmpews%2Fgoscan","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmpews%2Fgoscan/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmpews%2Fgoscan/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmpews%2Fgoscan/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jmpews","download_url":"https://codeload.github.com/jmpews/goscan/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225712709,"owners_count":17512462,"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","goroutine-pool","scanner"],"created_at":"2024-08-04T17:00:55.480Z","updated_at":"2025-12-30T01:31:36.236Z","avatar_url":"https://github.com/jmpews.png","language":"Go","funding_links":[],"categories":["Go","Go (531)"],"sub_categories":[],"readme":"# Golang Scan Framework\n\ngolang的扫描框架, 支持协程池和自动调节协程个数. **在30min内扫描391W的ULR(根据带宽和配置改变, 和Zmap不同, Zmap是无连接状态扫描)**\n\ngolang scanner framework, with goroutines pool and automatically adjusting the scanning speed.\n\n**Scan 391W wordpress sites in 30min.**\n\n## Features\n* goroutines pool\n* workers feedback mechanism\n* monitor status\n\n## Usage\n\n#### Before run\n\n* set `ulimit -n 100000`\n* set [PayloadType type](https://github.com/jmpews/goscan/blob/master/pool.go#L16) (maybe i will add `relfect`)\n* set [`maxWorkers`, `jobQueueLen` and `feedback mechanism`](https://github.com/jmpews/goscan/blob/master/scanner.go#L26)\n\n```\n// if you set a fixed number of goroutine, set feedback-mechanism `false` and maxWorkers == jobCacheQueueLen`\n// Example: pool = NewGoroutinePool(100, 100, false)\n\n// if you use feedback-mechanism, set `feedback = true`, maxWorkers and jobCacheQueueLen\n// Example: pool := NewGoroutinePool(100, 1000, true)\n\n// 1000 maxWorkers and 20000 jobCacheQueueLen, with feedback mechanism\npool := NewGoroutinePool(1000, 20000, true)\n```\n\n#### Cross compilation (Best Choice)\n\n```\nGOOS=linux GOARCH=amd64 go build -v scanner.go pool.go\n```\n\n#### Just Run\n\n```\n./scanner\n```\n\n---\n\n#### Run with new Golang Env\n\n```\nsudo locale-gen zh_CN.UTF-8\nsudo locale-gen zh_CN.UTF-8 en_US.UTF-8\n\nwget https://storage.googleapis.com/golang/go1.7.3.linux-amd64.tar.gz\ntar -C /usr/local -xzf go1.7.3.linux-amd64.tar.gz\n\necho 'PATH=$PATH:/usr/local/go/bin' \u003e\u003e ~/.profile\necho 'GOPATH=/tmp' \u003e\u003e ~/.profile\n. ~/.profile\n\ngo get github.com/pborman/uuid\n\ngo run scanner.go pool.go\n```\n\n#### Run with docker\n\n```\n$ git clone https://github.com/jmpews/goscan.git\n$ cd goscan/\n$ docker run --rm -v \"$PWD\":/usr/src/myapp -w /usr/src/myapp golang:1.7 go get github.com/pborman/uuid \u0026\u0026 go build -v scanner.go pool.go\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmpews%2Fgoscan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjmpews%2Fgoscan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmpews%2Fgoscan/lists"}