Get the App
SLTechnology News&Howtos  ›  Network Security  › 

Using openvas in metasploit

Shulou Source: shulou.com Published: 2022-06-01 05:56:39 10月04日 Update

First, load the OpenVAS plug-in

Msf > load openvas

2. Connect OpenVAS

Msf > openvas_connect

[*] Usage:

[*] openvas_connect username password host port

Msf > openvas_connect admin admin 10.0.0.1 9390 ok

Third, set the scanning target, which assumes 10.0.0.1

Msf > openvas_target_create router 10.0.0.1 msf

4. Select scanning strategy

Msf > openvas_config_list

[+] OpenVAS list of configs

ID Name

-

0 Full and fast

1 Full and fast ultimate

2 Full and very deep

3 Full and very deep ultimate

4 empty

Fifth, establish scanning tasks and select corresponding scanning strategies.

Msf > openvas_task_create

[*] Usage: openvas_task_create

Msf > openvas_task_create router "router commnent scan" 0 2

6. Perform scanning tasks

Msf > openvas_task_start

[*] Usage: openvas_task_start

Msf > openvas_task_start 2

Check the progress of the task

Msf > openvas_task_list

Msf > openvas_task_list

[+] OpenVAS list of tasks

ID Name Comment Status Progress

0 unnamed Done-1

1 router router commnent scan Requested 1

Download the scan report

Msf > openvas_report_list / / find the scan report ID that needs to be downloaded

Msf > openvas_format_list// lists the scan report formats available for download

Msf > openvas_report_download

[*] Usage: openvas_report_download

Msf > openvas_report_download 2 1 / root router_scan_report.html

Tags: Tasks reports policies selections plug-ins formats goals progress Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno MySQL Shulou Tech Info Microsoft Huawei