• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

Kali Nethunter for Magisk

Search This thread

MiragedMax

New member
Mar 8, 2021
2
1
Try deleting this folder:
/data/local/nhsystem/kali-armhf/etc/apt/sources.list.d/

If that doesn't work, try opening Kali NH Terminal & running this code:
Code:
apt-key adv --keyserver hkp://keys.gnupg.net --recv-keys EB3E94ADBE1229CF
wget -q -O - https://archive.kali.org/archive-key.asc | apt-key add

If that doesn't work, let me know and I've got one more option you can try. :)

Doesn't work at all in here, mate. it asking to install wget and the other one asking to install gnupg (but still no luck, when installed).
Please do tell another options, Thanks!

Edit: Nevermind, I've got it working.
Download the deb files,
https://http.kali.org/kali/pool/main/k/kali-archive-keyring/
and install it by using this command:
Code:
dpkg -i kali-archive-keyring2020.2.deb
 
Last edited:
  • Like
Reactions: equi_design

MiragedMax

New member
Mar 8, 2021
2
1
Have anyone having a problem with copy pasting, its not working and it's not normal 'cause when in andrax (don't uses it, there's a lot of encrypted files inside and that's the reason i migrate to nethunter) and termux: its working very well when copy pasting.

I hope someone can help me with this :)
 

fil3s

Senior Member
Aug 30, 2014
1,308
184
42
bendigo
www.mobiledevices.cc
Did you install the chroot through the Nethunter app? If so, now you just need to install the KeX Manager app from Nethunter Store. Let me know if that works for you.

No 😑

Could you give me a direct link to kex manager? Can't seem to find it in the kex store
 

Attachments

  • Screenshot_20210727-113356_NetHunter_Store.png
    Screenshot_20210727-113356_NetHunter_Store.png
    333.5 KB · Views: 11
  • Screenshot_20210727-113546_NetHunter.png
    Screenshot_20210727-113546_NetHunter.png
    467.4 KB · Views: 11

equi_design

Senior Member
Sep 20, 2009
211
194
FL
Google Nexus 4
HTC Sensation
This is actually really hard to figure out.
Couple things.
1. First, you need to update Kali. That's step 1. Looks like you're running a build from 2019.

2, Once that's done, reboot & let Kali restart.

3. Update your xstart by opening NH Terminal & using these commands.
Code:
sudo wget -O /root/.vnc/xstartup https://gitlab.com/kalilinux/packages/kali-win-kex/-/raw/kali/master/usr/lib/win-kex/xstartup
chmod a+x /root/.vnc/xstartup

4. Open NH app & go down to the KeX Manager in the left nav pane. Tap Setup Local Server. You'll need to set a password here. It'll auto-open NH Terminal to do this.

5. Once you're back in the NH app, KeX Manager, make sure root is selected for the user, & Localhost only (unless your SSHing via a computer). Select Start Server.

6. Select Open KeX Client.
Should pop up the new window with you Kali desktop GUI.
 
  • Like
Reactions: fil3s

fil3s

Senior Member
Aug 30, 2014
1,308
184
42
bendigo
www.mobiledevices.cc
Couple things.
1. First, you need to update Kali. That's step 1. Looks like you're running a build from 2019.

2, Once that's done, reboot & let Kali restart.

3. Update your xstart by opening NH Terminal & using these commands.
Code:
sudo wget -O /root/.vnc/xstartup https://gitlab.com/kalilinux/packages/kali-win-kex/-/raw/kali/master/usr/lib/win-kex/xstartup
chmod a+x /root/.vnc/xstartup

4. Open NH app & go down to the KeX Manager in the left nav pane. Tap Setup Local Server. You'll need to set a password here. It'll auto-open NH Terminal to do this.

5. Once you're back in the NH app, KeX Manager, make sure root is selected for the user, & Localhost only (unless your SSHing via a computer). Select Start Server.

6. Select Open KeX Client.
Should pop up the new window with you Kali desktop GUI.

Thanks 🙏
 
  • Like
Reactions: equi_design

fil3s

