{"id":13498111,"url":"https://github.com/savon-noir/python-libnmap","last_synced_at":"2025-11-12T21:36:02.138Z","repository":{"id":7921354,"uuid":"9307590","full_name":"savon-noir/python-libnmap","owner":"savon-noir","description":"libnmap is a python library to run nmap scans, parse and diff scan results. It supports python 2.7 up to 3.8. It's wonderful.","archived":false,"fork":false,"pushed_at":"2025-01-29T22:12:41.000Z","size":1519,"stargazers_count":491,"open_issues_count":21,"forks_count":182,"subscribers_count":60,"default_branch":"master","last_synced_at":"2025-10-17T07:55:42.634Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://libnmap.readthedocs.org","language":"Python","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/savon-noir.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2013-04-08T21:46:31.000Z","updated_at":"2025-07-19T22:04:31.000Z","dependencies_parsed_at":"2022-09-08T20:30:18.882Z","dependency_job_id":"07a8f3d0-1722-48f5-b90c-d5437e62b3d1","html_url":"https://github.com/savon-noir/python-libnmap","commit_stats":{"total_commits":353,"total_committers":36,"mean_commits":9.805555555555555,"dds":0.3626062322946175,"last_synced_commit":"37092bd825eeccaf3081b15b25f23294a94cf1ac"},"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/savon-noir/python-libnmap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/savon-noir%2Fpython-libnmap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/savon-noir%2Fpython-libnmap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/savon-noir%2Fpython-libnmap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/savon-noir%2Fpython-libnmap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/savon-noir","download_url":"https://codeload.github.com/savon-noir/python-libnmap/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/savon-noir%2Fpython-libnmap/sbom","scorecard":{"id":802105,"data":{"date":"2025-08-11","repo":{"name":"github.com/savon-noir/python-libnmap","commit":"f9887fc9add90e2e0b3c59671ec5ecd9bee8fcd3"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.1,"checks":[{"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":10,"reason":"no dangerous workflow patterns detected","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":"Code-Review","score":3,"reason":"Found 3/8 approved changesets -- score normalized to 3","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":"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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/preflight_check.yaml:1","Warn: no topLevel permission defined: .github/workflows/pypi_publish.yaml:1","Info: no jobLevel write permissions found"],"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/preflight_check.yaml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/savon-noir/python-libnmap/preflight_check.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/preflight_check.yaml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/savon-noir/python-libnmap/preflight_check.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/preflight_check.yaml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/savon-noir/python-libnmap/preflight_check.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/preflight_check.yaml:42: update your workflow using https://app.stepsecurity.io/secureworkflow/savon-noir/python-libnmap/preflight_check.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/preflight_check.yaml:44: update your workflow using https://app.stepsecurity.io/secureworkflow/savon-noir/python-libnmap/preflight_check.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pypi_publish.yaml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/savon-noir/python-libnmap/pypi_publish.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pypi_publish.yaml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/savon-noir/python-libnmap/pypi_publish.yaml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/preflight_check.yaml:49","Warn: pipCommand not pinned by hash: .github/workflows/preflight_check.yaml:50","Warn: pipCommand not pinned by hash: .github/workflows/preflight_check.yaml:51","Warn: pipCommand not pinned by hash: .github/workflows/preflight_check.yaml:53","Warn: pipCommand not pinned by hash: .github/workflows/preflight_check.yaml:73","Warn: pipCommand not pinned by hash: .github/workflows/preflight_check.yaml:25","Warn: pipCommand not pinned by hash: .github/workflows/preflight_check.yaml:26","Warn: pipCommand not pinned by hash: .github/workflows/pypi_publish.yaml:18","Warn: pipCommand not pinned by hash: .github/workflows/pypi_publish.yaml:19","Info:   0 out of   6 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   0 out of   9 pipCommand dependencies pinned"],"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":"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: LICENCE: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":-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":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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 30 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-23T10:46:30.703Z","repository_id":7921354,"created_at":"2025-08-23T10:46:30.704Z","updated_at":"2025-08-23T10:46:30.704Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280963194,"owners_count":26421357,"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-10-25T02:00:06.499Z","response_time":81,"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":[],"created_at":"2024-07-31T20:00:51.178Z","updated_at":"2025-11-12T21:36:02.120Z","avatar_url":"https://github.com/savon-noir.png","language":"Python","funding_links":[],"categories":["Python","\u003ca id=\"a76463feb91d09b3d024fae798b92be6\"\u003e\u003c/a\u003e侦察\u0026\u0026信息收集\u0026\u0026子域名发现与枚举\u0026\u0026OSINT","Related Lists","\u003ca id=\"170048b7d8668c50681c0ab1e92c679a\"\u003e\u003c/a\u003e工具"],"sub_categories":["\u003ca id=\"94c01f488096fafc194b9a07f065594c\"\u003e\u003c/a\u003enmap"],"readme":"python-libnmap\n==============\n\nCode status\n-----------\n\n|preflight-check| |Coverage Status| |License|\n\nUse cases\n---------\n\nlibnmap is a python library enabling python developers to manipulate\nnmap process and data.\n\nlibnmap is what you were looking for if you need to implement the\nfollowing:\n\n-  automate or schedule nmap scans on a regular basis\n-  manipulate nmap scans results to do reporting\n-  compare and diff nmap scans to generate graphs\n-  batch process scan reports\n-  …\n\nThe above uses cases will be easy to implement with the help of the\nlibnmap modules.\n\nlibnmap modules\n---------------\n\nThe lib currently offers the following modules:\n\n-  **process**: enables you to launch nmap scans\n-  **parse**: enables you to parse nmap reports or scan results (only\n   XML so far) from a file, a string,…\n-  **report**: enables you to manipulate a parsed scan result and\n   de/serialize scan results in a json format\n-  **diff**: enables you to see what changed between two scans\n-  **common**: contains basic nmap objects like NmapHost and\n   NmapService. It is to note that each object can be \"diff()ed\" with\n   another similar object.\n-  **plugins**: enables you to support datastores for your scan results\n   directly in the \"NmapReport\" object. from report module:\n\n   -  mongodb: insert/get/getAll/delete\n   -  sqlalchemy: insert/get/getAll/delete\n   -  aws s3: insert/get/getAll/delete (not supported for python3 since\n      boto is not supporting py3)\n   -  csv: todo (easy to implement)\n   -  elastic search: todo\n\nDocumentation\n-------------\n\nAll the documentation is available on `read the\ndocs \u003chttps://libnmap.readthedocs.org\u003e`__. This documentation contains\nsmall code samples that you directly reuse.\n\nDependencies\n------------\n\nlibnmap has by default no dependencies, except defusedxml if you need to\nimport untrusted XML scans data.\n\nThe only additional python modules you’ll have to install depends if you\nwish to use libnmap to store reports on an exotic data store via\nlibnmap’s independents plugins.\n\nBelow the list of optional dependencies:\n\n-  `sqlalchemy \u003chttps://github.com/zzzeek/sqlalchemy\u003e`__ (+the driver\n   ie:MySQL-python)\n-  `pymongo \u003chttps://github.com/mongodb/mongo-python-driver/\u003e`__\n-  `boto \u003chttps://github.com/boto/boto\u003e`__\n\nSecurity\n--------\n\nIf you are importing/parsing untrusted XML scan outputs with\npython-libnmap, install defusedxml library:\n\n.. code:: bash\n\n   ronald@brouette:~/dev$ pip install defusedxml\n\nThis will prevent you from being vulnerable to `XML External Entities\nattacks \u003chttps://owasp.org/www-community/vulnerabilities/XML_External_Entity_(XXE)_Processing\u003e`__.\n\nFor more information, read the `official libnmap\ndocumentation \u003chttps://libnmap.readthedocs.io/en/latest/parser.html#security-note-for-libnmap-parser\u003e`__\n\nThis note relates to a cascaded CVE vulnerability from the python core\nlibrary XML ElementTree. Nevertheless, python-libnmap has been assigned\nan `official\nCVE \u003chttps://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-1010017\u003e`__\nto track this issue.\n\nThis CVE is addressed from v0.7.2.\n\nPython Support\n--------------\n\nThe libnmap code is tested against the following python interpreters:\n\n-  Python 2.7\n-  Python 3.6\n-  Python 3.7\n-  Python 3.8\n\nInstall\n-------\n\nYou can install libnmap via pip:\n\n.. code:: bash\n\n   ronald@brouette:~$ pip install python-libnmap\n\nor via git and pip:\n\n.. code:: bash\n\n   ronald@brouette:~$ git clone https://github.com/savon-noir/python-libnmap.git\n   ronald@brouette:~$ cd python-libnmap\n   ronald@brouette:~$ pip install .\n\nor via git and dist utils (à l’ancienne/deprecated):\n\n.. code:: bash\n\n   ronald@brouette:~$ git clone https://github.com/savon-noir/python-libnmap.git\n   ronald@brouette:~$ cd python-libnmap\n   ronald@brouette:~$ python setup.py install\n\n\nExamples\n--------\n\nSome codes samples are available in the examples directory or in the\n`documentation \u003chttps://libnmap.readthedocs.org\u003e`__.\n\nAmong other example, you notice an sample code pushing nmap scan reports\nin an ElasticSearch instance and allowing you to create fancy dashboards\nin Kibana like the screenshot below:\n\n.. figure:: https://github.com/savon-noir/python-libnmap/blob/es/examples/kibanalibnmap.png\n   :alt: Kibanane\n\nContributors\n------------\n\nMike @bmx0r Boutillier for S3 and SQL-Alechemy plugins and for the\nconstructive critics. Thanks!\n\n.. |preflight-check| image:: https://github.com/savon-noir/python-libnmap/workflows/Preflight%20Check/badge.svg\n.. |Coverage Status| image:: https://coveralls.io/repos/github/savon-noir/python-libnmap/badge.svg?branch=master\n   :target: https://coveralls.io/github/savon-noir/python-libnmap?branch=master\n.. |License| image:: https://img.shields.io/badge/License-Apache%202.0-blue.svg\n   :target: https://opensource.org/licenses/Apache-2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsavon-noir%2Fpython-libnmap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsavon-noir%2Fpython-libnmap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsavon-noir%2Fpython-libnmap/lists"}