Android下跑kali疑难问题解决方案 | 少将全栈
  • 欢迎访问少将全栈,学会感恩,乐于付出,珍惜缘份,成就彼此、推荐使用最新版火狐浏览器和Chrome浏览器访问本网站。
  • 吐槽,投稿,删稿,交个朋友
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏少将全栈吧

Android下跑kali疑难问题解决方案

点滴 admin 10年前 (2014-12-08) 2479次浏览 已收录 扫描二维码

说实话现在的智能移动设备是越来越牛逼了。那天你在路上看见一个人猥猥琐琐的的站在路边手指在不断的触控手机并时不时抬头四处张望……八成这人是在等人,剩下两成这人可能正在用手机折腾各大肯德基、星巴克的wifi。

本着人人有责我也要参一脚的想法,在网上看到安卓能跑kali了!这里参考FreeBuf P0tty大大《让你的安卓设备跑起kali??kali for android》的文章做为基础:

也就手残的开始折腾了,无奈折腾来折腾去总是出现这样那样的问题,去网上找相关的解决方法结果看到许多这样的东西

<span class="pln">1、我一次就成功了啊。完全没问题
2、我用metasploit很正常啊(后面一堆问如何解决。然后就没然后了)
3、为什么我运行metasploit的时候报错呢?(没人回复了啊!)</span>

于是乎,在经历各种麻烦的东西后,终于成功了。在此真真切切给各位分享下。

注:收集的问题可能不会全面,解释的也可能不太清楚,不过我想对于广大处于手残脸黑没人品状态的同学们还是有些帮助的吧~

Step 1

首先,我用的设备是

<span class="pun">魅族</span><span class="pln"> MX3 </span><span class="lit">32G</span><span class="pln"> TD</span><span class="pun">移动版</span><span class="pln"> </span><span class="typ">Flyme</span><span class="pln"> OS </span><span class="lit">3.7</span><span class="pun">.</span><span class="lit">3A</span><span class="pun">系统</span>

首先根据大大的文章,我们准备好该准备的东西

当头问题就是“手机能不能装的下这玩意”

手机基本都有外置的SD卡,所以容量是足够的,可是一般的SD卡都是fat格式,创建文件都是无法大于4G的。这个问题就不用担心,因为linux deploy创建镜像文件是类似在电脑上弄虚拟机的动态分配一样的东西,慢慢一点点的弄。所以不用担心。

当然你要是还是担心,格式化你的SD卡成ext4格式吧。

(另外一些像是魅族这样的内置储存的,一般都支持大于4G的文件考入。)

Step 2

接下来是linux deploy的配置问题,我们按照大大来设置不过当中一些需要更改,首先是这两个

Android下跑kali疑难问题解决方案

第一个箭头:原来的源地址实在是太坑了,安装5次起码丢包4次,一丢包就得重新安装(许多人死在这里,没看见丢包就点了start,结果不是ssh没启动就是vnc没启动),所以我们还是用中国源~

http://202.141.160.110/kali/  中科大镜像(稳定,快速,酸爽)

第二个箭头:这个是创建镜像的地方,按照你自己内存卡的位置设定。

Android下跑kali疑难问题解决方案

第一个选择默认是最好的了

第二个是选择组件的,最好是全选了。当然空间不够的也可以不用动。

之后开始,有的同学又遇到问题了

<span class="pun">>>></span><span class="pln"> </span><span class="kwd">begin</span><span class="pun">:</span><span class="pln"> install
checking mount points </span><span class="pun">…</span><span class="kwd">done</span><span class="pln"> checking installation path </span><span class="pun">…</span><span class="kwd">done</span><span class="pln"> making </span><span class="kwd">new</span><span class="pln"> disk image</span><span class="pun">(</span><span class="lit">0mb</span><span class="pun">)</span><span class="pln"> </span><span class="pun">…</span><span class="pln">fail </span><span class="pun"><<<</span><span class="kwd">end</span><span class="pln"> </span><span class="pun">:</span><span class="pln">install</span>