Senior Member
Aug 30, 2014
1,308
184
42
bendigo
www.mobiledevices.cc
Can you check you KeX Manager client settings for me?
I had this error this AM as well. Also, please make sure you did the xstart update. (Sorry for repeating myself, I just want to be sure & make this less frustrating for you!)
Im attaching a screenshot of my Kex client settings.View attachment 5371825

Sure. Thanks for helping!

I ran the commands and installed the latest Kali app from the store. 😟

Edit.
 

Attachments

  • Screenshot_20210728-004450_NetHunter_KeX.png
    Screenshot_20210728-004450_NetHunter_KeX.png
    267.5 KB · Views: 11
  • Screenshot_20210728-005259_NetHunter.png
    Screenshot_20210728-005259_NetHunter.png
    443.7 KB · Views: 9
Last edited:

fil3s

Senior Member
Aug 30, 2014
1,308
184
42
bendigo
www.mobiledevices.cc
Definitely remove the :1 part of the localhost in KeX. Then try pushing the Start Server in the NH app, then push Open KeX Client.

It doesn't remove the error. It's ok.. the NH app doesn't like Google Play protect. I have a niggling \ dubious feeling about that.

Thanks for the help .
 

Attachments

  • Screenshot_20210729-232247_NetHunter_KeX.png
    Screenshot_20210729-232247_NetHunter_KeX.png
    199.4 KB · Views: 8

equi_design

Senior Member
Sep 20, 2009
211
194
FL
Google Nexus 4
HTC Sensation
It doesn't remove the error. It's ok.. the NH app doesn't like Google Play protect. I have a niggling \ dubious feeling about that.

Thanks for the help .
I promise the NH app is safe. It's just because it has exploits that can use USB & Keyboard attack vectors which Play Protect doesn't like. I keep PP turned off always anyhow for privacy reasons.
As for your error... That one I can't figure out. I'll be thinking on it though.
Did you do apt-get update and apt-get upgrade and apt-get dist-upgrade?
 

fil3s

Senior Member
Aug 30, 2014
1,308
184
42
bendigo
www.mobiledevices.cc
I promise the NH app is safe. It's just because it has exploits that can use USB & Keyboard attack vectors which Play Protect doesn't like. I keep PP turned off always anyhow for privacy reasons.
As for your error... That one I can't figure out. I'll be thinking on it though.
Did you do apt-get update and apt-get upgrade and apt-get dist-upgrade?

Thanks. No I didn't.. 😯
 
  • Like
Reactions: equi_design

