歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux基礎 >> 關於Linux

Kali Linux 教程 之 Kali Linux 更新源

把kali的軟件源寫進了ubunt的軟件源
第一步
(此源為1.0版本,不適用於現在2.0版)阿裡雲Kali源為:
deb http://mirrors.aliyun.com/kali kali main non-free contrib
deb-src http://mirrors.aliyun.com/kali kali main non-free contrib
deb http://mirrors.aliyun.com/kali-security kali/updates main contrib non-free

在2016.1版本kali-linux(也就是kali滾動更新版)更新慢解決辦法:
(此源為2.0版本)中科大kali滾動更新版源(即kali2.0源)
#kali官方源
deb http://http.kali.org/kali kali-rolling main non-free contrib
#中科大的源
deb http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib

修改軟件更新源配置文件:
vim /etc/apt/sources.list

將新的Kali源粘貼進去,同時將官方源用#號注釋掉。
再:
apt-get update & apt-get upgrade
apt-get dist-upgrade
apt-get clean
sudo apt-get install metasploit-framework
這樣就把神器msf成功裝上了,然後我進去發現沒有連上數據庫,連接數據庫要這樣
sudo -s #切換到root用戶
su postgres #切換到postgresql,實際上已經進入了數據庫管理了
然後
createuser msf -P -S -R -D #創建用戶
createdb -O msf msf #創建數據庫
exit
exit
然後在metasploit的安裝目錄:/usr/share/metasploit-framework下新建database.yml文件寫入以下信息
production:
adapter: postgresql
database: msf
username: msf
password:
host: 127.0.0.1
port: 5432
pool: 75
timeout: 5

然後進入msf
msf > db_connect -y /usr/share/metasploit-framework/database.yml #連接數據庫
這樣數據庫就成功連接上了
msf > db_status
[*] postgresql connected to msf
至此,msf成功安裝上並且已經連上數據庫

#官方源

deb http://http.kali.org/kali kali main non-free contrib
deb-src http://http.kali.org/kali kali main non-free contrib
deb http://security.kali.org/kali-security kali/updates main contrib non-free

#中科大kali源

deb http://mirrors.ustc.edu.cn/kali kali main non-free contrib
deb-src http://mirrors.ustc.edu.cn/kali kali main non-free contrib
deb http://mirrors.ustc.edu.cn/kali-security kali/updates main contrib non-free

#新加坡kali源

deb http://mirror.nus.edu.sg/kali/kali/ kali main non-free contrib
deb-src http://mirror.nus.edu.sg/kali/kali/ kali main non-free contrib
deb http://security.kali.org/kali-security kali/updates main contrib non-free
deb http://mirror.nus.edu.sg/kali/kali-security kali/updates main contrib non-free
deb-src http://mirror.nus.edu.sg/kali/kali-security kali/updates main contrib non-free

#debian_wheezy國內源

deb http://ftp.sjtu.edu.cn/debian wheezy main non-free contrib
deb-src http://ftp.sjtu.edu.cn/debian wheezy main non-free contrib
deb http://ftp.sjtu.edu.cn/debian wheezy-proposed-updates main non-free contrib
deb-src http://ftp.sjtu.edu.cn/debian wheezy-proposed-updates main non-free contrib
deb http://ftp.sjtu.edu.cn/debian-security wheezy/updates main non-free contrib
deb-src http://ftp.sjtu.edu.cn/debian-security wheezy/updates main non-free contrib
deb http://mirrors.163.com/debian wheezy main non-free contrib
deb-src http://mirrors.163.com/debian wheezy main non-free contrib
deb http://mirrors.163.com/debian wheezy-proposed-updates main non-free contrib
deb-src http://mirrors.163.com/debian wheezy-proposed-updates main non-free contrib
deb-src http://mirrors.163.com/debian-security wheezy/updates main non-free contrib
deb http://mirrors.163.com/debian-security wheezy/updates main non-free contrib


Copyright © Linux教程網 All Rights Reserved