OpenVAS (GVM) 应用
目录:
1、使用安装时所设置的用户登录系统.
![](https://rsrc.ink/wp-content/uploads/2024/07/kali-config-login-with-user.png)
…………………………………………………….
2、设置root用户密码.
sudo passwd root
两次输入root 密码
![](https://rsrc.ink/wp-content/uploads/2024/07/kali-config-set-root-password.png)
…………………………………
…………………………………………………….
3、安装vim工具.
sudo apt install vim
出现确认提示时,输入 “y” 进行安装
![](https://rsrc.ink/wp-content/uploads/2024/07/kali-config-install-vim.png)
…………………………………………………….
4、安装网络工具.
sudo apt install net-tools
![](https://rsrc.ink/wp-content/uploads/2024/07/kali-config-install-net-tools.png)
…………………………………………………….
安装完成后,可查看网卡IP地址.
ifconfig
![](https://rsrc.ink/wp-content/uploads/2024/07/kali-config-check-ip-addr-ifconfig.png)
………………………………………………….
5、编辑ssh配置文件,使root用户可使用密码ssh.
sudo vi /etc/ssh/sshd_config
![](https://rsrc.ink/wp-content/uploads/2024/07/kali-config-sshd-vi-configA.png)
添加:
PermitRootLogin yes
PasswordAuthentication yes
![](https://rsrc.ink/wp-content/uploads/2024/07/kali-config-sshd-config.png)
…………………………………………………….
6、启用ssh服务.
sudo systemctl start ssh
…………………………………………………….
7、配置SSH服务开机启动.
sudo systemctl enable ssh
![](https://rsrc.ink/wp-content/uploads/2024/07/kali-config-sshd-enable-when-system-start.png)
…………………………………………………….
8、使用root用户ssh 到Kali,修改网卡动态IP为固定地址.
vi /etc/network/interfaces
![](https://rsrc.ink/wp-content/uploads/2024/07/kali-config-set-if-ip-static.png)
…………………………………………………….
iface eth0 inet static
address 10.0.0.123
netmask 255.255.255.0
gateway 10.0.0.99
![](https://rsrc.ink/wp-content/uploads/2024/07/kali-config-set-if-ip-static-config.png)
…………………………………………………….
9、配置DNS解析配置文件.
vi /etc/resolv.conf
![](https://rsrc.ink/wp-content/uploads/2024/07/kali-config-dns-resolv.config.png)
…………………………………………………….
重启网络服务.
systemctl restart networking
![](https://rsrc.ink/wp-content/uploads/2024/07/kali-config-systemclt-restart-netwroking.png)
…………………………………………………….
10、随后,可使用新地址SSH至kali.
![](https://rsrc.ink/wp-content/uploads/2024/07/kali-config-base-config-finish-test-ssh.png)
…………………………………………………….
![](https://rsrc.ink/wp-content/uploads/2024/07/kali-config-base-config-finish-root-sshd.png)