openvas任务的信息和历史接收器
openvas_tasks的Python项目详细描述
OpenVAS任务[构建状态](https://travis ci.org/vertexlique/openvas_tasks.svg)](https://travis ci.org/vertexlique/openvas_tasks)
[![PYPI版本](https://badge.fury.io/py/openvas_tasks.svg)(http://badge.fury.io/py/openvas_tasks)
[![故事就绪](https://badge.waffle.io/vertexlique/openvas_tasks.png?label=ready&title=ready)(https://waffle.io/vertexlique/openvas_tasks)
此项目用于与openvas tasks数据库中的openvas任务交互。它用于获取所有任务的数据、它们的历史记录、报表映射和结果。默认情况下,它将使用扫描仪机器上的数据库,并且主要包含orm映射(但不是所有映射)。如果您想扩展此项目,我们很高兴接受您的prs。
openvas任务数据库的默认安装位于`/var/lib/openvas/mgr/tasks.db`.
=openvas-tasks.pool()
b.tasks\u count()
````
或者如果你有自己的数据库:
````
import openvas-tasks
b=openvas-tasks.pool("/users/vertexlique/projects/tasks.db")
b.showu tasks()
```
api
>
>
-**openvas-openvas-tasks.pool().tasks-data()
>-fetch-fetch西班牙数据库中的所有任务数据
-**openvas_tasks.pool().tasks_count()**
-从数据库中获取任务计数
-**openvas_tasks.pool().results_data()**
-从数据库中获取所有结果数据
-**openvas_tasks.pool().results_count()**
-从数据库中获取结果计数
-**openvas_tasks.pool().shower_tasks()**
-获取任何openvas gui中显示的所有任务(如greenbone)
-**openvas_tasks.pool().shower_tasks_count()**
-获取显示的任务计数
-**openvas_tasks.pool().past_tasks()**
-获取所有以前和删除的任务数据
-**openvas_tasks.pool().past_tasks_count()**
-获取以前和已删除的任务计数
-**openvas_tasks.pool().task_detail(taskID)**
-获取具有指定任务ID的所有任务详细信息
-**openvas_tasks.pool().task_detail_count(taskID)**
-从db
当前:
*任务
*结果
*报表
*目标
可浏览。
`
-time=`进行中扫描的时间`
-comment=`扫描的注释`
-description=`扫描的说明`
-run-status=`扫描的运行状态`
-start-time=`开始时间`
-end-time=`结束时间`
-config=`配置此扫描中启用的`
-target=`target id`
-schedule=`schedule if set`
-schedule\u next\u time=`next time of the schedule if set`
-slave=`slave scan runner id`
-config\u location=`config location`
-target\u location=`target location`
-schedule\u location=`schedule location`
-从位置=`slave location`
-上传结果计数=`upload result count`
-创建时间=`creation time of task`
-修改时间=`modification time of task`
-id=`id of result`
-task=`linked task结果的`
-子网=`目标的子网`
-主机=`结果所有者目标的主机`
-端口=`有漏洞的目标的端口`
-nvt=`openvas nvt oid`
-类型=`漏洞类型`
-描述=`漏洞描述`
-报告=`report链接到特定结果的ID `
\reports
-id=`id of report`
-uuid=`uuid of report`
-owner=`owner id of report`
-hidden=`hidden in ui or not`
-task=`related task`
-date=`date of it`
-start=`start time of linked sc一个`
-end-time=`链接扫描任务的结束时间`
-nbe file=`nbe-file-path`
-comment=`comment of report`
-scan-run-status=`scan-run-status`
-slave-progress=`slave-progress`
-slave-task-uuid=`slave-task-uuid`
-highs=`高级别漏洞count`
-mediums=`medium level vulnerability count`
-lows=`low level vulnerability count`
-logs=`log level vulnerability count`
-fps=`fps`
-override-highs=`overrided-highs`
-override-mediums=`overrided-mediums`
-override-lows=`overrided-lows`
-override撸logs=`overrided logs`
-override撸fps=`overrided fps`
\uuid=`uuid of the target`
-owner=`target owner id`
-name=`name of the target`
-hosts=`hosts of target`
-comment=`comment对于目标`
-lsc_credential=`local security check credentials`
-ssh_port=`ssh port`
-smb_lsc_credential=`smb lsc credentials`
-port_range=`target的端口范围,无论任务为`
-创建时间=`target的创建时间`
-修改时间=`目标`
\configs的修改时间
-id=`configs id`
-uuid=`configs uuid`
-owner=`config owner id`
-name=`config name`
-nvt选择器=`nvt提要选择器`
-comment=`comment for configs`
-family=`family count of nvt`
-nvt嫒count=`nvt count`
-families嫒growing=`expanded family listings count`
-nvt嫒growing=`expanded nvt listings count`
-creation嫒time=`creation time for config`
-modification嫒time=`modification time for config`
-uuid=`uuid for alert`
-owner=`owner id for alert`
-name=`name of alert`
-comment=`comment of alert`
-event=`event of alert`
-condition=`condition of alert`
-method=`alert method`
-filter\u col=`filter col for multiple alert type`
-创建时间=`警报的创建时间`
-修改时间=`警报的修改时间`
\如果您有单点安装,它将不存在。**
-id=`id for slave`
-uuid=`uuid for slave`
-owner=`owner id for slave`
-name=`name for slave`
-comment=`comment for slave`
-host=`host of the slave`
-port=`port of the slave`
-login=`从机登录`
-密码``从机密码`
-创建时间``从机创建时间`
-修改时间``从机修改时间`
[![PYPI版本](https://badge.fury.io/py/openvas_tasks.svg)(http://badge.fury.io/py/openvas_tasks)
[![故事就绪](https://badge.waffle.io/vertexlique/openvas_tasks.png?label=ready&title=ready)(https://waffle.io/vertexlique/openvas_tasks)
此项目用于与openvas tasks数据库中的openvas任务交互。它用于获取所有任务的数据、它们的历史记录、报表映射和结果。默认情况下,它将使用扫描仪机器上的数据库,并且主要包含orm映射(但不是所有映射)。如果您想扩展此项目,我们很高兴接受您的prs。
openvas任务数据库的默认安装位于`/var/lib/openvas/mgr/tasks.db`.
=openvas-tasks.pool()
b.tasks\u count()
````
或者如果你有自己的数据库:
````
import openvas-tasks
b=openvas-tasks.pool("/users/vertexlique/projects/tasks.db")
b.showu tasks()
```
api
>
>
-**openvas-openvas-tasks.pool().tasks-data()
>-fetch-fetch西班牙数据库中的所有任务数据
-**openvas_tasks.pool().tasks_count()**
-从数据库中获取任务计数
-**openvas_tasks.pool().results_data()**
-从数据库中获取所有结果数据
-**openvas_tasks.pool().results_count()**
-从数据库中获取结果计数
-**openvas_tasks.pool().shower_tasks()**
-获取任何openvas gui中显示的所有任务(如greenbone)
-**openvas_tasks.pool().shower_tasks_count()**
-获取显示的任务计数
-**openvas_tasks.pool().past_tasks()**
-获取所有以前和删除的任务数据
-**openvas_tasks.pool().past_tasks_count()**
-获取以前和已删除的任务计数
-**openvas_tasks.pool().task_detail(taskID)**
-获取具有指定任务ID的所有任务详细信息
-**openvas_tasks.pool().task_detail_count(taskID)**
-从db
当前:
*任务
*结果
*报表
*目标
可浏览。
`
-time=`进行中扫描的时间`
-comment=`扫描的注释`
-description=`扫描的说明`
-run-status=`扫描的运行状态`
-start-time=`开始时间`
-end-time=`结束时间`
-config=`配置此扫描中启用的`
-target=`target id`
-schedule=`schedule if set`
-schedule\u next\u time=`next time of the schedule if set`
-slave=`slave scan runner id`
-config\u location=`config location`
-target\u location=`target location`
-schedule\u location=`schedule location`
-从位置=`slave location`
-上传结果计数=`upload result count`
-创建时间=`creation time of task`
-修改时间=`modification time of task`
-id=`id of result`
-task=`linked task结果的`
-子网=`目标的子网`
-主机=`结果所有者目标的主机`
-端口=`有漏洞的目标的端口`
-nvt=`openvas nvt oid`
-类型=`漏洞类型`
-描述=`漏洞描述`
-报告=`report链接到特定结果的ID `
\reports
-id=`id of report`
-uuid=`uuid of report`
-owner=`owner id of report`
-hidden=`hidden in ui or not`
-task=`related task`
-date=`date of it`
-start=`start time of linked sc一个`
-end-time=`链接扫描任务的结束时间`
-nbe file=`nbe-file-path`
-comment=`comment of report`
-scan-run-status=`scan-run-status`
-slave-progress=`slave-progress`
-slave-task-uuid=`slave-task-uuid`
-highs=`高级别漏洞count`
-mediums=`medium level vulnerability count`
-lows=`low level vulnerability count`
-logs=`log level vulnerability count`
-fps=`fps`
-override-highs=`overrided-highs`
-override-mediums=`overrided-mediums`
-override-lows=`overrided-lows`
-override撸logs=`overrided logs`
-override撸fps=`overrided fps`
\uuid=`uuid of the target`
-owner=`target owner id`
-name=`name of the target`
-hosts=`hosts of target`
-comment=`comment对于目标`
-lsc_credential=`local security check credentials`
-ssh_port=`ssh port`
-smb_lsc_credential=`smb lsc credentials`
-port_range=`target的端口范围,无论任务为`
-创建时间=`target的创建时间`
-修改时间=`目标`
\configs的修改时间
-id=`configs id`
-uuid=`configs uuid`
-owner=`config owner id`
-name=`config name`
-nvt选择器=`nvt提要选择器`
-comment=`comment for configs`
-family=`family count of nvt`
-nvt嫒count=`nvt count`
-families嫒growing=`expanded family listings count`
-nvt嫒growing=`expanded nvt listings count`
-creation嫒time=`creation time for config`
-modification嫒time=`modification time for config`
-uuid=`uuid for alert`
-owner=`owner id for alert`
-name=`name of alert`
-comment=`comment of alert`
-event=`event of alert`
-condition=`condition of alert`
-method=`alert method`
-filter\u col=`filter col for multiple alert type`
-创建时间=`警报的创建时间`
-修改时间=`警报的修改时间`
\如果您有单点安装,它将不存在。**
-id=`id for slave`
-uuid=`uuid for slave`
-owner=`owner id for slave`
-name=`name for slave`
-comment=`comment for slave`
-host=`host of the slave`
-port=`port of the slave`
-login=`从机登录`
-密码``从机密码`
-创建时间``从机创建时间`
-修改时间``从机修改时间`