最近好多伙伴都转到手机上折腾东西,刚好看到有解决msf安装不上的情况,编辑下了这一篇教程给各位发烧友参考一下~
小知识
简单说说msf能干啥吧,msf可以入侵手机,入侵电脑【狗头保命】
只在电脑上搞个kali系统怎么可能满足我们这些人的乐趣啊,技术无罪,遵守网络相关规则哦
解决方法
好,我们还是开始进入主题吧,首先我们准备一个干净的termux
准备步骤
- 去设置里清除数据
- 给termux读取手机存储权限
- 然后打开小飞机进行科学上网,执行下面的命令
pkg install wget -y
安好wget后我们进行下一步操作
获取sh文件
-我们执行以下命令-
wget https://raw.githubusercontent.com/gushmazuko/metasploit_in_termux/master/metasploit.sh
-得到sh文件后,我们再执行-
chmod +x metasploit.sh
-给它一个可执行权限-
接下来我们输入
./metasploit.sh
-等待安装即可-
这时候我们执行完./metasploit,如果你顺利安装完了就恭喜你,相信绝大多数发烧友和我一样,遇到标题所说的错误,别慌,我们按以下操作来
解决问题
我们输入ls查看一下,已经建立好了如上图所示的一些文件和文件夹
cd metasploit-framework
然后输入
pkg install vim -y
然后安装好vim后输入
vim Gemfile
-如上图所示-
我们把光标移动到http的h上,然后按ghgh,你就会发现可以自由编辑vim文件了,唯一的坏处就是替换了所在光标的数据
话不多说,我们将单引号里的网址改成
https://gems.ruby-china.com
然后按Ctrl+c,然后输入:wq
退出过后我们输入
bundler install
-等待安装即可-
补充
当我们执行完bundler install 过后,可能会出现上图所示,我们只需根据提示输入
bundle update nokogiri
然后等待安装,如上图所示表示安装完成,这时候我们就可以输入
msfconsole
检查有没有报错,没有报错的话,如上图所示,恭喜你,完美安装
Comments | 7 条评论
I like looking through a post that can make men and women think. Also, many thanks for allowing me to comment. Lethia Rowland Steiner
I visited several web sites except the audio quality for audio songs existing at this web site is in fact wonderful. Mechelle Lou Laroy
Hi! I just wish to offer you a big thumbs up for your great info you have right here on this post. I will be coming back to your site for more soon. Cicily Peterus Maurreen
Major thanks for the blog article. Really thank you! Want more. Val Banky Nealey
It is not my first time to pay a quick visit this website, i am visiting this web page dailly and take good information from here every day. Erma Ashby Gunas
Hey there! I know this is sort of off-topic however I needed to ask. Marthena Johnathan Muncey
Great article. I am dealing with some of these issues as well.. Maybelle Grace Odetta