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

[ROM][Official] Kali NetHunter for the Huawei Nexus 6P LOS17.1

Search This thread

RonTheRedHat

New member
Aug 6, 2021
3
1
v21.4 and v22 by that time. Stuck at bootlogo could also be issue if the latest stock hasn't been flashed before flashing anything else
I figured out the problem. I re-flashed the Nethunter following the instruction without flashing bootanimation files and it works. After that, I tested the monitor mode using internal wireless card and working great ( However, I can't change the channel).
 
  • Like
Reactions: UsPdSr

Rj5533

New member
Sep 5, 2021
2
0
Help please on the Kali it says hid status kali dev/hidg0 on the his status. Please help
Screenshot_20210905-113937_NetHunter.png
 

alscal

New member
Oct 8, 2021
2
1
Alright, I'm throwing in the white towel; now I am not an Android Developer in the slightest, while regardless of being knowledgeable in other PC related stuff, I can't understand this for the life of me.

I'm running TWRP 3.3.1-0, running exactly "nethunter-2021.3-angler-los-ten-kalifs-full" - with the already partially patched stuff, an partially patched nexmon/nethunter - what I need help with, is being able to fully use NetHunter via Patching the fw_bcmdhd.bin firmware via Nexmon itself, now supposedly new Nexmon via GitHub you can install newer versions of it, I'm trying to install version 7_112_300_14_sta as I hear installing that can fix the "Phy0 with no interface" issue, I was able to follow most of this Guide, however, when I try to
Code:
'su -c "mount -o rw,remount /system"
For some reason I get " '/system' not in /proc/mounts", I've tried remouting nearly everything, running commands via, mount | grep system, df -h, an "busybox mount -o remount,rw –t <-type> <-path> /system" from another guide, double checking everything is set to rw, I still get Error: "File-System Read Only", It's also not stock firmware, currently NH installed over LineageOS 17.1 for Nexus 6P (angler)

It would be nice if I could have someone help a little so I'm not stuck learning Android Development in the full myself
 
Last edited:

UsPdSr

Senior Member
Alright, I'm throwing in the white towel; now I am not an Android Developer in the slightest, while regardless of being knowledgeable in other PC related stuff, I can't understand this for the life of me.

I'm running TWRP 3.3.1-0, running exactly "nethunter-2021.3-angler-los-ten-kalifs-full" - with the already partially patched stuff, an partially patched nexmon/nethunter - what I need help with, is being able to fully use NetHunter via Patching the fw_bcmdhd.bin firmware via Nexmon itself, now supposedly new Nexmon via GitHub you can install newer versions of it, I'm trying to install version 7_112_300_14_sta as I hear installing that can fix the "Phy0 with no interface" issue..
You dont't have to patch anything.Neither do you have to set up and install the Nexmon framework from source. ;/

If I understand you correctly, did you attempt to install it over Lineage 17.1, which isn't the right proceeding anyway.

If you look over the chart at operating system, you see that a stock rom is required.The latest supported one for the Huawei Nexus 6P is the 8.0.0 (OPR6.170623.019, Sep 2017), btw.

Here you have some instructions (in case you want to start from scratch with said rom and without any prior modifications)



I was able to follow most of this Guide, however, when I try to
Code:
'su -c "mount -o rw,remount /system"
For some reason I get " '/system' not in /proc/mounts", I've tried remouting nearly everything, running commands via, mount | grep system, df -h, an "busybox mount -o remount,rw –t <-type> <-path> /system" from another guide, double checking everything is set to rw, I still get Error: "File-System Read Only", It's also not stock firmware, currently NH installed over LineageOS 17.1 for Nexus 6P (angler)

It would be nice if I could have someone help a little so I'm not stuck learning Android Development in the full myself

The right command would be

su -c 'mount -o rw, remount /

The easiest method is to insert the Nexmon files separately into the respective system folders while you are still in Twrp.

You have to do this before you flash Magisk, if I remember correctly.

If you come across any more issues let @yesimxev or me know. (y)
 
Last edited:

alscal

New member
Oct 8, 2021
2
1
You dont't have to patch anything.Neither do you have to set up and install the Nexmon framework from source. ;/

If I understand you correctly, did you attempt to install it over Lineage 17.1, which isn't the right proceeding anyway.

If you look over the chart at operating system, you see that a stock rom is required.The latest supported one for the Huawei Nexus 6P is the 8.0.0 (OPR6.170623.019, Sep 2017), btw.

Here you have some instructions (in case you want to start from scratch with said rom and without any prior modifications)





The right command would be



The easiest method is to insert the Nexmon files separately into the respective system folders while you are still in Twrp.

You have to do this before you flash Magisk, if I remember correctly.

If you come across any more issues let @yesimxev or me know. (y)
Ah yes, I was trying to run it on LOS17.1, I had flashed it with Stock Rom before, It was originally running 8.1 Oreo, but I had upgraded to Android 10 as while I was looking at the files via Kali NH Android 10 ver, I wanted to upgrade to latest ver which is why I was trying to patch Nexmon, I did hear it was partially unstable, but seeing how there were partial guides on the matter already I thought it would be a simple process of just Copy/Paste/Patch some files. I guess Android 10 isn't ready yet. Thank you though, will make my life a 1000x easier.
 
  • Like
Reactions: UsPdSr

UsPdSr

Senior Member
Ah yes, I was trying to run it on LOS17.1, I had flashed it with Stock Rom before, It was originally running 8.1 Oreo, but I had upgraded to Android 10 as while I was looking at the files via Kali NH Android 10 ver, I wanted to upgrade to latest ver which is why I was trying to patch Nexmon, I did hear it was partially unstable, but seeing how there were partial guides on the matter already I thought it would be a simple process of just Copy/Paste/Patch some files. I guess Android 10 isn't ready yet. Thank you though, will make my life a 1000x easier.

Regardless if you decide to patch the rom by yourself, remember that you have to setup the complete environment for Nexmon after the examples I provided above, but most importantly is the completed setup of the respective Kali Nethunter installation (rom,kernel, rooting, chroot...).
I don't recommend to try it with this rom, because of google's tightened security regulations.Although the 8.1 android factory one is extremely laggy and unstable.

In case the android version isn't that important for you, would I recommend the Nougat releases (7,1-7.1.2), if you want a reliable and stable Nexmon function plus beforehand can you install the offical nougat kernel from the nethunter repository @ gitlab.

I suggest this, because a additional modification of the present setup of the android ten would be very complicated.Especially for a beginner. :)

