{"id":17070569,"url":"https://github.com/opsnull/kping","last_synced_at":"2026-03-03T02:40:28.562Z","repository":{"id":57492130,"uuid":"97029094","full_name":"opsnull/kping","owner":"opsnull","description":"Large Scale, High Performance flood ping.","archived":false,"fork":false,"pushed_at":"2018-08-11T01:58:53.000Z","size":31,"stargazers_count":17,"open_issues_count":1,"forks_count":7,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-08-14T00:52:51.485Z","etag":null,"topics":["afpacket","icmp","pfring","ping","rawsocket","sendmmsg"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/opsnull.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":"2017-07-12T16:22:48.000Z","updated_at":"2024-08-29T12:43:04.000Z","dependencies_parsed_at":"2022-08-28T13:10:56.480Z","dependency_job_id":null,"html_url":"https://github.com/opsnull/kping","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/opsnull/kping","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opsnull%2Fkping","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opsnull%2Fkping/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opsnull%2Fkping/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opsnull%2Fkping/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/opsnull","download_url":"https://codeload.github.com/opsnull/kping/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opsnull%2Fkping/sbom","scorecard":{"id":711150,"data":{"date":"2025-08-11","repo":{"name":"github.com/opsnull/kping","commit":"02de6fa1b300a8a3a1edaa473fcace630302767d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 1/19 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-22T08:14:14.167Z","repository_id":57492130,"created_at":"2025-08-22T08:14:14.167Z","updated_at":"2025-08-22T08:14:14.167Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274416261,"owners_count":25280922,"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","status":"online","status_checked_at":"2025-09-10T02:00:12.551Z","response_time":83,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["afpacket","icmp","pfring","ping","rawsocket","sendmmsg"],"created_at":"2024-10-14T11:32:17.538Z","updated_at":"2026-03-03T02:40:23.506Z","avatar_url":"https://github.com/opsnull.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kping\n\nPackage kping implements large scale \u0026 high performance ICMP flood ping.\n\nIt can send up to 1024 ICMP packets in one system call (sendmmsg), and provides two methods for receiving packets quickly: batch, afpacket.\n\nSee API document on [godoc](https://godoc.org/github.com/opsnull/kping)\n\nWarning: **WORKING IN PROGRESS**\n\n# Example (using af_packet recv mode)\n\nThe simplest example:\n\n``` go\n// Create a new Pinger\npinger, err := NewPinger(\"10.0.0.1\", 100, 10, 1*time.Minute, 100*time.Millisecond)\nif err != nil {\n    logger.Fatalln(err)\n}\n\n// Add IP addresses to Pinger\nif err := pinger.AddIPs([]string{\"114.114.114.114\", \"8.8.8.8\"}); err != nil {\n    logger.Fatalln(err)\n}\n\n// Run !\nstatistics, err : = pinger.Run()\nif err != nil {\n    logger.Fatalln(err)\n}\n\n// Print result\nfor ip, statistic := range statistics {\n    fmt.Printf(\"%s: %v\\n\", ip, statistic)\n}\n```\n\nYou can customize and optimize the send \u0026 receive options based on your system:\n\n``` go\n// Create a new Pinger\npinger, err := NewPinger(\"10.0.0.1\", 100, 10, 1*time.Minute, 100*time.Millisecond)\nif err != nil {\n    logger.Fatalln(err)\n}\n\n// Set send options\nif sendOpts, err := SendOptions(1024, 10*1024*1024, 30, 100*time.Second, 20*time.Millsecond); err != nil{\n    logger.Fatalln(err)\n} else if err := pinger.SetOptions(sendOpts); err != nil {\n    logger.Fatalln(err)\n}\n\n// Set Recv mode: afpacket | batch\nif err := pinger.SetRecvMode(\"afpacket\"); err != nil{\n    logger.Fatalln(err)\n}\n\n// Set afpacket recv mode options\nif recvOpts, err := AfPacketRecvOptions(2, 128, \"eth1\", 100*time.Millsecond); err != nil{\n    logger.Fatalln(err)\n} else if err := pinger.SetOptions(recvOpts); err != nil {\n    logger.Fatalln(err)\n}\n\n// Add IP addresses to Pinger\nif err := pinger.AddIPs([]string{\"114.114.114.114\", \"8.8.8.8\"}); err != nil {\n    logger.Fatalln(err)\n}\n\n// Run !\nstatistics, err : = pinger.Run()\nif err != nil {\n    logger.Fatalln(err)\n}\n\n// Print result\nfor ip, statistic := range statistics {\n    fmt.Printf(\"%s: %v\\n\", ip, statistic)\n}\n```\n\n## License\n\nCopyright 2017 zhangjun (geekard@qq.com)\n\nApache License 2.0，[LICENSE](LICENSE).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopsnull%2Fkping","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopsnull%2Fkping","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopsnull%2Fkping/lists"}