这个问题就是你之前创建了一个镜像了,结果丢包后重新来了一次,就出现了这样的东东。

解决它就是去删了这个镜像,然后重启你的手机,如果还有问题,在根目录建个文件夹,把镜像地址选在里面,也就解决了。

Step 3

千辛万苦终于给装完了。按照大大的说法,是时候安装metasploit来装B了!

不过这里就有些不同了。想当初我也是卡这半天,装metasploit后,启动硬是不断的报错!啥

<span class="typ">set</span><span class="pln"> a breakpoint in malloc_error_break to debug
dyld</span><span class="pun">:</span><span class="pln"> lazy symbol binding failed</span><span class="pun">:</span><span class="pln"> </span><span class="typ">Symbol</span><span class="pln"> not found</span><span class="pun">:</span><span class="pln"> __OSSwapInt32 </span><span class="typ">Referenced</span><span class="pln"> from</span><span class="pun">:</span><span class="pln"> </span><span class="pun">/</span><span class="pln">usr</span><span class="pun">/</span><span class="pln">lib</span><span class="pun">/</span><span class="pln">ruby</span><span class="pun">/</span><span class="lit">1.9</span><span class="pun">.</span><span class="lit">1</span><span class="pun">/</span><span class="pln">arm</span><span class="pun">-</span><span class="pln">darwin9</span><span class="pun">/</span><span class="pln">socket</span><span class="pun">.</span><span class="pln">bundle </span><span class="typ">Expected</span><span class="pln"> in</span><span class="pun">:</span><span class="pln"> flat </span><span class="kwd">namespace</span><span class="pln"> dyld</span><span class="pun">:</span><span class="pln"> </span><span class="typ">Symbol</span><span class="pln"> not found</span><span class="pun">:</span><span class="pln"> __OSSwapInt32 </span><span class="typ">Referenced</span><span class="pln"> from</span><span class="pun">:</span><span class="pln"> </span><span class="pun">/</span><span class="pln">usr</span><span class="pun">/</span><span class="pln">lib</span><span class="pun">/</span><span class="pln">ruby</span><span class="pun">/</span><span class="lit">1.9</span><span class="pun">.</span><span class="lit">1</span><span class="pun">/</span><span class="pln">arm</span><span class="pun">-</span><span class="pln">darwin9</span><span class="pun">/</span><span class="pln">socket</span><span class="pun">.</span><span class="pln">bundle </span><span class="typ">Expected</span><span class="pln"> in</span><span class="pun">:</span><span class="pln"> flat </span><span class="kwd">namespace</span><span class="pln"> </span><span class="typ">Trace</span><span class="pun">/</span><span class="pln">BPT trap</span><span class="pun">:</span><span class="pln"> </span><span class="lit">5</span>

或者是

<span class="pun">[</span><span class="pln">FAIL</span><span class="pun">]</span><span class="pln"> </span><span class="typ">Postgresql</span><span class="pln"> must be started before </span><span class="typ">Metasploit</span><span class="pln"> </span><span class="pun">…</span><span class="pln"> failed</span><span class="pun">!</span><span class="pln"> invoke</span><span class="pun">-</span><span class="pln">rc</span><span class="pun">.</span><span class="pln">d</span><span class="pun">:</span><span class="pln"> initscript metasploit</span><span class="pun">,</span><span class="pln"> action </span><span class="str">"start"</span><span class="pln"> failed</span><span class="pun">.</span><span class="pln"> dpkg</span><span class="pun">:</span><span class="pln"> error processing metasploit </span><span class="pun">(?</span><span class="pln">configure</span><span class="pun">):</span><span class="pln"> subprocess installed post</span><span class="pun">-</span><span class="pln">installation script returned error </span><span class="kwd">exit</span><span class="pln"> status </span><span class="lit">5</span><span class="pln"> </span><span class="typ">Errors</span><span class="pln"> were encountered </span><span class="kwd">while</span><span class="pln"> processing</span><span class="pun">:</span><span class="pln"> metasploit</span>

还有!