Many heaps

Annotation

@alscal Perhaps this would be something for you...

 
Last edited:

yesimxev

Senior Member
May 8, 2017
197
78
Alright, I'm throwing in the white towel; now I am not an Android Developer in the slightest, while regardless of being knowledgeable in other PC related stuff, I can't understand this for the life of me.

I'm running TWRP 3.3.1-0, running exactly "nethunter-2021.3-angler-los-ten-kalifs-full" - with the already partially patched stuff, an partially patched nexmon/nethunter - what I need help with, is being able to fully use NetHunter via Patching the fw_bcmdhd.bin firmware via Nexmon itself, now supposedly new Nexmon via GitHub you can install newer versions of it, I'm trying to install version 7_112_300_14_sta as I hear installing that can fix the "Phy0 with no interface" issue, I was able to follow most of this Guide, however, when I try to
Code:
'su -c "mount -o rw,remount /system"
For some reason I get " '/system' not in /proc/mounts", I've tried remouting nearly everything, running commands via, mount | grep system, df -h, an "busybox mount -o remount,rw –t <-type> <-path> /system" from another guide, double checking everything is set to rw, I still get Error: "File-System Read Only", It's also not stock firmware, currently NH installed over LineageOS 17.1 for Nexus 6P (angler)

It would be nice if I could have someone help a little so I'm not stuck learning Android Development in the full myself
This should be done when running in Android, not TWRP
 

