Kali Nethunter for Magisk

Search This thread

Atarii

Senior Member
May 10, 2011
734
655
I got it to work!

This is what I did:
1. Re-downloaded the Magisk-nethunter module zip
2. Flashed it in TWRP
3. De-compressed the Magisk-nethunter module zip and manually installed the APKs
4. Opened Net Hunter app
5. Went to Chroot manager, selected download and selected full Chroot
6. PROFIT
Ok great, you got there in the end. So follow OP instructions, but you needed to manually install the APKs. That helps - it may mean the "pm install APK" command is not supported on your Android version. Did you have "Install apps from unknown sources enabled?". Can you try running "pm install nethunter_magisk.apk" in the same folder as the APK (it's ok to install over existing)

What is the true benefit of chroot?
The benefits mentioned plus for this Nethunter module it allows you to use Kali tools natively. For example, you can set Android proxy to 127.0.0.1 and use Burp Proxy in Kali to view/modify Android traffic. Or use msfconsole to launch metasploit activities from your phone
 
D

Deleted member 8298852

Guest
Ok great, you got there in the end. So follow OP instructions, but you needed to manually install the APKs. That helps - it may mean the "pm install APK" command is not supported on your Android version. Did you have "Install apps from unknown sources enabled?". Can you try running "pm install nethunter_magisk.apk" in the same folder as the APK (it's ok to install over existing)


The benefits mentioned plus for this Nethunter module it allows you to use Kali tools natively. For example, you can set Android proxy to 127.0.0.1 and use Burp Proxy in Kali to view/modify Android traffic. Or use msfconsole to launch metasploit activities from your phone

Unknown sources were enabled, where would I run on install from?
 
  • Like
Reactions: oficial0712
D

Deleted member 8298852

Guest
Magisk_Kali_Nethunter_v1_1.zip is a zip file.
nethunter_magisk.apk inside that zip file (in the files directory) is an APK file.
Just found it, it's in -------.zip/files/

---------- Post added at 12:14 PM ---------- Previous post was at 12:13 PM ----------

Copy nethunter_magisk.apk to /sdcard/Downloads
Open a Terminal on your phone (or adb)
cd /sdcard/Downloads
pm install nethunter_magisk.apk

Then let me know the output :)
Says:
Failure [INSTALL_FAILED_ALREADY_EXISTS: Attempt to re-install com.offsec.nethunter without first uninstalling.]
 

Atarii

Senior Member
May 10, 2011
734
655
Just found it, it's in -------.zip/files/

---------- Post added at 12:14 PM ---------- Previous post was at 12:13 PM ----------


Says:
Failure [INSTALL_FAILED_ALREADY_EXISTS: Attempt to re-install com.offsec.nethunter without first uninstalling.]

Yes, uninstall the one you have already (only uninstall the Nethunter app), then try again please
 

Atarii

Senior Member
May 10, 2011
734
655
D

Deleted member 8298852

Guest
Hmm this indicates that it should have just worked fine in the first place.
Can you try to install the zip here https://xdaforums.com/attachment.php?attachmentid=4278303&d=1505940986 directly from Magisk Manager (don't need to uninstall anything first). If it fails send a screenshot of the black output log please.
If we get to the bottom of this, I'll add you as a tester for the project
It appears to have worked. I can't upload a screenshot for some reason, here's a link to it: https://drive.google.com/file/d/0B-enFSHL_BYycEJKajNjZ1VhdVk/view?usp=drivesdk
 

Atarii

Senior Member
May 10, 2011
734
655
It appears to have worked. I can't upload a screenshot for some reason, here's a link to it: https://drive.google.com/file/d/0B-enFSHL_BYycEJKajNjZ1VhdVk/view?usp=drivesdk

Congrats - you now have the proper Magisk module working :) I guess the other things you installed changed the system somehow, but glad we got to the bottom of it. Can you change the instructions you've posted on here and github to say to just follow the instructions here https://xdaforums.com/showthread.php?t=3676681 please?
You should have the Nethunter build version of Busybox working for it now too.
I'll add you as a tester for future builds :good:
 
D

Deleted member 8298852

Guest
Hmm this indicates that it should have just worked fine in the first place.
Can you try to install the zip here https://xdaforums.com/attachment.php?attachmentid=4278303&d=1505940986 directly from Magisk Manager (don't need to uninstall anything first). If it fails send a screenshot of the black output log please.
If we get to the bottom of this, I'll add you as a tester for the project

I'm not sure if this is related to the Magisk module, but when I try to make a backup in TWRP with data, system, and boot, it has an error with createTarFork() shortly after it gets to backing up data. It also says 'read only filesystem' when I try to open Terminal from Advanced and run 'cd /data/media/0/TWRP/BACKUPS/bad7d639 && rm -rf backup-name'. What can I do to fix this and why is this happening?
 

Atarii

Senior Member
May 10, 2011
734
655
I'm not sure if this is related to the Magisk module, but when I try to make a backup in TWRP with data, system, and boot, it has an error with createTarFork() shortly after it gets to backing up data. It also says 'read only filesystem' when I try to open Terminal from Advanced and run 'cd /data/media/0/TWRP/BACKUPS/bad7d639 && rm -rf backup-name'. What can I do to fix this and why is this happening?

Nothing related to the Magisk module buddy.
 

Atarii

Senior Member
May 10, 2011
734
655
Download full nethunter zip and delete SuperSU and all nethunter apps and fix it.

Στάλθηκε από το MHA-L29 μου χρησιμοποιώντας Tapatalk

Umm what? This is a Magisk thread. You can just install this module in the first post via Magisk Manager as it's much easier and cleaner
 
Last edited:

Atarii

Senior Member
May 10, 2011
734
655
Yes,delete SuperSU from nethunter zip and all nethunter apps. Flash it and all works fine :)

Στάλθηκε από το MHA-L29 μου χρησιμοποιώντας Tapatalk

This is a thread about a module I've created to install Nethunter via Magisk so that it doesn't touch /system. This module means that the Nethunter install is fully reversible
 

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://xdaforums.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://xdaforums.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