應(yīng)朋友需求,他要在vps上面安裝metasploit,因為kali2.0 是基于debian8的,所以我建議他使用debian8。但是他說使用debian8 添加kali源,更新時出現(xiàn)404 Not Found錯誤。于是乎,我就親自嘗試了一下。
成都創(chuàng)新互聯(lián)專注于企業(yè)營銷型網(wǎng)站、網(wǎng)站重做改版、同江網(wǎng)站定制設(shè)計、自適應(yīng)品牌網(wǎng)站建設(shè)、H5場景定制、商城網(wǎng)站建設(shè)、集團公司官網(wǎng)建設(shè)、外貿(mào)網(wǎng)站制作、高端網(wǎng)站制作、響應(yīng)式網(wǎng)頁設(shè)計等建站業(yè)務(wù),價格優(yōu)惠性價比高,為同江等各大城市提供網(wǎng)站開發(fā)制作服務(wù)。
先看一下環(huán)境
root@localhost:~# cat /etc/issue.net && uname -a Debian GNU/Linux 8 Linux localhost 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1+deb8u3 (2015-08-04) x86_64 GNU/Linux
在/etc/apt/sources.list添加kali源:
root@localhost:~# cat >> /etc/apt/sources.list << EOF #Kali Source deb http://http.kali.org/kali kali-rolling main non-free contrib deb-src http://http.kali.org/kali kali-rolling main non-free contrib EOF root@localhost:~# apt-get update
##如果出現(xiàn)GPG error,參考這里
##注意,有的網(wǎng)站的教程,kali-rolling這個位置使用kali或者sana。這個位置表示發(fā)行代號。我去官方源站點中看了一下,并沒有kali這個代號,而且官方網(wǎng)站已經(jīng)停止對sana源的支持,推薦使用2016年1月推出的kali-rolling代號,這也應(yīng)該是我朋友上面的404 錯誤的原因。以后讀到這篇文章的小伙伴,出現(xiàn)404錯誤的話,記得注意一下你的發(fā)行代號是否已經(jīng)沒有或者停止支持了。
后面的部分就和其它網(wǎng)站上的教程如出一轍了
安裝postgresql數(shù)據(jù)庫
root@localhost:~# apt-get install postgresql root@localhost:~# su - postgres -c "psql" #切換到postgres用戶并登陸數(shù)據(jù)庫 ##有的教程中使sudo -u postgres psql也是可以的 postgres=# alter user postgres with password 'postgrespass'; #修改數(shù)據(jù)庫密碼為postgrespass postgres=# \q #退出數(shù)據(jù)庫
安裝metasploit
root@localhost:~# apt-get install metasploit-framework
# 這里會裝一大堆東西,而且會更新libc之類軟件,如果你的系統(tǒng)還裝有其它軟件,請謹慎安裝
配置metasploit
root@localhost:~# msconfig msf > db_connect postgres:postgrespass@127.0.0.1/msfbook #使msf連接到postgresql數(shù)據(jù)庫 [*] Rebuilding the module cache in the background... #這句話的意思是在后臺重建模塊緩存。 msf > db_status #查看數(shù)據(jù)庫連接狀態(tài) [*] postgresql connected to msfbook #這個時候就可以正常使用msf了。 msf > search smb [!] Module database cache not built yet, using slow search ##如果出現(xiàn)了這個信息,意思是說數(shù)據(jù)庫中沒有模塊的緩存,使用緩慢的搜索(直接搜索磁盤)。 ##出現(xiàn)這個情況有可能是后臺重建緩存未完成,只需稍等片刻再嘗試,也可能是數(shù)據(jù)庫連接不正常, ##導(dǎo)致無法重建/讀取緩存。
本文名稱:Debian8添加kali源并安裝metasploit
文章URL:http://www.chinadenli.net/article30/jdjjso.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供搜索引擎優(yōu)化、靜態(tài)網(wǎng)站、云服務(wù)器、ChatGPT、企業(yè)建站、企業(yè)網(wǎng)站制作
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)