[ROM][Official] Kali NetHunter for the Nokia 6.1 LOS18.1

Search This thread

yesimxev

Senior Member
May 8, 2017
513
174
68747470733a2f2f6769746c61622e636f6d2f6b616c696c696e75782f6e657468756e7465722f6275696c642d736372697074732f6b616c692d6e657468756e7465722d70726f6a6563742f7261772f6d61737465722f696d616765732f6e657468756e7465722d6769742d6c6f676f2e706e67


I present to you: Kali NetHunter for the Nokia 6.1 LOS18.1

Kali NetHunter is an Android ROM overlay that turns an ordinary phone into the ultimate Mobile Penetration Testing Platform.
The overlay includes a custom kernel, a Kali Linux chroot, an accompanying Android application, which allows for easier interaction with various security tools and attacks, as well as a client to the Kali NetHunter App Store.
Beyond the penetration testing tools arsenal within Kali Linux and the Kali NetHunter App Store, NetHunter also supports several additional classes, such as HID Keyboard Attacks, BadUSB attacks, Evil AP MANA attacks, and much more. For more information about the moving parts that make up NetHunter, check out our NetHunter Components page.
NetHunter is an open-source project developed by Offensive Security and the community.


~ Prerequisites ~
- Unlocked bootloader - https://www.techmesto.com/guide-unl...unlock_the_bootloader_on_Nokia_Android_phones
- Lineage 18.1 - https://download.lineageos.org/PL2
- Lineage recovery from above link
- TWRP 3.4.0 unofficial (if you have blank screen issue on LOS recovery) - https://www.androidfilehost.com/?fid=7161016148664802740
- Universal Force Encryption Disabler for Treble - https://www.androidfilehost.com/?fid=8889791610682920239
- Magisk – https://forum.xda-developers.com/apps/magisk
- Gapps - http://downloads.codefi.re/jdcteam/javelinanddart/gapps

~~ Downloads ~~
- NetHunter installer: https://www.androidfilehost.com/?fid=17825722713688281784

~~ How to Install ~~
Assuming you have unlocked bootloader, on official Android 9.
If you have Android 10, you might need to downgrade to 9 with OSTLA, as some users report blank screen issue on LOS or TWRP recovery, the cause is not confirmed yet.
To install LineageOS with encryption disabled, follow these steps:

- Reboot your phone into fastboot (download) mode
- fastboot flash boot lineage_recovery
- fastboot reboot, and hold vol+up + power until you get into LOS recovery
- adb sideload linage zip
- Advanced - reboot to recovery
- Format data
- Flash Gapps, Disabler, Magisk, and reboot into system
- Do initial setup
- Launch Magisk app to install and reboot
- Reboot to recovery
- ADB sideload NetHunter zip
- Reboot into system, start Nethunter app and chroot in it's menu
- Do a final reboot
- To upgrade to full Kali fs, do
Code:
apt-get update && apt-get install kali-linux-nethunter -y
, as this phone only accepts minimal fs for flashing.

