一、kali-linux启动root账户权限,并使用root登录xshell远程工具:
### --- 在普通用户下设置root密码;开启root用户权限
┌──(yanqi㉿kali)-[~]
└─$ sudo passwd root
[sudo] password for yanqi:
New password:
Retype new password:
passwd: password updated successfully
### --- 在非root账户下,输入当前用户的密码即可开启临时root权限
┌──(yanqi㉿kali)-[~]
└─$ sudo -i
[sudo] yanqi 的密码:
┏━(Message from Kali developers)
┃ We have kept /usr/bin/python pointing to Python 2 for backwards
┃ compatibility. Learn how to change this and avoid this message:
┃ ⇒ https://www.kali.org/docs/general-use/python3-transition/
┗━(Run “touch ~/.hushlogin” to hide this message)
┌──(root💀kali)-[~] // 此刻你就可以在root下执行一些操作
└─#
二、kali-linux配置虚拟机静态IP地址:kali-linux不支持内置网卡,仅仅支持USB网卡
### --- 添加静态IP地址(oracle vm virtualBox设置为桥接模式):
┌──(root💀kali)-[~]
└─# vim /etc/network/interfaces
allow-hotplug eth0
auto eth0
iface eth0 inet static
address 192.168.1.96
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameserver 114.114.114.114,8.8.8.8
┌──(root&