{"id":22685854,"url":"https://github.com/hellodword/cfping","last_synced_at":"2025-03-29T15:20:58.605Z","repository":{"id":245363186,"uuid":"694643157","full_name":"hellodword/cfping","owner":"hellodword","description":null,"archived":false,"fork":false,"pushed_at":"2023-09-21T12:08:21.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-15T01:52:05.857Z","etag":null,"topics":[],"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/hellodword.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-09-21T12:06:53.000Z","updated_at":"2023-09-21T12:22:06.000Z","dependencies_parsed_at":"2024-06-21T20:03:09.909Z","dependency_job_id":"b6fac128-5628-4177-a49c-6bbdb34f6420","html_url":"https://github.com/hellodword/cfping","commit_stats":null,"previous_names":["hellodword/cfping"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellodword%2Fcfping","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellodword%2Fcfping/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellodword%2Fcfping/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellodword%2Fcfping/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hellodword","download_url":"https://codeload.github.com/hellodword/cfping/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246201131,"owners_count":20739704,"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-09T22:17:52.172Z","updated_at":"2025-03-29T15:20:58.413Z","avatar_url":"https://github.com/hellodword.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cfping\n\n\u003e ping cloudflare IPs with TLS 1.3\n\n## Summary\n\n默认利用 `https://www.cloudflare.com/cdn-cgi/trace` 进行检测，不关注带宽（没有发现过有限速），只关注 https 请求的成功与否以及延迟。\n\n也不关注延迟具体多少，不去计算 rtt，只关注整体延迟。\n\n## Usage\n\n```\nUsage\n  -cidr string\n        path to cidr file (default \"cidr.txt\")\n  -every int\n        how many requests for each ip, at least 5 (default 5)\n  -head int\n        max ip number of output, 0 for all (default 16)\n  -http2\n        force attempt http2\n  -insecure\n        tls skip verify\n  -interface string\n        use specific interface\n  -output string\n        output file path, default stdout\n  -proxy string\n        http://127.0.0.1:1081 socks5://127.0.0.1:1080 socks5h://127.0.0.1:1080\n  -sample int\n        rand range for picking samples (default 255)\n  -show_delay\n        show_delay\n  -status int\n        status code of your url (default 200)\n  -timeout int\n        milliseconds (default 1000)\n  -tls int\n        0=tls1.0, 1=tls1.1, 2=tls1.2, 3=tls1.3 (default 3)\n  -url string\n        your url (default \"https://www.cloudflare.com/cdn-cgi/trace\")\n  -verbose\n        show verbose output\n  -workers int\n        default cpu*10 (default 80)\n```\n\n## Build\n\n```shell\ngo build -o cfping .\n```\n\n## Example\n\n```shell\nenv INTERFACE=eth0 \\\n    CIDR=./resource/ips-v4 \\\n    URL='https://example.com/path' \\\n    STATUS=200 \\\n    CUSTOM_ARGS='-proxy socks5h://127.0.0.1:1080' \\\n      bash example.sh\n```\n\n## TODO\n\n- [ ] refactor with cmdr\n- [ ] 定期以及长期检测，所以需要降低压力，且配合数据库\n- [ ] 分散请求，而不是一次性请求完同一个 IP\n- [ ] ja3\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhellodword%2Fcfping","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhellodword%2Fcfping","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhellodword%2Fcfping/lists"}