Debian8添加kali源并安装metasploit
发表于:2024-09-22 作者:千家信息网编辑
千家信息网最后更新 2024年09月22日,应朋友需求,他要在vps上面安装metasploit,因为kali2.0 是基于debian8的,所以我建议他使用debian8。但是他说使用debian8 添加kali源,更新时出现404 Not
千家信息网最后更新 2024年09月22日Debian8添加kali源并安装metasploit
应朋友需求,他要在vps上面安装metasploit,因为kali2.0 是基于debian8的,所以我建议他使用debian8。但是他说使用debian8 添加kali源,更新时出现404 Not Found错误。于是乎,我就亲自尝试了一下。
先看一下环境
root@localhost:~# 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
在/etc/apt/sources.list添加kali源:
root@localhost:~# 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 contribEOFroot@localhost:~# apt-get update
##如果出现GPG error,参考这里
##注意,有的网站的教程,kali-rolling这个位置使用kali或者sana。这个位置表示发行代号。我去官方源站点中看了一下,并没有kali这个代号,而且官方网站已经停止对sana源的支持,推荐使用2016年1月推出的kali-rolling代号,这也应该是我朋友上面的404 错误的原因。以后读到这篇文章的小伙伴,出现404错误的话,记得注意一下你的发行代号是否已经没有或者停止支持了。
后面的部分就和其它网站上的教程如出一辙了
安装postgresql数据库
root@localhost:~# apt-get install postgresqlroot@localhost:~# su - postgres -c "psql" #切换到postgres用户并登陆数据库##有的教程中使sudo -u postgres psql也是可以的postgres=# alter user postgres with password 'postgrespass'; #修改数据库密码为postgrespasspostgres=# \q #退出数据库
安装metasploit
root@localhost:~# apt-get install metasploit-framework
# 这里会装一大堆东西,而且会更新libc之类软件,如果你的系统还装有其它软件,请谨慎安装
配置metasploit
root@localhost:~# msconfigmsf > db_connect postgres:postgrespass@127.0.0.1/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##如果出现了这个信息,意思是说数据库中没有模块的缓存,使用缓慢的搜索(直接搜索磁盘)。##出现这个情况有可能是后台重建缓存未完成,只需稍等片刻再尝试,也可能是数据库连接不正常,##导致无法重建/读取缓存。
数据
数据库
代号
缓存
教程
网站
错误
位置
后台
官方
意思
朋友
模块
软件
发行
尝试
搜索
支持
更新
中看
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
日照分析 日照软件开发
php获取服务器的ip
数据库服务器oracal
安康网络安全周活动
神知识服务器
木瓜互联网科技小制作教程
lista是什么数据库
服务器 opc
梦幻西游服务器转入山东虚拟主机
软件开发中专是什么专业
网络安全手抄报 第一名
大厂软件开发岗笔试选择题
决战金星服务器的老玩家
数据库软件 简单
服务器10核512g
肇庆酒店软件开发外包
数字货币交易软件开发
民航局网络安全规定
wamp打开数据库
赴日软件开发注意点
新起床战争服务器
软件开发规模估算成本
东莞支付软件开发哪家好
玉溪新华互联网科技怎样
开发区软件开发公司价格
票房数据库技术技巧
圆点网络技术
安阳网络安全培训工作
学生 优惠服务器
云服务器找不到控制面板