{"id":22097920,"url":"https://github.com/4thel00z/libsniffpy","last_synced_at":"2025-08-22T23:20:55.350Z","repository":{"id":62575963,"uuid":"396280671","full_name":"4thel00z/libsniffpy","owner":"4thel00z","description":"Python library to open raw sockets and sniff on your neighbours.","archived":false,"fork":false,"pushed_at":"2021-08-26T15:15:10.000Z","size":27,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-16T20:15:15.123Z","etag":null,"topics":["pip","python","python3","raw","sniff","socket","wifi","wifi-scanner","wifi-security"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/libsniffpy/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/4thel00z.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-08-15T08:36:14.000Z","updated_at":"2022-02-27T04:35:46.000Z","dependencies_parsed_at":"2022-11-03T18:55:50.547Z","dependency_job_id":null,"html_url":"https://github.com/4thel00z/libsniffpy","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/4thel00z/libsniffpy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/4thel00z%2Flibsniffpy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/4thel00z%2Flibsniffpy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/4thel00z%2Flibsniffpy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/4thel00z%2Flibsniffpy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/4thel00z","download_url":"https://codeload.github.com/4thel00z/libsniffpy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/4thel00z%2Flibsniffpy/sbom","scorecard":{"id":4597,"data":{"date":"2025-08-11","repo":{"name":"github.com/4thel00z/libsniffpy","commit":"c5731be1b76080ab5bc44768e6257a0c05946d2a"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/21 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":"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":"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":"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":"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":"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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: COPYING:0","Info: FSF or OSI recognized license: GNU General Public License v3.0: COPYING: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":"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":"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"}}]},"last_synced_at":"2025-08-14T13:16:39.090Z","repository_id":62575963,"created_at":"2025-08-14T13:16:39.090Z","updated_at":"2025-08-14T13:16:39.090Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271716625,"owners_count":24808587,"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-08-22T02:00:08.480Z","response_time":65,"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":["pip","python","python3","raw","sniff","socket","wifi","wifi-scanner","wifi-security"],"created_at":"2024-12-01T04:17:24.009Z","updated_at":"2025-08-22T23:20:55.308Z","avatar_url":"https://github.com/4thel00z.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# libsniffpy\n\n![libsniff.png](https://raw.githubusercontent.com/4thel00z/logos/master/libsniff.png)\n\n## Motivation\n\nI wanted to have a nice cython/python wrapper around [libsniff](https://github.com/4thel00z/libsniff).\nThis name might confuse you, I just care about sniffing wifi packets from a nic in monitor mode.\n\n## Installation\n\n```\npip install libsniffpy\n```\n\n## Usage\n\n### Simple: Low level usage\n\n```python\n\nfrom sniff import get_socket\n\n# You might have to adjust \ns = get_socket(\"wlan0mon\")\n# or whatever big number, forgot how big those frames are lel\nraw = s.recv(3000)\n\n```\n\n### Advanced: Iterate over the Radiotap frames\n\n```python\nfrom sniff import get_socket, type_predicate, subtype_predicate, loop\nfrom sys import stderr\nfrom dpkt import ieee80211\nfrom dpkt.radiotap import Radiotap\n\nif __name__ == \"__main__\":\n    mgmt_predicate = type_predicate(ieee80211.MGMT_TYPE)\n    probe_request_predicate = subtype_predicate(ieee80211.M_PROBE_REQ)\n\n    mgmt_packets = filter(mgmt_predicate, loop(\"wlan0mon\"))\n    probe_requests = filter(probe_request_predicate, mgmt_packets)\n    \n    for pkg in probe_requests:\n        print(pkg)\n```\n\n## Guidance for n00bs\n\nThis lib opens a raw socket for a monitor mode enabled interface.\nIt needs privs that your user probably don't have.\n\nEither you run this stuff as `root` or you do sth like this:\n\n```\nsudo setcap cap_net_raw,cap_net_admin=eip\n```\n\non a wrapper script that calls your python interpreter.\n\n## License\n\nThis project is licensed under the GPL-3 license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F4thel00z%2Flibsniffpy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F4thel00z%2Flibsniffpy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F4thel00z%2Flibsniffpy/lists"}