{ "info": { "author": "Ronald Bister and Mike Boutillier", "author_email": "michael.boutillier@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Console", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: System :: Networking" ], "description": "python-libnessus ==============\n\nCode status\n===========\n\n[![Build\nStatus](https://travis-ci.org/bmx0r/python-libnessus.png?branch=master)](https://travis-ci.org/bmx0r/python-libnessus)\n[![Coverage\nStatus](https://coveralls.io/repos/bmx0r/python-libnessus/badge.png?branch=master)](https://coveralls.io/r/bmx0r/python-libnessus?branch=master)\n[![Code Health](https://landscape.io/github/bmx0r/python-libnessus/master/landscape.svg?style=flat)](https://landscape.io/github/bmx0r/python-libnessus/master)\n\nStill in dev\\...\n\nAbout\n=====\n\nlibnessue is a python library to manipulate nessus process and data.\n\nlibnessus is what you were looking for if you need to implement the\nfollowing: - manipulate nessus scans results to do reporting - compare\nand diff nessus scans - store nessus scans in a datastore (mongo and\nElasticsearch supported)\n\nIn the future we might implement something to discuss with nessus API -\nautomate or schedule nessus scans on a regular basis - batch process\nscan reports\n\nInstall\n=======\n\nDependencies : You might need jsonpickle,elasticsearch,pymongo if you\nwant to use the backend plugins\n\nYou can install libnmap via pip:\n\n pip install python-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=====\n\nNessusReport:\n\n``` {.pyton}\nIn [32]: report = NessusParser.parse_fromfile('/home/vagrant/python-libnessus/libnessus/test/files/nessus_forgedReport_ReportItem.nessus')\nIn [33]: report?\nType: NessusReport\nString form: localpci 1 0:00:05\nFile: /home/vagrant/python-libnessus/libnessus/objects/report.py\nDocstring:\nThis class represent a Nessus repport, it aims to manipulate\nin a easy way the content, and present some metadata\nInit docstring:\nDescription: 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```\n\nNessusReportHost:\n\n``` {.pyton}\nIn [34]: host = report.hosts[0]\nIn [35]: host?\nType: NessusReportHost\nString form: 127.0.0.1 127.0.0.1 {'patch-summary-txt-79ed019e4b6ec5267fd968e511eccdb2': 'CentOS 6 : libtirpc ( <...> 2cda94fbf08': 'CentOS 5 / 6 : libxml2 (CESA-2013:0581): Update the affected libxml2 packages.')'} 5\nFile: /home/vagrant/python-libnessus/libnessus/objects/reporthost.py\nDocstring: Description: Represent an object NessusReportHost in a nessus xml\n```\n\nNessusReportItem:\n\n``` {.pyton}\nIn [36]: reportitem = host.get_report_items[3]\nIn [37]: reportitem?\nType: NessusReportItem\nString form: 10544:Linux Multiple statd Packages Remote Format String 4\nFile: /home/vagrant/python-libnessus/libnessus/objects/reportitem.py\nDocstring: This class represent a ReportItem in the nessus xml\nInit docstring:\nConstructor of Vulnerability\n:param vuln_info: dict of vulnerabities as generated by\nNessusParser.parse_reportitem\n:type vuln_info: dict\n```\n\nExamples\n========\n\nHere\\'s a basic example:\n\n``` {.pyton}\n# Parse a nessus report from xml and save it in Elastic search\nIn [1]: from libnessus.parser import NessusParser\nIn [3]: from libnessus.plugins.backendplugin import NessusBackendPlugin\nIn [4]: from libnessus.plugins.backendpluginFactory import BackendPluginFactory\nIn [5]: url = {'plugin_name': \"es\"}\nIn [6]: backend = BackendPluginFactory.create(\\**url)\nIn [7]: nessus_obj_list = NessusParser.parse_fromfile('/home/vagrant/python-libnessus/libnessus/test/files/nessus_forgedReport_ReportItem.nessus')\nIn [8]: rc = nessus_obj_list.save(backend)\nIn [9]: rc\nOut[9]: 2275333\nIn [10]: backend\nOut[10]: \nIn [11]: nessus_obj_list\nOut[11]: localpci 1 0:00:05\n#retrieve the report from ES \nIn [15]: ff = backend.get(\"2275333\")\nIn [16]: ff\nOut[16]: localpci 1 0:00:05\n```", "description_content_type": "text/markdown", "docs_url": null, "download_url": "https://github.com/bmx0r/python-libnessus/tarball/1.0.0.10", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/bmx0r/python-libnessus", "keywords": "", "license": "Creative Common \"Attribution\" license (CC-BY) v3", "maintainer": "", "maintainer_email": "", "name": "python-libnessus", "package_url": "https://pypi.org/project/python-libnessus/", "platform": "", "project_url": "https://pypi.org/project/python-libnessus/", "project_urls": { "Download": "https://github.com/bmx0r/python-libnessus/tarball/1.0.0.10", "Homepage": "https://github.com/bmx0r/python-libnessus" }, "release_url": "https://pypi.org/project/python-libnessus/1.0.0.10/", "requires_dist": null, "requires_python": "", "summary": "Python Nessus module to parse, chat with XMLRPC API, ...", "version": "1.0.0.10" }, "last_serial": 5757155, "releases": { "1.0.0.0": [ { "comment_text": "", "digests": { "md5": "d9572fd778bed2affd195db2c5f5eb0d", "sha256": "dd92b85fd4499ed0066de94ba77519c8dfa1b4ca2a0c192e0f81aa5c39da8501" }, "downloads": -1, "filename": "python-libnessus-1.0.0.0.tar.gz", "has_sig": false, "md5_digest": "d9572fd778bed2affd195db2c5f5eb0d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18499, "upload_time": "2014-11-25T23:21:36", "url": "https://files.pythonhosted.org/packages/ff/f2/b605eb06491dbccfbb682986b97a3e5eb71bb7a9835944a84d7c2a9dbf6d/python-libnessus-1.0.0.0.tar.gz" } ], "1.0.0.10": [ { "comment_text": "", "digests": { "md5": "c1f19c426a810283923b64e7e9c0cdc9", "sha256": "99adeea904628acbabe30c746f24d86b4e244682902e0b843277b70e0082628f" }, "downloads": -1, "filename": "python-libnessus-1.0.0.10.tar.gz", "has_sig": false, "md5_digest": "c1f19c426a810283923b64e7e9c0cdc9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14523, "upload_time": "2019-08-29T21:50:23", "url": "https://files.pythonhosted.org/packages/a4/5d/04322524258543697d620f866955580022851248d375ab4eb20309393600/python-libnessus-1.0.0.10.tar.gz" } ], "1.0.0.2": [ { "comment_text": "", "digests": { "md5": "e22636732630a2a2382bdf8e200c2482", "sha256": "cc8e5cab6f6f9331f2ac2469ad3db065e79f0d9ce3f27deb066a76363f135a5b" }, "downloads": -1, "filename": "python_libnessus-1.0.0.2-py3.4.egg", "has_sig": false, "md5_digest": "e22636732630a2a2382bdf8e200c2482", "packagetype": "bdist_egg", "python_version": "3.4", "requires_python": null, "size": 34521, "upload_time": "2015-09-20T22:25:20", "url": "https://files.pythonhosted.org/packages/07/31/ad35ace9ea22700f2c2290b2af39b728d2e78a86dd127f9b5fa3bc9c745d/python_libnessus-1.0.0.2-py3.4.egg" }, { "comment_text": "", "digests": { "md5": "c195a6fdf2bb6a67c86bd9b8808b6a38", "sha256": "d0624bf2e08a8218d93435b8e98217a978f11a6f3892b1ac06b9c177fd515e45" }, "downloads": -1, "filename": "python-libnessus-1.0.0.2.tar.gz", "has_sig": false, "md5_digest": "c195a6fdf2bb6a67c86bd9b8808b6a38", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11841, "upload_time": "2015-09-20T22:25:16", "url": "https://files.pythonhosted.org/packages/19/e9/c446eaacff250db3a543ad3c4cc8407095317ee5e4991ae4897ba2b3d635/python-libnessus-1.0.0.2.tar.gz" } ], "1.0.0.3": [ { "comment_text": "", "digests": { "md5": "aed512b7901a84f8d59428ee191642f2", "sha256": "8e4221d792403fb27646731fa046768efff53d35f68cd66f13022e3618cd6653" }, "downloads": -1, "filename": "python_libnessus-1.0.0.3-py3.3.egg", "has_sig": false, "md5_digest": "aed512b7901a84f8d59428ee191642f2", "packagetype": "bdist_egg", "python_version": "3.3", "requires_python": null, "size": 35146, "upload_time": "2015-11-04T16:32:45", "url": "https://files.pythonhosted.org/packages/6f/76/eb04ae58263b698056dd8a883408194c41756804a3cff7dc28021a072372/python_libnessus-1.0.0.3-py3.3.egg" }, { "comment_text": "", "digests": { "md5": "2326797510442cdc00880ea6f8565e44", "sha256": "4dcec48009ea797a4a39b26a89d373d20ecb41e40bc95fe165c415b62585618a" }, "downloads": -1, "filename": "python-libnessus-1.0.0.3.tar.gz", "has_sig": false, "md5_digest": "2326797510442cdc00880ea6f8565e44", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11909, "upload_time": "2015-11-04T16:32:41", "url": "https://files.pythonhosted.org/packages/3b/6f/c149dc3c78868eb5f47ad76b38176837c6a4c74fbd6cde06f29b4c1f542d/python-libnessus-1.0.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c1f19c426a810283923b64e7e9c0cdc9", "sha256": "99adeea904628acbabe30c746f24d86b4e244682902e0b843277b70e0082628f" }, "downloads": -1, "filename": "python-libnessus-1.0.0.10.tar.gz", "has_sig": false, "md5_digest": "c1f19c426a810283923b64e7e9c0cdc9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14523, "upload_time": "2019-08-29T21:50:23", "url": "https://files.pythonhosted.org/packages/a4/5d/04322524258543697d620f866955580022851248d375ab4eb20309393600/python-libnessus-1.0.0.10.tar.gz" } ] }