Top Liked Posts

  • There are no posts matching your filters.
  • 13
    https:_gitlab.com_kalilinux_nethunter_build-scripts_kali-nethunter-project_raw_master_images_n...png


    I present to you: Kali NetHunter for the Huawei Nexus 6P LOS17.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 ~
    - TWRP - https://drive.google.com/open?id=1axm3GVbTKypUdQAuYubNknJX4wKRFIec
    - Stock components - vendor, radio, & bootloader img's from the stock oreo 8.1 OPM7.181205.001 Dec 2018 factory image - https://androidfilehost.com/?w=files&flid=286833
    - Magisk – https://forum.xda-developers.com/apps/magisk

    ~~ Downloads ~~
    - NetHunter installer: https://www.androidfilehost.com/?fid=8889791610682950294
    - fstab with disabled forceencrpyt - https://www.androidfilehost.com/?fid=4349826312261764572
    - vendor image with patched fw for nexmon - https://www.androidfilehost.com/?fid=8889791610682949885
    - nexmon zip with nexutil and libs - https://www.androidfilehost.com/?fid=8889791610682951480
    - Bootanimation TWRP flasher - https://www.androidfilehost.com/?fid=10763459528675571003

    ~~ How to Install ~~
    - Assuming you have flashed stock radio, vendor, bootloader, TWRP, and Lineage 17.1 (using the steps from https://forum.xda-developers.com/ne...t/rom-lineageos-17-0-nexus-6p-angler-t4012099)
    - Copy Magisk, NetHunter image, bootanimation zip, and fstab to USB-C drive
    - Plug in to PC if you haven't done that yet
    - Reboot into bootloader and flash vendor which was unzipped from zip
    Code:
    fastboot flash vendor vendor.squashfs
    - Reboot into TWRP, insert USB drive.
    - Copy fstab to /system_root/, and format data
    Code:
    adb push fstab.angler /sdcard/
    adb shell "twrp mount /system_root && twrp remountrw /system_root && cp /sdcard/fstab.angler /system_root/"
    - Reboot into recovery & flash Magisk
    - Reboot to system & do Android setup
    - Reboot into TWRP
    - Flash NetHunter image
    - Flash bootanimation zip
    - Reboot

    #apps could not be flashed through TWRP, we have to do manually
    - Download and install NetHunter Store from store.nethunter.com
    - Install NH app, terminal, kex
    - Run NetHunter app
    - Reboot

    ~~~ Notes & Updates ~~~
    Nexmon is finally working in Kali Chroot , although we're open to anything reported because we can't test everything.


    - copy Nexmon libs over to /system/lib64/ from the nexmon.zip (not in TWRP):
    Code:
    adb push libnexmon* /sdcard/ && adb push nexutil /sdcard/
    - and copy using androidsu terminal:
    Code:
    mount -o rw,remount / && cp /sdcard/libnexmonkali.so /system/lib64/kalilibnexmon.so && cp /sdcard/libnexmon.so /system/lib64/ && cp /sdcard/nexutil /system/xbin/ && chmod a+x /system/xbin/nexutil

    For devices which have no space left on system: you need to copy those files before flashing NetHunter. I didn't have this problem, maybe due to GApps pico. Then use the following commands in TWRP:
    Code:
    twrp mount /system_root && twrp remountrw /system_root && cp /sdcard/libnexmonkali.so /system_root/system/lib64/kalilibnexmon.so && cp /sdcard/libnexmon.so /system_root/system/lib64/ && cp /sdcard/nexutil /system_root/system/xbin/ && chmod a+x /system_root/system/xbin/nexutil

    Thanks @JaK3sT for discovering this!

    You have to make sure that wifi is on but you're not connected to an AP.
    Enable in AndroidSU terminal, I created a custom command with
    Code:
    nexutil -m2
    Export LD_PRELOAD for faking ioctl in every Kali Chroot terminal window you open
    Code:
    export LD_PRELOAD=/system/lib64/kalilibnexmon.so

    Hijacker is not fully supported as I've built one with aarch64 tools, but it randomly stops airodump although it's working. Will give it a shot in the future.

    - Mana is being replaced, for the time being you can downgrade iptables in chroot with the following :
    Code:
    wget http://old.kali.org/kali/pool/main/i/iptables/iptables_1.6.2-1.1_arm64.deb
    wget http://old.kali.org/kali/pool/main/i/iptables/libip4tc0_1.6.2-1.1_arm64.deb
    wget http://old.kali.org/kali/pool/main/i/iptables/libip6tc0_1.6.2-1.1_arm64.deb
    wget http://old.kali.org/kali/pool/main/i/iptables/libiptc0_1.6.2-1.1_arm64.deb
    wget http://old.kali.org/kali/pool/main/i/iptables/libxtables12_1.6.2-1.1_arm64.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, huge thanks to Re4son & kimocoder for patching the wlan1 insert reboot issue! Long time mystery.
    Another extremely big thanks for @draco42 for patching libnexmon and kalilibnexmon!

    Android Version: 10.0

    XDA: DevDB Information
    Kali Nethunter, Kernel & ROM for the Huawei Nexus 6P

    Contributors
    @Re4son, @kimocoder, @yesimxev, @draco42

    Source Code: https://gitlab.com/kalilinux/nethunter/
    Kernel Source: https://github.com/Re4son/android_kernel_huawei_angler
    5
    yes brother. but what about LOS ??? i'm facing issues with it.

    Beside the annoying forced encryption and the regarding usage of a compatible FBE recovery build of Twrp, which need endlessly to boot up by the way, couldn't I detect any major or even minor problems with the new release.

    I am not a particular fan of LineageOS, never was, but @Re4son hit it with this kernel definitely one wide over the fence. *gg*

    For future reference -

    Statments like "facing issues'" aren't particular information sources.

    I do normally not respond to such posts at all, but _if_ there are actually problems, you should provide logcats, dmesg or adb outputs.

    Otherwise nobody can help you. ;)

    Many heaps

    edit.

    I wanted to underline the above message.

    I waited a long time and two Nexus 6P for these releases.
    In the meantime did I try to help and supported several user all over the Nethunter related kernel releases on XDA over 3 years [no bragging, just fyi!].

    It would be a shame to see this thread overrun with statments like above, or dumb talk in which degree whatever.

    This phone is an old timer with huge hardware issues and the user who use it, didn't run into Blod/battery or complete meltdown failure yet, or are just Nexus addicts and massive fanbois ^^

    With a reference to post from developer like @yesimxev, @Re4son and @kimocoder, who are undoubtedly pros in various areas (kernel development, wireless technology, network, pen-testing..), with limited resources like time, energy and the graciousness of giving a crap^^(scnr), does it go (hopefully) without saying that every user behaves, provides the very easy to obtain, above mentioned, log reports and don't start with such nonsense, if someone "could hack a(sic!) wifi", "my gf's facebook" or any other of these kind of dumb requests.

    I hope we can try to treasure this amazing work for some time longer..

    With best wishes

    UsPdSr
    2
    Yes looks right, but to be honest i personally haven't used the commands when copying😅. I literally used TWRP's file manager and copied them manually.
    2
    @Re4son @kimocoder
    @yesimxev

    Wow, you guys are on fire.

    Congratulations to this great updates and foremost the long outstanding release for the Angler!
    Which under Oreo flawlessly works now.
    No nasty reboots while attempting to set your nic into monitor mode for sure. :good:

    Kimocoder did an amazing job with the port of the new driver.

    I could basically use every adapter. Especially the ac ones.

    You accidentally mixed up some of the links.

    This is the Angler (Huawei Nexus 6P) sub-forum and you posted a link for the installer to the Shamu (Motorola Nexus 6).

    Also did I try to look over the source and compiled it for myself, but after everything was set up, my kernel and chroot & everything else, the usb adapter plug in/out bug occurred again.

    Re4son worked on flair's source 16days ago.

    Where can I find the one you used in the new release?

    Here is the link to the correct one - >

    https://build.nethunter.com/contrib...er-2020.2-pre3-angler-los-ten-kalifs-full.zip

    For the user who aren't comfortable to use Android ten for other reasons, here the recommended stable release for Android Oreo stock - >

    https://build.nethunter.com/contrib...unter-2020.2-pre3-angler-oreo-kalifs-full.zip

    I had no time the last week(s), but I did see a couple of issues who need to be addressed.

    One of the main problems with the new Oreo kernel neither Nexmon or the new QUALCOMM patch from kimocoder and Co. are working.

    I will come back to this when I have the time..

    Firstly great work to the entire team and big thanks for this great contribution :):cowboy:
    2
    For all those who suffered because of my booboo. To install fstab.angler, do:
    Code:
    adb push fstab.angler /sdcard/
    adb shell "twrp mount /system_root && twrp remountrw /system_root && cp /sdcard/fstab.angler /system_root/"
    Then continue with the step format /data
    I'll revise the instructions soon