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

修改软件更新源配置文件:

root@HackerKali:/home/dnt# leafpad /etc/apt/sources.list


将新的Kali源粘贴进去,同时将官方源用#号注释掉。
再:
apt-get update & apt-get upgrade
apt-get dist-upgrade
apt-get clean
sudo apt-get install met asploit-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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值