{"id":13540293,"url":"https://github.com/pynetwork/pypcap","last_synced_at":"2025-12-17T22:55:59.981Z","repository":{"id":5697183,"uuid":"6907710","full_name":"pynetwork/pypcap","owner":"pynetwork","description":"pypcap - python libpcap module, forked from code.google.com/p/pypcap","archived":false,"fork":false,"pushed_at":"2023-03-29T05:36:08.000Z","size":1026,"stargazers_count":305,"open_issues_count":39,"forks_count":76,"subscribers_count":21,"default_branch":"master","last_synced_at":"2025-09-20T01:39:50.088Z","etag":null,"topics":["networking","packet-capture","pcap"],"latest_commit_sha":null,"homepage":"","language":"Cython","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pynetwork.png","metadata":{"files":{"readme":"README.rst","changelog":"Changelog.md","contributing":"docs/contributing.rst","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":"AUTHORS"}},"created_at":"2012-11-28T18:57:46.000Z","updated_at":"2025-09-12T10:21:40.000Z","dependencies_parsed_at":"2024-01-17T15:05:47.758Z","dependency_job_id":null,"html_url":"https://github.com/pynetwork/pypcap","commit_stats":{"total_commits":204,"total_committers":23,"mean_commits":8.869565217391305,"dds":0.6225490196078431,"last_synced_commit":"968859f0ffb5b7c990506dffe82457b7de23a026"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/pynetwork/pypcap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pynetwork%2Fpypcap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pynetwork%2Fpypcap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pynetwork%2Fpypcap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pynetwork%2Fpypcap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pynetwork","download_url":"https://codeload.github.com/pynetwork/pypcap/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pynetwork%2Fpypcap/sbom","scorecard":{"id":751652,"data":{"date":"2025-08-11","repo":{"name":"github.com/pynetwork/pypcap","commit":"1f1b67cde5b9380f5c0a4743e0d9fb31adf604fe"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.2,"checks":[{"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":"Code-Review","score":5,"reason":"Found 7/12 approved changesets -- score normalized to 5","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":"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":"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":"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":"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":"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":"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":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Warn: project license file does not contain an FSF or OSI license."],"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":8,"reason":"1 out of the last 1 releases have a total of 1 signed artifacts.","details":["Info: signed release artifact: pypcap-1.2.0rc1.tar.gz.asc: https://github.com/pynetwork/pypcap/releases/tag/v1.2.0-rc.1","Warn: release artifact v1.2.0-rc.1 does not have provenance: https://api.github.com/repos/pynetwork/pypcap/releases/7743628"],"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 26 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-22T20:32:41.846Z","repository_id":5697183,"created_at":"2025-08-22T20:32:41.847Z","updated_at":"2025-08-22T20:32:41.847Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27787588,"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-12-17T02:00:08.291Z","response_time":55,"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":["networking","packet-capture","pcap"],"created_at":"2024-08-01T09:01:45.349Z","updated_at":"2025-12-17T22:55:59.964Z","avatar_url":"https://github.com/pynetwork.png","language":"Cython","funding_links":[],"categories":["\u003ca id=\"79499aeece9a2a9f64af6f61ee18cbea\"\u003e\u003c/a\u003e浏览嗅探\u0026\u0026流量拦截\u0026\u0026流量分析\u0026\u0026中间人","\u003ca id=\"8bc2e181f74ba67ec93fd2a13d95cc0c\"\u003e\u003c/a\u003elibpcap"],"sub_categories":["\u003ca id=\"dde87061175108fc66b00ef665b1e7d0\"\u003e\u003c/a\u003epcap数据包","\u003ca id=\"b239f12aca7aa942b45836032cbef99a\"\u003e\u003c/a\u003e转换"],"readme":"Python PCAP module\n------------------\n\n**Attention** this project is currently unmaintained. If you would like to help with maitaining it please reach out (see: https://github.com/pynetwork/pypcap/issues/106)!\n\n|travis| `Read the Docs \u003chttp://pypcap.rtfd.org\u003e`__\n\nThis is a simplified object-oriented Python wrapper for libpcap -\nthe current tcpdump.org version, and the WinPcap port for Windows.\n\nExample use #1::\n\n    \u003e\u003e\u003e import pcap\n    \u003e\u003e\u003e sniffer = pcap.pcap(name=None, promisc=True, immediate=True, timeout_ms=50)\n    \u003e\u003e\u003e addr = lambda pkt, offset: '.'.join(str(ord(pkt[i])) for i in range(offset, offset + 4))\n    \u003e\u003e\u003e for ts, pkt in sniffer:\n    ...     print('%d\\tSRC %-16s\\tDST %-16s' % (ts, addr(pkt, sniffer.dloff + 12), addr(pkt, sniffer.dloff + 16)))\n    ...\n\nExample use #2::\n\n    Listing Interfaces\n\n    \u003e\u003e\u003e import pcap\n    \u003e\u003e\u003e print (\"Interfaces:\\n\" + '\\n'.join(pcap.findalldevs()))\n\nWindows notes\n-------------\n\nWinPcap has compatibility issues with Windows 10, therefore\nit's recommended to use `Npcap \u003chttps://nmap.org/npcap/\u003e`_\n(Nmap's packet sniffing library for Windows, based on the WinPcap/Libpcap libraries, but with improved speed, portability, security, and efficiency). Please enable WinPcap API-compatible mode during the library installation.\n\n\nInstallation\n------------\n\nThis package requires:\n\n* libpcap-dev\n\n* python-dev\n\nTo install run::\n\n    pip install pypcap\n\n\nInstallation from sources\n~~~~~~~~~~~~~~~~~~~~~~~~~\n\nPlease clone the sources and run::\n\n    python setup.py install\n\nNote for Windows users: Please download the `Npcap SDK \u003chttps://nmap.org/npcap/\u003e`_, unpack the archive and put it into the sibling directory as ``wpdpack`` (``setup.py`` will discover it).\n\nSample procedure in PowerShell::\n\n    cd ..\n    wget -usebasicparsing -outfile npcap-sdk-0.1.zip https://nmap.org/npcap/dist/npcap-sdk-0.1.zip\n    Expand-Archive -LiteralPath npcap-sdk-0.1.zip\n    mv npcap-sdk-0.1\\npcap-sdk-0.1 wpdpack\n    cd pypcap\n    python setup.py install\n\n\nSupport\n-------\n\nVisit https://github.com/pynetwork/pypcap for help!\n\n.. |travis| image:: https://img.shields.io/travis/pynetwork/pypcap.svg\n   :target: https://travis-ci.org/pynetwork/pypcap\n\n\nDevelopment notes\n-----------------\n\nRegenerating C code\n~~~~~~~~~~~~~~~~~~~\n\nThe project uses Cython to generate the C code, it's recommended to install it from sources: https://github.com/cython/cython\n\nTo regenerate code please use::\n\n    cython pcap.pyx\n\n\nBuilding docs\n~~~~~~~~~~~~~\n\nTo build docs you need the following additional dependencies::\n\n    pip install sphinx mock sphinxcontrib.napoleon\n\nPlease use `build_sphinx` task to regenerate the docs::\n\n    python setup.py build_sphinx\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpynetwork%2Fpypcap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpynetwork%2Fpypcap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpynetwork%2Fpypcap/lists"}