标签:
把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
Kali Linux 教程 之 Kali Linux 更新源
标签:
原文地址:http://blog.csdn.net/miss1128726/article/details/51362789