systemctl enable ssh
systemctl start ssh

vi /etc/ssh/sshd_config
PermitRootLogin yes

systemctl restart ssh


解决vi中不能鼠标右键粘贴的问题:

在~/.vimrc中增加如下一行::

set mouse=v


vi /etc/apt/sources.list

deb https://mirrors.aliyun.com/kali kali-rolling main non-free contrib

#deb http://mirrors.ustc.edu.cn/kali kali-roling main non-free contrib


apt-get update

apt-get upgrade


Metasploit:
/usr/share/metasploit-framework/modules/exploits


database update: apt update; apt install metasploit-framework


#searchsploit -u
command will update the exploit datebase from exploit-db.com