云服务器安装metasploit
2019-05-26 本文已影响0人
CSeroad
前言
越来越觉着有一台公网渗透机是多么好的一件事。咬牙又在搬瓦工上买了一台基于Debian的公网服务器。
安装metasploit
uname -a

添加源
vim /etc/apt/sources.list
deb http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
apt-get update
出现gpg错误
解决办法:
wget -q -O - https://archive.kali.org/archive-key.asc | apt-key add
然后继续
apt-get install metasploit-framework 安装metasploit
update-rc.d postgresql enable postgresql开机自启

msfdb init 连接postgresql数据库

重新启动

metasploit安装成功,也可以安装其他常用的渗透工具,比如nmap、sqlmap等等。