標籤:debian8添加kali源並安裝metasploit kali2.0源 debian8安裝metasploit debian8安裝msf
應朋友需求,他要在vps上面安裝metasploit,因為kali2.0 是基於debian8的,所以我建議他使用debian8。但是他說使用debian8 添加kali源,更新時出現404 Not Found錯誤。於是乎,我就親自嘗試了一下。
先看一下環境
[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
[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,參考這裡
##注意,有的網站的教程,kali-rolling這個位置使用kali或者sana。這個位置表示發行代號。我去官方來源站點點中看了一下,並沒有kali這個代號,而且官方網站已經停止對sana源的支援,推薦使用2016年1月推出的kali-rolling代號,這也應該是我朋友上面的404 錯誤的原因。以後讀到這篇文章的小夥伴,出現404錯誤的話,記得注意一下你的發行代號是否已經沒有或者停止支援了。
後面的部分就和其它網站上的教程如出一轍了
[email protected]:~# apt-get install postgresql[email protected]:~# su - postgres -c "psql" #切換到postgres使用者並登陸資料庫##有的教程中使sudo -u postgres psql也是可以的postgres=# alter user postgres with password ‘postgrespass‘; #修改資料庫密碼為postgrespasspostgres=# \q #退出資料庫
[email protected]:~# apt-get install metasploit-framework
# 這裡會裝一大堆東西,而且會更新libc之類軟體,如果你的系統還裝有其它軟體,請謹慎安裝
[email protected]:~# msconfigmsf > 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##如果出現了這個資訊,意思是說資料庫中沒有模組的緩衝,使用緩慢的搜尋(直接搜尋磁碟)。##出現這個情況有可能是後台重建緩衝未完成,只需稍等片刻再嘗試,也可能是資料庫連接不正常,##導致無法重建/讀取緩衝。
本文出自 “木木的部落格” 部落格,請務必保留此出處http://slyadm.blog.51cto.com/6223864/1853314
Debian8添加kali源並安裝metasploit