在阿里云或腾讯云上并没有直接的kali系统可以安装
- 自制镜像有点麻烦
- centos 装软件各种报错
来开始教程 在阿里云上初始化debian系统kali就是在他的基础上改来的,采用apt-get包管理,兼容性完美
shell连接初始化…
apt-get update apt-get upgrade
搜索软件
apt-cache search vim
如果能搜到的就直接apt安装了
安装msfapt-cache search metasploit
源网站搜索没有找到,因此采用软件安装
https://apt.metasploit.com/
下载这里有各种源,选择适合的安装包
Debian 的情况选择
wget https://apt.metasploit.com/pool/main/m/metasploit-framework/metasploit-framework_6.1.8%2B20210926102543~1rapid7-1_amd64.deb安装其他依赖
metasploit是用ruby语言写的,需要支持ruby,直接使用apt命令安装
安装postgresql数据库,支持metasploit的webservice:
apt-get install ruby apt-get install postgresql postgresql-client
检查数据库是否正常启动:
systemctl status postgresql安装
dpkg -i metasploit-framework_6.1.8+20210926102543~1rapid7-1_amd64.deb测试
apt-get install sqlmap安装Nmap 一键直达
apt-get install nmap安装git上的程序(列如dirsearch) 安装git
apt-get install git安装dirsearch
git clone https://github.com/maurosoria/dirsearch.git使用
cd dirsearch pip3 install -r requirements.txt python3.7 dirsearch.py -u baidu.com效果 总结
kali上所有的软件基本上都能使用以上三种方式安装



