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

该博客详细介绍了如何在不root的Android设备上使用Termux安装Kali Linux,包括更改Termux软件源、安装必要组件、下载Kali NetHunter以及设置VNC进行远程桌面连接。过程中提供了因网络限制的解决方法,并给出了可能出现的问题及解决方案。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 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.list

sed -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.list

sed -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

评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值