Debian 8 Add Kali Update source and install Metasploit

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.