Skip to content

Metasploit 开源安全漏洞检测工具

官网地址

安装

Centos7安装Metasploit

curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > msfinstall

chmod +x msfinstall

./msfinstall
  • 配置Postgresql数据库
# 下载版本10的yum源文件
wget https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7-x86_64/pgdg-centos10-10-2.noarch.rpm

# 安装
rpm -ivh pgdg-centos10-10-2.noarch.rpm
yum install postgresql10.x86_64 postgresql10-devel.x86_64 postgresql10-libs.x86_64 postgresql10-server.x86_64 postgresql10-odbc.x86_64 -y

# 启动数据库
/usr/pgsql-10/bin/postgresql-10-setup initdb
systemctl start postgresql-10.service 
systemctl enable postgresql-10.service 

# 创建数据库
su - postgres
psql

create user msf with password 'msf';
create database msf owner msf;
alter role msf login;

# 修改配置文件,修改完成后重启服务
vim /var/lib/pgsql/10/data/pg_hba.conf
# 将82行ident 修改为 trust

postgresql-1

  • msf连接postgresql
db_connect msf:msf@127.0.0.1:5432/msf

使用