~~~ Notes & Updates ~~~
- RNDIS is also working (didn't work on devices with kernel above 4.x), thanks to @Thiviyan
- If your TWRP is steady, you can still have the "OTG adapter not seen" issue. This happens since somehow, in a really misterious way, XHCI is not working if kernel is flashed from TWRP. Hence I say boot with fastboot, even if TWRP works.
- RTL88XXAU driver added, tested with AWUS1900
- Mana is being replaced, for the time being you can downgrade iptables with the following :
Code:
wget http://old.kali.org/kali/pool/main/i/iptables/iptables_1.6.2-1.1_armhf.deb
wget http://old.kali.org/kali/pool/main/i/iptables/libip4tc0_1.6.2-1.1_armhf.deb
wget http://old.kali.org/kali/pool/main/i/iptables/libip6tc0_1.6.2-1.1_armhf.deb
wget http://old.kali.org/kali/pool/main/i/iptables/libiptc0_1.6.2-1.1_armhf.deb
wget http://old.kali.org/kali/pool/main/i/iptables/libxtables12_1.6.2-1.1_armhf.deb

dpkg -i *.deb

apt-mark hold iptables
apt-mark hold libip4tc0
apt-mark hold libip6tc0
apt-mark hold libiptc0
apt-mark hold libxtables12

Credits: The Offensive Security Team and the NetHunter community

Android Version: 11.0

XDA: DevDB Information
Kali Nethunter, Kernel & ROM for the Nokia 6.1

Contributors
@yesimxev
For LineageOS: @theimpulson
For bootloader unlock and general Nokia support: @hikari_calyx
Huge thanks for both as this project would not be possible without them!

Source Code: https://gitlab.com/kalilinux/nethunter/
Kernel Source: https://github.com/yesimxev/android_kernel_nokia_sdm660

Follow me on Twitter!
 
Last edited:

_t0_

New member
Sep 10, 2021
2
1
Installation worked for me. However, I'm not able to open a Kali shell with Nethunter terminal, the window closes just after selecting it. If I select Android Shell, and

su bootkali

It starts to mount, and then it says su: failed to execute /usr/bin/zsh: No such file or directory.


apt-get returns : /system/bin/sh: apt-get: inaccessible or not found


The Kali Chroot Manager is launched and working.

Did I missed something ? Thx
 
  • Like
Reactions: p3t3r13

yesimxev

Senior Member
May 8, 2017
513
174
Can you try again? I updated the zip link, as I first uploaded the wrong one, zsh was missing a long time ago in the fs. It was replaced then so the new zip should do the job
 
Last edited:

DublikuntMax

New member
Nov 2, 2021
2
1
I'm having a problem with the installing. After installing nethunter via TWRP via fastboot. That is, HID and RNDIS does not work for me and OTG stopped working. How to solve this?
 
Last edited:

aeeaan

Member
Jan 29, 2022
6
0
Hi there,
I'm having trouble installing nethunter on my 6.1 and I'm not sure how to troubleshoot. I've followed the instructions above and got a working lineage 18.1 system. Magisk appeared to be installed and working as well (installed in boot and app.) After flashing nethunter, reboot system puts me into fastboot mode. I reboot again and it just hangs at the androidone screen. I can still get back into fastboot mode and "fastboot boot twrp-3.4.0.img" still works as well.

The output of the kali install doesn't show any signs of having an issue. I tried finding /proc/last_kmsg and it doesn't seem to exist. Likewise, /sys/fs/pstore/ seems to be empty.

Is it likely this is from using the lastest versions of lineage and magisk? I'm on magisk 24.1 and lineage-18.1-20220125-nightly-PL2-signed.

Any ideas?
 

yesimxev

Senior Member
May 8, 2017
513
174
I'll try to reflash from stock and let you know how it goes. Most likely Magisk 24.1 (beta?) is the issue. Try a 22.0 or 23.0. I used one of those when made this guide @aeeaan
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    Yaaa🤩🤞little confusion on installation process...
    Let me know what's that so I can clear it up 👍
    1
    Iam already using LineageOS with LineageOS recovery.can I have to flash nethunter via adb sideload method???
    You can even do it if you copy on there, but you have to disable encryption first with format data, and Disabler zip. I have the same method on Xiaomi Mi A3
    1
    Installation worked for me. However, I'm not able to open a Kali shell with Nethunter terminal, the window closes just after selecting it. If I select Android Shell, and

    su bootkali

    It starts to mount, and then it says su: failed to execute /usr/bin/zsh: No such file or directory.


    apt-get returns : /system/bin/sh: apt-get: inaccessible or not found


    The Kali Chroot Manager is launched and working.

    Did I missed something ? Thx
    1
    will bluetooth arsenal ever work?
    1
    getting blank screen in recovery mode after command:
    Bash:
    fastboot flash boot <lineageos_recovery_file>.img


    Also in LineageOS official site, they had updated to version 19.1
    I use twrp.
    fastboot flash recovery twrp.img (ignore the error)
    fastboot boot twrp.imp - then you can install twrp to ramdisk in advanced, and flash things you need