记录黑客技术中优秀的内容, 传播黑客文化,分享黑客技术精华

xubuntu Kali Linux sources.list install metasploit

2013-11-08 18:35
Xubuntu 利用kali的软件源安装Metasploit
 
为了更好的学习linux,我就硬盘安装了xubuntu,为什么是xubuntu呢,我觉得这个系统即好看又省资源,如下图

 
如图所示,一共3.8G的可用内存(本机4G内存),系统一共就使用 了438M,剩余3.3G,大片空间空闲啊,用起来很流畅,而且又好看
 
所以装好以后想装上我酷爱的神器Metasploit,图方便可以去官网下载.run文件然后下一步下一步就装好了,但是这样不注册是不能升级的,所以想起我以前把backtrack里的工具全安装到ubuntu12.04的方法,把kali的软件源写进了xubunt的软件源
 
第一步
 
akang@malayke:~$ sudo mousepad /etc/apt/sources.list   #打开源文件 
 
然后在文件末尾添加kali 的软件源
 
deb http://http.kali.org/kali kali main non-free contrib  
 
deb http://security.kali.org/kali-security kali/updates main contrib non-free 
 
保存退出,然后
 
sudo apt-get install #更新一下软件列表 
 
然后
 
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成功安装上并且已经连上数据库
正在写完此博文准备发布的时候xchat来消息,一个老外给我说了好多,我一下子全都没看懂,但是真心感动了,素不相识,却跟我说这么多,这是国人所不具有的品质,先说谢谢然后 google translate

<Malayke> someone know how to add kali tools on xubuntu 13.10
<Malayke> or ubuntu 13.10
<g0tmi1k_> Malayke: that isn’t supproted
<g0tmi1k_> Mixing repos isn’t a wise idea
<Malayke> thank u all the same
* historypeats (~historype@unaffiliated/historypeats) 进入了 #kali-linux
* Draecos_ (~Draecos@58-7-65-56.dyn.iinet.net.au) 进入了 #kali-linux
<steev> Malayke: maybe you could look into blackbuntu or whatever that one is called
<Malayke> I want to install metasploit on xubuntu 13.10
<steev> you can do that without the kali repos
<steev> but, that would be a question that #metasploit would cover
* historypeats (~historype@unaffiliated/historypeats) 离开了 #kali-linux
<Malayke> thx, I digging that
* r3k0hu (~r3k0hu@180.180.127.114) 进入了 #kali-linux
* GHOSTnew (~GHOSTnew@gateway/tor-sasl/ghostnew) 进入了 #kali-linux
<Malayke> I find this tips https://top-hat-sec.com/forum/index.php?topic=2799.0
<Malayke> It’s say can do it
* Draecos 已退出(Ping timeout: 246 seconds)
<d0rm0us3> Then get them to support you ;)
* #kali-linux :You’re not a channel operator
<discovered> Malayke, Manually download and install forever :)
* Burgundy (~burgundy@188.25.139.10) 进入了 #kali-linux
<discovered> What is problem with Kali?
<Malayke> yes. goto msf website and download .run package to install
<Malayke> I do not want to use this method
<Malayke> I want use apt-get install msf on xubuntu13.10
<d0rm0us3> Can only do ‘apt-get install’ if msf exists in repos
<d0rm0us3> and don’t think msf exists in xubuntu repos
<crane> Malayke, you should ask your questions in the ubuntu channel… here is support for kali ;)
* r3k0hu 已退出(Ping timeout: 272 seconds)
<Malayke> I add the kali Kali Linux sources.list Repositories on xubuntu
<Malayke> #crane thx
<g0tmi1k_> Malayke: You can do it, but you’ll not get any support from us
<g0tmi1k_> Something will break at some stage :)
* hs366 (~hs366@94.254.45.76) 进入了 #kali-linux
<g0tmi1k_> http://docs.kali.org/general-use/kali-linux-sources-list-repositories
<Malayke> thx
* Infolookup (~swilliams@38.125.121.210) 离开了 #kali-linux
* P0bailey 已退出(Remote host closed the connection)
* r3k0hu (~r3k0hu@180.180.127.114) 进入了 #kali-linux
* r3k0hu 已退出(Ping timeout: 265 seconds)
* Draecos_ 已退出(Quit: Leaving)
* s7pn 已退出(Quit: Verlassend)
* jthunder (~jthunder@174.3.126.51) 进入了 #kali-linux
* OmegaVII (~OmegaVII@gateway/tor-sasl/omegavii) 进入了 #kali-linux
* MisterE 已退出(Quit: The US Constitution isn’t perfect, but it’s better than what we have now.)
* Lak7 (~chatzilla@173.9.205.89) 进入了 #kali-linux
<Lak7> I see I am a little late for Cuda support LOL
* Lak7 已退出(Quit: ChatZilla 0.9.90.1 [Firefox 24.0/20130910160258])
* vipsoft (~anthonp@98.158.138.177) 进入了 #kali-linux
<eb0t> MALAYKE…mixing repos can totally devastate your build….firstly the additional software starts to install or try rather to directories that dont exist..
<eb0t> then secondly the package manager of the existing system has problems picking up the new stuff you added
<eb0t> so dependency proplems arise and incompatibility stuff
<eb0t> and you may already have more recent packages installed on your pc…that the new packages do not work with
<eb0t> and when it all goes pear shaped…..nobody can help you…and you try and undo what you have done and its not entirely clear
<eb0t> and end up ahving to do a new install of everything
<eb0t> and learn you lesson like i did
<eb0t> but do it …its a great lesson to learn
<eb0t> and learn it the hard way is best.
* d0rm0us3 chortles
* eviljarred 已退出(Ping timeout: 245 seconds)
<Malayke> thank u very much, I will try it soon!
* upp (~upp@193.158.3.226) 进入了 #kali-linux

 

 
知识来源: www.2cto.com/Article/201311/256183.html

阅读:102693 | 评论:0 | 标签:无

想收藏或者和大家分享这篇好文章→复制链接地址

“xubuntu Kali Linux sources.list install metasploit”共有0条留言

发表评论

姓名:

邮箱:

网址:

验证码:

公告

关注公众号hackdig,学习最新黑客技术

推广

工具

标签云