Install Openvas on Kali Linux

This article directory:

  1. Solve and configure the update source problem

  2. Install Openvas

  3. Custom login password

  Fourth, upgrade Openvas

   5. Check the operation of Openvas

   6. Modify the OpenVAS remote link

==================================================================================================

 

 

The current version of kali linux is 2018.1. When installing openvas, an error is reported, and openvas cannot be downloaded and installed through the network.

The main error is that the source configuration is wrong. It may be that the kali used now has not been updated for a long time.

 

1. Solve and configure the update source problem

The apt-get upgrade error shows that it cannot be updated, and the apt-get install openvas error shows that it is impossible to locate package openvas

 

In the case of the root command line, using apt-get and apt-upgrade always reports errors, mainly GPG error and repository key expired ( ED444FF07D8D0BF6 ),

Go to the kali official website to check and find that the official website explains as follows,

 

Find the problem, there is no big problem, directly in the root command line, execute the following command,

wget -q -O - https://archive.kali.org/archive-key.asc | apt-key add

Then execute apt update and apt upgrade on the root command line, no error will be reported, the update task will be executed directly, and the update will start happily.

 

2. Install Openvas

 Wait for the update to complete, start installing Openvas, and enter at the root command line

apt-get install openvas

Start installing openvas. During the installation process, the system prompts that you need to update libs. According to the default selection, update the built-in libs (this step is time-consuming, but you only need to enter y all the way)

 

 Wait for all libs to be updated, and enter the following input (this step takes a long time, and many files need to be downloaded. It is recommended to use the screen operation to avoid shell interruption)

openvas-setup

 

 After a long wait and IO read and write, openvas has already run, but we still need to do the next step

 

3. Custom login password

At this point, firefox has popped up the openvas login window, the root command line already has the default password password, enter admin and the password in the red box below to log in to openvas

 

The initial password is generated by the system, it is long and abnormal, we have to change the default password

 

Enter the following in the root command line in order to perform the password operation, remember that you must first stop the service, then change the password, and then start the service

When openvas starts, changing the password has no effect

openvas-stop     #Stop the openvas service 
openvasmd --user=admin --new-password=admin #Change     the password to admin or any 
openvas-start     #Start the openvas service

Of course, you can also use the default password to log in to openvas and change the password through the UI interface.

 

 Fourth, upgrade Openvas

To upgrade OpenVAS, enter the following on the root command line:
openvas-feed-update

 

 5. Check the operation of Openvas

 
View GSAD services, OpenVAS manager, OpenVAS manager port situation, enter in the command line
netstat -antp | grep 939*

The following two processes can be seen in the process

tcp 0 0 127.0.0.1:9390 0.0.0.0:* LISTEN 28390/openvasmd
tcp 0 0 0.0.0.0:9392 0.0.0.0:* LISTEN 28388/gsad

 

 6. Modify the OpenVAS remote link

By default, OpenVAS only allows 127.0.0.1 access, we need to change it to any host can access;
 
Stop the service first
openvas-stop

 Edit configuration file

vi /lib/systemd/system/greenbone-security-assistant.service

 

Modify  --listen=127.0.0.1 to --listen=0.0.0.0
 

Modify as follows

 

Start the service and see

openvas-start
netstat -antp | grep 9392

 

 

 

Reference 1

Reference 2

Reference 3   

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325114643&siteId=291194637