用安卓手机搭建一个可用渗透测试环境/安卓手机搭建linux环境

步骤四完成后可用直接执行命令 apt-get install kali-linux-all
1.下载安装userland
用安卓手机搭建一个可用渗透测试环境/安卓手机搭建linux环境_第1张图片
2.打开userland,会加载一段时间,加载完成后点击kali就会开始下载,在下载前需要输入用户名和密码(密码不能使用root),下载过程需要(你懂的)用安卓手机搭建一个可用渗透测试环境/安卓手机搭建linux环境_第2张图片
用安卓手机搭建一个可用渗透测试环境/安卓手机搭建linux环境_第3张图片
3.下载完成后需要一个vnc或者ssh软件连接。建议使用ssh软件连接。我这里使用的是juicessh。
4.下载完成后会跳出手机上的ssh软件让你选择,然后直接输入密码就可以。但是这里不建议这么做,因为密码无法保存。所以建议在juicessh里面进行设置。
用安卓手机搭建一个可用渗透测试环境/安卓手机搭建linux环境_第4张图片
用安卓手机搭建一个可用渗透测试环境/安卓手机搭建linux环境_第5张图片
用安卓手机搭建一个可用渗透测试环境/安卓手机搭建linux环境_第6张图片
5.开启kali,打开kali后你以为就会见到熟悉的界面了吗?这个系统里面其实什么都没有。首先进入系统,切换到root。

ksxh@localhost:~$ su root
root@localhost:/home/ksxh# cd
root@localhost:~# 

6.下载nmap,hydra,git,curl,

root@localhost:~# apt install nmap
root@localhost:~# apt install git
root@localhost:~# apt install curl
root@localhost:~# apt install hydra
root@localhost:~# apt install man

7.安装metasploit(第一种方法我试不行,可用直接上第二种方法)
安装metasploit,这个包比较大,下载需要一段时间

root@localhost:~# git clone https://github.com/rapid7/metasploit-framework.git
root@localhost:~#cd metasploit-framework
root@localhost:~#chmod +x msfconsole

这里执行msfconsole时遇到这个问题

root@localhost:~/metasploit-framework# ./msfconsole 
[*] Bundler failed to load and returned this error:

   'cannot load such file -- bundler/setup'

[*] You may need to uninstall or upgrade bundler

安装ruby环境

root@localhost:~# apt-get install ruby-full

然后运行还是不行,于是我查阅了官方文档,使用了一键安装的方法
地址:https://github.com/rapid7/metasploit-framework/wiki/Nightly-Installers
下面是一条命令,直接复制粘贴执行
curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > msfinstall &&
chmod 755 msfinstall &&
./msfinstall
熟悉的界面

root@localhost:~# msfconsole 
[-] ***rting the Metasploit Framework console...|
[-] * WARNING: No database support: No database YAML file
[-] ***
                                                  
 _                                                    _
/ \    /\         __                         _   __  /_/ __
| |\  / | _____   \ \           ___   _____ | | /  \ _   \ \
| | \/| | | ___\ |- -|   /\    / __\ | -__/ | || | || | |- -|
|_|   | | | _|__  | |_  / -\ __\ \   | |    | | \__/| |  | |_
      |/  |____/  \___\/ /\ \\___/   \/     \__|    |_\  \___\


       =[ metasploit v5.0.22-dev                          ]
+ -- --=[ 1890 exploits - 1064 auxiliary - 329 post       ]
+ -- --=[ 546 payloads - 44 encoders - 10 nops            ]
+ -- --=[ 2 evasion                                       ]

msf5 > 

8.安装sqlmap

root@localhost:~# git clone https://github.com/sqlmapproject/sqlmap.git
root@localhost:~/sqlmap# chmod +x sqlmap.py 
root@localhost:python sqlmap.py
        ___
       __H__
 ___ ___[(]_____ ___ ___  {1.3.5.124#dev}
|_ -| . [,]     | .'| . |
|___|_  [.]_|_|_|__,|  _|
      |_|V...       |_|   http://sqlmap.org

Usage: python sqlmap.py [options]

sqlmap.py: error: missing a mandatory option (-d, -u, -l, -m, -r, -g, -c, -x, --list-tampers, --wizard, --update, --purge or --dependencies). Use -h for basic and -hh for advanced help
root@localhost:~/sqlmap# pwd
/root/sqlmap
root@localhost:~# alias sqlmap="python /root/sqlmap/sqlmap.py"
root@localhost:~# sqlmap
        ___
       __H__
 ___ ___[)]_____ ___ ___  {1.3.5.124#dev}
|_ -| . [)]     | .'| . |
|___|_  [)]_|_|_|__,|  _|
      |_|V...       |_|   http://sqlmap.org

Usage: python sqlmap.py [options]

sqlmap.py: error: missing a mandatory option (-d, -u, -l, -m, -r, -g, -c, -x, --list-tampers, --wizard, --update, --purge or --dependencies). Use -h for basic and -hh for advanced help
root@localhost:~# 

9.后续可以自己添加软件

你可能感兴趣的:(用安卓手机搭建一个可用渗透测试环境/安卓手机搭建linux环境)