<span class="pln">cannot copy extracted data </span><span class="kwd">for</span><span class="pln"> </span><span class="pun">‘./</span><span class="pln">opt</span><span class="pun">/</span><span class="pln">metasploit</span><span class="pun">/</span><span class="pln">apps</span><span class="pun">/</span><span class="pln">pro</span><span class="pun">/</span><span class="pln">ui</span><span class="pun">/</span><span class="pln">vendor</span><span class="pun">/</span><span class="pln">bundle</span><span class="pun">/</span><span class="pln">ruby</span><span class="pun">/</span><span class="lit">1.9</span><span class="pun">.</span><span class="lit">1</span><span class="pun">/</span><span class="pln">gems</span><span class="pun">/</span><span class="pln">nokogiri</span><span class="pun">-</span><span class="lit">1.6</span><span class="pun">.</span><span class="lit">0</span><span class="pun">/</span><span class="pln">ext</span><span class="pun">/</span><span class="pln">nokogiri</span><span class="pun">/</span><span class="typ">Makefile</span><span class="pun">’</span><span class="pln"> to </span><span class="pun">‘/</span><span class="pln">opt</span><span class="pun">/</span><span class="pln">metasploit</span><span class="pun">/</span><span class="pln">apps</span><span class="pun">/</span><span class="pln">pro</span><span class="pun">/</span><span class="pln">ui</span><span class="pun">/</span><span class="pln">vendor</span><span class="pun">/</span><span class="pln">bundle</span><span class="pun">/</span><span class="pln">ruby</span><span class="pun">/</span><span class="lit">1.9</span><span class="pun">.</span><span class="lit">1</span><span class="pun">/</span><span class="pln">gems</span><span class="pun">/</span><span class="pln">nokogiri</span><span class="pun">-</span><span class="lit">1.6</span><span class="pun">.</span><span class="lit">0</span><span class="pun">/</span><span class="pln">ext</span><span class="pun">/</span><span class="pln">nokogiri</span><span class="pun">/</span><span class="typ">Makefile</span><span class="pun">.</span><span class="pln">dpkg</span><span class="pun">-</span><span class="pln">new</span><span class="pun">’:</span><span class="pln"> failed to write </span><span class="pun">(</span><span class="typ">No</span><span class="pln"> space left on device</span><span class="pun">)</span>

等等一系列的问题啊!于是许多人放弃了,可是,有人说过“死猪不怕开水烫”通过长期不断的实践(假的),我找到了问题的关键

<span class="pln">1、你没有登录root账户运行!
2、安装过程出现了问题你却认为没问题!
3、安装的版本不对啊!
4、你没空间了!</span>

所以按照我的步骤来做做看(前面设置也要按照我弄哦,尤其是源!)

<span class="pln">①登录ssh,sudo su来登录root
②apt-get update更新源
③apt-get metasploit安装神器</span>

轻松三步,让你拥有可爱的metasploit

之后我们在ssh上用root账户运行msfconsole

你会发现问题解决了有木有~

当然第一次运行时候数据库没有创建cache,于是搜索东西很慢

运行这个命令

<span class="pln">msf</span><span class="pun">></span><span class="pln">db_build_cache</span>

等待很久后就可以快速的搜索了(之后每次更新metasploit后都要这样。。)

第二次开启kali

首先要运行postgresql

<span class="pln">root@localhost</span><span class="pun">:</span><span class="pln">home</span><span class="pun">/</span><span class="pln">android</span><span class="com"># service postgresql start</span>

之后再运行metasploit

最后贴个图,证明metasploit还是跑的了的啊!

Android下跑kali疑难问题解决方案

[本文由喵呜君原创并投稿,转载请注明来自FreeBuf.COM]


http://www.freebuf.com/articles/terminal/47817.html

喜欢 (0)
[🍬谢谢你请我吃糖果🍬🍬~]
分享 (0)
关于作者:
少将,关注Web全栈开发、项目管理,持续不断的学习、努力成为一个更棒的开发,做最好的自己,让世界因你不同。