{"id":22285483,"url":"https://github.com/savon-noir/python-libnessus","last_synced_at":"2025-07-28T22:31:17.766Z","repository":{"id":11034274,"uuid":"13367613","full_name":"savon-noir/python-libnessus","owner":"savon-noir","description":"Python Nessus Library - libnessus is a python library to enable devs to chat with nessus XMLRPC API, parse, store and diff scan results. It's wonderful.","archived":false,"fork":false,"pushed_at":"2023-02-10T21:30:11.000Z","size":830,"stargazers_count":25,"open_issues_count":3,"forks_count":17,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-16T13:18:30.059Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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":"CHANGES.txt","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2013-10-06T19:14:00.000Z","updated_at":"2023-03-25T21:10:46.000Z","dependencies_parsed_at":"2024-01-07T13:30:27.076Z","dependency_job_id":null,"html_url":"https://github.com/savon-noir/python-libnessus","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/savon-noir%2Fpython-libnessus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/savon-noir%2Fpython-libnessus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/savon-noir%2Fpython-libnessus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/savon-noir%2Fpython-libnessus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/savon-noir","download_url":"https://codeload.github.com/savon-noir/python-libnessus/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227961872,"owners_count":17847836,"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-03T16:52:32.556Z","updated_at":"2024-12-03T16:52:33.541Z","avatar_url":"https://github.com/savon-noir.png","language":"Python","readme":"python-libnessus\n==============\n\nCode status\n-----------\n|Build Status| |Coverage Status| |Landscape Status|\n\nIMPORTANT NOTICE\n================\n\nSince I'm a bit lacking of time to maintain this code, I handed over the developpement and code maintenance to @bmx0r; who was anyway maintaining and improving it since almost the beginning :p\n\nConsequently, ensure to check his repository (https://github.com/bmx0r/python-libnessus/) and pull requests or clone from it.\n\nhttps://github.com/bmx0r/python-libnessus\n\nThanks @bmx0r!\n\n\nAbout\n-----\n\nlibnessus is a python library to manipulate nessus process and data.\n\nlibnessus is what you were looking for if you need to implement the following:\n- manipulate nessus scans results to do reporting\n- compare and diff nessus scans\n- store nessus scans in a datastore (mongo and Elasticsearch supported)\n\nIn the future we might implement something to discuss with nessus API\n- automate or schedule nessus scans on a regular basis\n- batch process scan reports\n\nInstall\n-------\nDependencies : \nYou might need jsonpickle,elasticsearch,pymongo if you want to use the backend plugins\n\nYou can install libnmap via pip::\n\n    pip install libnessus\n\nor via git::\n\n    $ git clone https://github.com/bmx0r/python-libnessus.git \n    $ cd python-libnessus \n    $ python setup.py install\n\nModel\n-----\nNessusReport:\n\n.. code-block:: pyton\n\n  In [32]: report = NessusParser.parse_fromfile('/home/vagrant/python-libnessus/libnessus/test/files/nessus_forgedReport_ReportItem.nessus')\n  In [33]: report?\n  Type:           NessusReport\n  String form:    localpci 1 0:00:05\n  File:           /home/vagrant/python-libnessus/libnessus/objects/report.py\n  Docstring:\n  This class represent a Nessus repport, it aims to manipulate\n  in a easy way the content, and present some metadata\n  Init docstring:\n  Description: Constructor of NessusReport\n  :param name: name of the report\n  :type name: str\n  :param hosts: list of NessusReportHost\n  :type hosts: list\n  :return: NessusReport\n  :rtype: NessusReport\n\nNessusReportHost:\n\n.. code-block:: pyton\n\n  In [34]: host = report.hosts[0]\n  In [35]: host?\n  Type:        NessusReportHost\n  String form: 127.0.0.1 127.0.0.1 {'patch-summary-txt-79ed019e4b6ec5267fd968e511eccdb2': 'CentOS 6 : libtirpc ( \u003c...\u003e 2cda94fbf08': 'CentOS 5 / 6 : libxml2 (CESA-2013:0581): Update the affected libxml2 packages.')'} 5\n  File:        /home/vagrant/python-libnessus/libnessus/objects/reporthost.py\n  Docstring:   Description: Represent an object NessusReportHost in a nessus xml\n\nNessusReportItem:\n\n.. code-block:: pyton\n\n  In [36]: reportitem = host.get_report_items[3]\n  In [37]: reportitem?\n  Type:           NessusReportItem\n  String form:    10544:Linux Multiple statd Packages Remote Format String 4\n  File:           /home/vagrant/python-libnessus/libnessus/objects/reportitem.py\n  Docstring:      This class represent a ReportItem in the nessus xml\n  Init docstring:\n  Constructor of Vulnerability\n  :param vuln_info: dict of vulnerabities as generated by\n  NessusParser.parse_reportitem\n  :type vuln_info: dict\n\nExamples\n--------\nHere's a basic example:\n\n.. code-block:: pyton\n\n  # Parse a nessus report from xml and save it in Elastic search\n  In [1]: from libnessus.parser import NessusParser\n  In [3]: from libnessus.plugins.backendplugin import NessusBackendPlugin\n  In [4]: from libnessus.plugins.backendpluginFactory import BackendPluginFactory\n  In [5]: url = {'plugin_name': \"es\"}\n  In [6]: backend = BackendPluginFactory.create(\\**url)\n  In [7]: nessus_obj_list = NessusParser.parse_fromfile('/home/vagrant/python-libnessus/libnessus/test/files/nessus_forgedReport_ReportItem.nessus')\n  In [8]: rc = nessus_obj_list.save(backend)\n  In [9]: rc\n  Out[9]: 2275333\n  In [10]: backend\n  Out[10]: \u003clibnessus.plugins.es.NessusEsPlugin at 0x1dcc790\u003e\n  In [11]: nessus_obj_list\n  Out[11]: localpci 1 0:00:05\n  #retrieve the report from ES \n  In [15]: ff = backend.get(\"2275333\")\n  In [16]: ff\n  Out[16]: localpci 1 0:00:05\n\n\n.. |Build Status| image:: https://travis-ci.org/bmx0r/python-libnessus.png?branch=master\n   :target: https://travis-ci.org/bmx0r/python-libnessus\n\n.. |Coverage Status| image:: https://coveralls.io/repos/bmx0r/python-libnessus/badge.png?branch=master \n   :target: https://coveralls.io/r/bmx0r/python-libnessus?branch=master\n   \n.. |Landscape Status| image:: https://landscape.io/github/bmx0r/python-libnessus/master/landscape.svg?style=flat\n   :target: https://landscape.io/github/bmx0r/python-libnessus/master\n   :alt: Code Health\n   \n\n\n","funding_links":[],"categories":["Tools"],"sub_categories":["Satellite"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsavon-noir%2Fpython-libnessus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsavon-noir%2Fpython-libnessus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsavon-noir%2Fpython-libnessus/lists"}