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

Search This thread

Qazianwar222

Senior Member
Jun 2, 2023
66
10
That's fine it will show that as your phone powers the adapter. Anyway, does iwconfig wlan1 doesn't show any devices?
Then show me results of
Code:
lsusb -t
and
Code:
ls -alh /system/etc/firmware
This is what i get when i type these commands
 

Attachments

  • Screenshot_20230608-134555_NetHunter_Terminal.png
    Screenshot_20230608-134555_NetHunter_Terminal.png
    106.4 KB · Views: 18
  • Screenshot_20230608-134856_NetHunter_Terminal.png
    Screenshot_20230608-134856_NetHunter_Terminal.png
    273 KB · Views: 18
  • Screenshot_20230608-134628_NetHunter_Terminal.png
    Screenshot_20230608-134628_NetHunter_Terminal.png
    226.5 KB · Views: 18

Qazianwar222

Senior Member
Jun 2, 2023
66
10
The oputup is same even if i connect a wireless adapter or usb to OTG
And if i unplug the adapter or USB and let the OTG remain their empty
Still I get the same output
 

yesimxev

Senior Member
May 8, 2017
581
191
If i dont connect OTG to my phone then I am having no output
I see the screenshot. No firmwares flashed. Some twrp version fails to do so. You can extract from your zip: copy boot-patcher/system/etc/firmware to /system/etc/

You may need to mount -o rw,remount / before copying

Also show me uname -a
 

Qazianwar222

Senior Member
Jun 2, 2023
66
10
I see the screenshot. No firmwares flashed. Some twrp version fails to do so. You can extract from your zip: copy boot-patcher/system/etc/firmware to /system/etc/

You may need to mount -o rw,remount / before copying

Also show me unam
 

Attachments

  • Screenshot_20230608-195643_NetHunter_Terminal.png
    Screenshot_20230608-195643_NetHunter_Terminal.png
    174.4 KB · Views: 13
  • Like
Reactions: yesimxev

Qazianwar222

Senior Member
Jun 2, 2023
66
10
I am unable to copy paste in root directories
I also tried giving full permisions to the folders i wanted to modify
But I just cant copy paste or modify anything
I also used adb shell but still in vain
Tried many root explorers done everything but no progress
I am using magisk as my root
 

yesimxev

Senior Member
May 8, 2017
581
191
So you got the firmware folder unpacked.
adb push firmware /sdcard/
adb shell
su
mount -o rw,remount /
cp -r /sdcard/firmware /system/etc/
 

Qazianwar222

Senior Member
Jun 2, 2023
66
10
So you got the firmware folder unpacked.
adb push firmware /sdcard/
adb shell
su
mount -o rw,remount /
cp -r /sdcard/firmware /system/etc/
I moved the firmware folder to the directory and reinstalled nethunter but still I am having the otg issue it just charges my phone
 

Attachments

  • Screenshot_20230609-205948_NetHunter_Terminal.png
    Screenshot_20230609-205948_NetHunter_Terminal.png
    163.6 KB · Views: 5

Qazianwar222

Senior Member
Jun 2, 2023
66
10
So you got the firmware folder unpacked.
adb push firmware /sdcard/
adb shell
su
mount -o rw,remount /
cp -r /sdcard/firmware /system/etc/
tried everything the device is rooted with magisk but it does'nt allow me to write or modify the system files and folders to be honest
Can I replace LOS with PE and follow all the steps ? except for the fstab
 

yesimxev

Senior Member
May 8, 2017
581
191
tried everything the device is rooted with magisk but it does'nt allow me to write or modify the system files and folders to be honest
Can I replace LOS with PE and follow all the steps ? except for the fstab
Even fstab is needed i believe. Yes and kernel works with both. What's your error? Also, what adapter? You didn't show dmesg error. PE will have the same issue
 

Qazianwar222

Senior Member
Jun 2, 2023
66
10
My error is that I do all the steps but when I try to use external WiFi adapter it doesn't mount it even I f I plug a USB in the phone using a OTG adapter it doesn't show anything in the file manager
I have checked the OTG adapter on other type C supported phones it works but when I plug i t in nexus 6p I get nothing
Second when after doing everything as the thread speaks I got magisk but why can't I perform root operations
Like modify copy paste system files or files from sdcard to root directory
I did the fstab step and I got stuck on google screen 😅
One last thing In PE when I try to cp nexutil to system_root/system/xbin there is no xbin folder and it can't find the directory
I can't just directly create a folder
 

yesimxev

Senior Member
May 8, 2017
581
191
My error is that I do all the steps but when I try to use external WiFi adapter it doesn't mount it even I f I plug a USB in the phone using a OTG adapter it doesn't show anything in the file manager
I have checked the OTG adapter on other type C supported phones it works but when I plug i t in nexus 6p I get nothing
Second when after doing everything as the thread speaks I got magisk but why can't I perform root operations
Like modify copy paste system files or files from sdcard to root directory
I did the fstab step and I got stuck on google screen 😅
One last thing In PE when I try to cp nexutil to system_root/system/xbin there is no xbin folder and it can't find the directory
I can't just directly create a folder
You need to mount -o rw,remount / or /system (depending on rom) in androidsu. Then you can modify system. No dmesg, I can't see what the phone sees of the adapter. Is it a supported adapter?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    Has done it worked great thanks again for that
    Oh glad to hear 🤧
  • 20
    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 (find the latest release for Nexus 6P): https://www.kali.org/get-kali/#kali-mobile
    - fstab with disabled forceencrpyt - https://www.androidfilehost.com/?fid=4349826312261764572
    - vendor image with patched fw for nexmon - https://www.androidfilehost.com/?fid=8889791610682949885
    MIRROR: https://github.com/yesimxev/nethunter_files/raw/main/angler/vendor.squashfs.zip
    - nexmon zip with nexutil and libs - https://www.androidfilehost.com/?fid=8889791610682951480
    MIRROR: https://github.com/yesimxev/nethunter_files/raw/main/nexmon_draco.zip
    - 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)
    - Plug in to PC if you haven't done that yet
    - Reboot into TWRP
    - Format data
    - Copy Magisk, NetHunter image, and fstab to USB-C drive or adb push to /sdcard
    - Reboot into bootloader and flash vendor which was unzipped from zip
    Code:
    fastboot flash vendor vendor.squashfs
    - Reboot into TWRP
    - Copy fstab to /system_root/
    Code:
    adb push fstab.angler /sdcard/
    adb shell "twrp mount /system_root && twrp remountrw /system_root && cp /sdcard/fstab.angler /system_root/"
    - Format data
    - Reboot to system & do Android setup
    - Reboot into TWRP
    - Install Nexmon files through adb, from the zip above
    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
    - Flash NetHunter image
    - Flash Magisk
    - Reboot
    - Run NetHunter app, update from NH Store
    - Reboot

    ~~~ Notes & Updates ~~~
    Nexmon is finally working with injection in Kali Chroot , although EAPOL data is still not (or malformed) in the captures.

    - 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
    3
    @yesimxev Size of original vendor file posted before has size of 88.7MB but now the new file downloaded size is only 18.5 MB, i think this not the original file and only its name is replaced as vendor.squashfs.zip and one more thing I also try to replaced the file id and name in above link and try to download it with wget, but it throw 403 forbidden.
    Ah yes. Ignore, I'll get it soon
    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
    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.