Debian8 Add Kali source and install Metasploit

Source: Internet
Author: User
Tags psql

At the request of a friend, he wants to install Metasploit on the VPS,because kali2.0 is based on debian8 , so I recommend him to use debian8 . But he said that using debian8 to add kali source, 404 Not Found error occurred while updating . So I tried it myself.

Look at the environment first

[Email protected]:~# cat/etc/issue.net && uname-adebian gnu/linux 8Linux localhost 3.16.0-4-amd64 #1 SMP Debian 3.16.7-CKT11-1+DEB8U3 (2015-08-04) x86_64 Gnu/linux


    • Add Kali source in/etc/apt/sources.list:

[Email protected]:~# cat >>/etc/apt/sources.list << eof#kali sourcedeb Http://http.kali.org/kali kali-rolling main Non-free contribdeb-src http://http.kali.org/kali kali-rolling main Non-free contribeof[email protected]:~# apt-get Update

# #如果出现GPG Error, refer to here

# # Note that there are tutorials for websites, kali-rolling this location using kali or sana. This position represents the release code. I went to the official source site to see a bit, and did not Kali This code, and the official website has stopped the support of Sana Source, recommended the use of 1 months to launch Kali-rolling code, this should also be my friend above the 404 wrong reason. After reading this article of the small partners, there are 404 errors, remember to note whether your release code has not been or stopped support.


The latter part is the same as the tutorials on other websites.

    • Installing the PostgreSQL database

[Email protected]:~# apt-get Install postgresql[email protected]:~# su-postgres-c "Psql" #切换到postgres用户并登陆   Database # #有的教程中使sudo-u postgres psql is also available postgres=# alter user postgres with password ' postgrespass '; #修改数据库密码为postgrespasspostgres =# \q #退出数据库


    • Installing Metasploit

[Email protected]:~# apt-get Install Metasploit-framework

# There will be a lot of stuff, and it will update the software such as LIBC, if your system is equipped with other software, please install it carefully.


    • Configure Metasploit

[Email protected]:~# msconfigmsf > Db_connect postgres:[email protected]/msfbook #使msf连接到postgresql数据库 [*] Rebuildin G the module cache in the background ... #这句话的意思是在后台重建模块缓存. MSF > Db_status #查看数据库连接状态 [*] PostgreSQL connected to Msfbook #这个时候就可以正常使用msf了. MSF > Search smb[!] The module database cache not built yet, using slow search# #如果出现了这个信息, means that there is no cache of modules in the database, using a slow search (direct search disk). # #出现这个情况有可能是后台重建缓存未完成, just a moment to try again, it may be that the database connection is not normal, # #导致无法重建/Read cache.



This article is from the "Mu mu blog" blog, please make sure to keep this source http://slyadm.blog.51cto.com/6223864/1853314

Debian8 Add Kali 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.