Top Liked Posts

  • There are no posts matching your filters.
  • 58
    Overview
    This module allows you to install the Kali Nethunter chroot on any device with Magisk. This means you get a full Kali chroot environment, but still avoid touching the /system partition and therefore have the advantage of passing SafetyNet (hopefully) etc.
    For further information about Kali Nethunter and what's available, check out: https://github.com/offensive-security/kali-nethunter
    nethunter-git-logo.png


    Screenshots:
    Screenshot_20170920-204114.jpg Screenshot_20170920-203818.jpg Screenshot_20170920-203935.png Screenshot_20170920-203800.png Screenshot_20170920-203809.png Screenshot_20170920-212509.jpg

    Installation instructions:
    1. Install attached Magisk Module
    2. Reboot device
    3. Run Nethunter app - allow 7(!) Root-related permissions prompts and wait for initialisation
    4. Click "Kali Chroot Manager"
    5. Click "Install Kali Chroot" - "Download Latest"
    6. Install the full Chroot Kali package (around 800MB)
    7. Wait for Chroot to download/install (this may take a few minutes)
    8. Click "Install & Update" - allow Root permission for Nethunter Terminal app
    9. Enjoy! :)

    Download:
    V15.00.1 https://forum.xda-developers.com/devdb/project/dl/?id=28005

    Not Working:
    Anything which requires the custom kernel/ramdisk will not work out of the box. This includes:
    • Wi-Fi injection (requires custom kernel/ramdisk)
    • HID Interfaces (BadUSB/Duckhunter etc. - also requires custom kernel/ramdisk)

    Uninstall
    To remove this fully:
    1. Load "Kali Chroot Manager" in the Nethunter app and click "Remove Chroot" (Reboot and Remove Chroot)
    2. Uninstall Kali Nethunter Magisk module (Reboot)
    3. Manually uninstall Nethunter, Kali Terminal and Kali VNC apps
    4. Remove any leftover files - /sdcard/nh_files, /sdcard/nh_install_*.log

    Notes
    This is an unofficial build. Credits to all the Offensive Security team and those working on the Nethunter project.
    When first launching VNC Server/Viewer click "Use default config" and then install the Kali menu with "apt install kali-menu" to get the full packages list in the menu.
    This includes the main APKs needed to run, the extra APKs (Hackerskeyboard, Shodan, cSploit etc.) will need to be installed seperately

    Source of this Magisk module: https://github.com/atarii/Magisk_Kali_Nethunter/
    Source of my changes to Nethunter App: https://github.com/atarii/nethunter-app

    XDA:DevDB Information
    Kali Nethunter for Magisk, Tool/Utility for all devices (see above for details)

    Contributors
    Atarii
    Source Code: https://github.com/atarii/Magisk_Kali_Nethunter/blob/master/README.md


    Version Information
    Status: Beta
    Current Beta Version: v15.00.2
    Beta Release Date: 2018-01-07

    Created 2017-09-20
    Last Updated 2018-01-07
    11
    Changelog:

    20-09-2017
    v1.0
    Initial release

    20-09-2017
    v1.1
    Removed a debug line from Nethunter App

    04-11-2017
    v1.2
    Re-based to latest Nethunter App (v2017.10) - changed include fixes for mitmf and UI toggle for HID
    Fixed Searchsploit

    07-01-2018
    v15.00.2
    Re-based to latest Magisk module template (1500) - hence version number format change
    Added latest Nethunter Apps - this fixes SSL pinning issues
    7
    Update:
    Released new version (see first post for download) :good:

    Changes:
    • Re-based to latest Magisk module template (1500) - hence version number format change and the jump from v1.2 -> v15.00.2
    • Added latest Nethunter Apps (Version: 2018.01.01) - this fixes SSL pinning issues

    I undid the APKs installation change that was in development- this caused issues with the updated nhterm.apk application. If there are still issues with APK installation, I'll revisit this
    6
    Nethunter app doesnt install the metapackages or even update because of this error.
    need some help


    Err:2 'https://packages.microsoft.com/repos/microsoft-debian-stretch-prod' stretch InRelease
    The following signatures couldn't be verified because the public key is not available: NO_PUBKEY EB3E94ADBE1229CF
    Reading package lists... Done
    W: GPG error: 'https://packages.microsoft.com/repos/microsoft-debian-stretch-prod' stretch InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY EB3E94ADBE1229CF
    E: The repository 'https://packages.microsoft.com/repos/microsoft-debian-stretch-prod stretch InRelease' is not signed.
    N: Updating from such a repository can't be done securely, and is therefore disabled by default.
    N: See apt-secure(8) manpage for repository creation and user configuration details.

    That's actually going to end up being two errors. I get this for every new NH Kali install, so do yourself a favor & copy the code someplace.
    Another note: this will take a long run time usually.

    First fix the public key issue with this code:

    apt-key adv --keyserver hkp://keys.gnupg.net --recv-keys EB3E94ADBE1229CF
    wget -q -O - https://archive.kali.org/archive-key.asc | apt-key add


    Second you'll need to fix where Kali is pulling the packages & other info from. Copy & paste:

    echo deb http://http.kali.org/kali kali-rolling main contrib non-free > /etc/apt/sources.list apt-get update && apt-get upgrade && apt-get dist-upgrade
    3
    OnePlus 3/3T user Good News!!! ??

    --- MCD-Kernel ---
    * Kali Nethunter features.
    * Packet injection patch
    * OTG External WiFi adapter support ("monitor mode")
    * EAS (Energy Aware Scheduling)
    * Many other necessary features...
    >> Currently Build for OxygenOS 8.0+

    Link: https://forum.xda-developers.com/one...h-mcd-t3838788
    @Atarii
    If possible add this Kernel link for OnePlus 3/3T in 'Supported Kernels' list for Kali Nethunter for Magisk