安卓手机通过termux免root安装kali

 1、安装termux

上githubReleases · termux/termux-app · GitHub下载

下载链接

https://github.com/termux/termux-app/releases/download/v0.118.0/termux-app_v0.118.0+github-debug_arm64-v8a.apkhttps://github.com/termux/termux-app/releases/download/v0.118.0/termux-app_v0.118.0+github-debug_arm64-v8a.apk2、termux更改源 并更新

sed -i 's@^\(deb.*stable main\)$@#\1\ndeb https://mirrors.tuna.tsinghua.edu.cn/termux/termux-packages-24 stable main@' $PREFIX/etc/apt/sources.listsed -i 's@^\(deb.*games stable\)$@#\1\ndeb https://mirrors.tuna.tsinghua.edu.cn/termux/game-packages-24 games stable@' $PREFIX/etc/apt/sources.list.d/game.listsed -i 's@^\(deb.*science stable\)$@#\1\ndeb https://mirrors.tuna.tsinghua.edu.cn/termux/science-packages-24 science stable@' $PREFIX/etc/apt/sources.list.d/science.list

pkg update

pkg upgrade

3、安装必须组件

授权 termux-setup-storage

pkg install wget python python2 git curl openssl-tool proot -y

 开启免root  termux-chroot

4、下载并安装kali nethunter

方法一:git clone https://github.com/Hax4us/Nethunter-In-Termux

              cd Nethunter-In-Termux

              chmod +x kalinethunter

              ./kalinethunter 或者bash kalinethunter

正常流程是启动脚本后下载kali->解压->下载sh安装

一般第一第二流程没有问题,下载sh时可能因为墙导致无法下载运行

方法二:wget -O install-nethunter-termux https://offs.ec/2MceZWr

            chmod +x install-nethunter-termux

             ./install-nethunter-termux

这种方法也是因为墙的原因导致第一步无法下载sh脚本

解决方法:电脑端搭梯子 浏览器下载链接https://offs.ec/2MceZWr

并重命名为nethunter或nethunter.sh

连接手机将脚背拷到手机download目录

进入termux 运行命令 cp storage/shared/download/nethunter  ~/

然后 chmod +x nethunter

        ./nethunter

可能出现的问题:下载镜像后手机没有存储权限导致下载后无法解压并安装

(中兴的MyOS会遇到这种情况)

解决方法:直接电脑端下载https://images.kali.org/nethunter/kalifs-arm64-full.tar.xzhttps://images.kali.org/nethunter/kalifs-arm64-full.tar.xz

 拷到手机download目录 termux运行命令 cp storage/shared/download/kalifs-arm64-full.tar.xz ~/

然后运行命令解压 tar-xJf  kalifs-arm64-full.tar.xz

然后运行脚本 ./nethunter

安装完成后运行命令 startkali或者 nh 进入kali 后面加 -r 是以root权限进入

5、更新kali并开启vnc

root权限进去kali startkali -r

运行命令 apt update && apt upgrade && apt dist-upgrade

中间报错 运行 apt –fix-broken install

安装图形界面apt-get install xorg desktop-base xfce4 xfce4-places-plugin xfce4-goodies

启动vnc vncserver

设定密码

手机安装vnc 启动vnc后新建连接 kali 非root用户 是localhost:5902 root用户 localhost:5901

 参考链接:

NetHunter Rootless | Kali Linux DocumentationNetHunter Rootless Edition Maximum flexibility with no commitment Install Kali NetHunter on any stock, unrooted Android device without voiding the warranty.Prerequisite: Android Device (Stock unmodified device, no root or custom recovery required)Installation: Install the NetHunter-Store app from store.nethunter.com From the NetHunter Store, install Termux, NetHunter-KeX client, and Hacker’s keyboard Note: The button “install” may not change to “installed” in the store client after installation – just ignore it.https://www.kali.org/docs/nethunter/nethunter-rootless/

 Nethunter-In-Termux/README.md at master · Hax4us/Nethunter-In-Termux · GitHubThis is a script by which you can install Kali nethunter (Kali Linux) in your termux application without rooted phone – Nethunter-In-Termux/README.md at master · Hax4us/Nethunter-In-Termuxhttps://github.com/Hax4us/Nethunter-In-Termux/blob/master/README.md

Termux折腾简记 – 简书下载 首先不推荐从google play store或者酷安下载了,因为官方已经放弃在play store上更新了 由于android 10 的问题[https://gith…https://www.jianshu.com/p/efa0c875e53d 手机免root安装kali,Ubuntu等系统无脑教程,可vnc桌面连接 – N0ts-blog前言 我自己的手机是OPPO r11t,…https://blog.n0ts.cn/682.html

Published by

风君子

独自遨游何稽首 揭天掀地慰生平

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注