One, Debian 8 add Kali Update source
Zhong ke kali update Source:
Deb Http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib deb-src Http://mirrors.ustc.edu.cn/kali Kali-rolling Main Non-free Contrib
1. Add the above update source to the "/etc/apt/sources.list" file by vim or Visual text Editor 2, perform the command update installable list
# Apt-key adv--keyserver pgp.mit.edu--recv-keys ed444ff07d8d0bf6 # apt-get Update
At this point, the Kali update source was added successfully
II. Installation of PostgreSQL database
# apt-get Install PostgreSQL # su-postgres-c "Psql" #切换到postgres数据库并登录数据库 postgres=# alter user Postgres WI th password ' ZXCV '; #修改postgres用户的密码为 ' ZXCV ' postgres=# \q #退出数据库
Third, installation Metasploit-framework
# Apt-get Install Metasploit-framework
Wait here for installation to complete
Iv. Configuration Metasploit
# msconfig MSF > Db_connect postgres:[email protected]/msfbook #使msf连接到postgresql数据库 Rebuilding The module cache in the background ... #这句话的意思是在后台重建模块缓存. MSF > Db_status #查看数据库连接状态 PostgreSQL connected to Msfbook #这个时候就可以正常使用msf了. MSF > Search SMB [!] Module Database Cache not built yet, using slow search
# #如果出现了这个信息, meaning that there is no cache of modules in the database, use a slow search (search disk directly). # #出现这个情况有可能是后台重建缓存未完成, just a moment to try again, it may be that the database connection is not normal, # #导致无法重建/Read cache.
Or with an automated installation, perform the following three commands
Curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/ Metasploit-framework-wrappers/msfupdate.erb > Msfinstallchmod 755 msfinstall./msfinstall
Debian 8 Add Kali Update source and install Metasploit