yashsingh1/xdaforums huggingface dataset:
[Nexus 6P Android Development] v42cine:
Hello, I am new here and start my work with Nethunter. I would like to ask You for help.

I am the owner of Nexus 6P:

- Android 8.1.0 (last update 5 December 2018)

- angler-03.88

- kernel version: 3.10.73-g309d642 (gcc version 4.9.x-google 20140827 (prerelease) (GCC)) android-build@abfarm909 #1 Thu Oct 11 19:39:39 UTC 2018

- build number: OPM7.181205.001

I would like to install Nethunter but I would like to do everything correct, without turning my device into the brick... So I have some question before I make some move. Can You help me with answers?

~ Prerequisites ~

- Android 8.1 - https://developers.google.com/android/images -

I need to download exactly: https://dl.google.com/dl/android/aosp/angler-opm7.181205.001-factory-b75ce068.zip ????

- TWRP - https://twrp.me/ -

which release should I choose from linked website?

- Magisk – https://xdaforums.com/apps/magisk - w

hich version should I choose? Should I choose Magisk v16.3 for Android 8.1.0 from here: https://github.com/topjohnwu/Magisk/releases/download/v16.3/Magisk-v16.3.zip or diferent????

~~ Downloads ~~

- NetHunter: https://www.offensive-security.com/kali-linux-nethunter-download/ -

this one will be correct?: https://images.kali.org/nethunter/nethunter-2020.4-angler-oreo-kalifs-full.zip

~~ How to Install ~~

- Update to / flash latest official Android release -

should I update by checking updates via phone's update button in settings or flash this file

Google Chrome - Download the Fast, Secure Browser from Google

Get more done with the new Google Chrome. A more simple, secure, and faster web browser than ever, with Google’s smarts built-in. Download now.

dl.google.com

android/aosp/angler-opm7.181205.001-factory-b75ce068.zip ???

- Install TWRP

- Copy Magisk and NetHunter image to USB drive

- Reboot into TWRP, insert USB drive.

- flash NetHunter image

- flash Magisk

- Reboot

- Run NetHunter app

- Reboot

~~~ Notes & Updates ~~~

Nexmon is included in the 2020.2 release. -

If I will download and flash this Nethunter image:

https://images.kali.org/nethunter/nethunter-2020.4-angler-oreo-kalifs-full.zip

- will I have some problems with Nexmon? Or should I download exactly 2020.2 release....?

I will be very grateful for any kind of help.
[Nexus 6P Android Development] v42cine:
Hello, after downloading:

- Android 8.1 - https://developers.google.com/android/images -

https://dl.google.com/dl/android/aosp/angler-ota-opm7.181205.001-abb36a2f.zip

- TWRP - https://twrp.me/ - https://twrp.me/huawei/huaweinexus6p.html

- Magisk – https://xdaforums.com/apps/magisk -

https://github.com/topjohnwu/Magisk/releases/download/v20.4/Magisk-v20.4.zip

- NetHunter: https://www.offensive-security.com/kali-linux-nethunter-download/ - https://images.kali.org/nethunter/nethunter-2020.4-angler-oreo-kalifs-full.zip

and:

- Update to / flash latest official Android release

- unblock bootloader

- Install TWRP

- Copy Magisk and NetHunter image to USB drive

- Reboot into TWRP, insert USB drive.

- flash NetHunter image

- flash Magisk

- Reboot

- Run NetHunter app

- Reboot

NETHUNTER was finally installed. But I had some problem with chroot. When I tryed to run chroot in Nethunter app- finally I reached this sentence (red line in attached picture):

[-] sdcard /lib/modules/3.10.73-Re4son-3.5 doesn't exist or isn't mounted

Trying to solve this problem I:

-opened Nethunter Store App;

-made update of NetHunter;

-opened NH app and pressed "Kali Chroot Manager" - and after that I received this info:

So... it seems it works.

This installation was my first job. Now it is time for NetHunter learning :)
[Nexus 6P Android Development] yesimxev:
Excellent "latest build" links. Something to mention, Nexmon is not perfect here, although it can be easily patched as per the install instructions for nexmon on the LOS17.1 thread (in the notes and updates): https://xdaforums.com/t/rom-officia...uawei-nexus-6p-los17-1.4079087/#post-82215531
[Nexus 6P Android Development] v42cine:
Thank You for the answer. Mentioned thread will be my next job!
[Nexus 6P Android Development] vamsi_17:
Hi, is Nexmon working with LOS17.1 ?

I've been trying from 2 weeks, no success
[Nexus 6P Android Development] yesimxev:
Yes it is, only in Kali terminal as mentioned in the LOS17.1 post. Have you flashed vendor squashfs as well?
[Nexus 6P Android Development] vamsi_17:
No, I haven't flashed anything except for Nethunter on LOS 17.1 and I have a working CH root.

I'm quite new to this. Is vendor squashfs a file the needs to be flashed using TWRP. Or is this a command

Please shed some light on this.

Is this something I need to flash, All 3 of them, after Nethunter?

Downloads for : Google Nexus 6P | AndroidFileHost.com | Download GApps, Roms, Kernels, Themes, Firmware and more. Free file hosting for all Android developers.

Download GApps, Roms, Kernels, Themes, Firmware, and more. Free file hosting for all Android developers.

androidfilehost.com
[Nexus 6P Android Development] yesimxev:
Check the steps in the first post. Should be done after flashing LOS, with fastboot command
[Nexus 6P Android Development] verebes11:
I am on a Nexus 5x Installed Nethunter on a Lineage 15.1 which is the required Oreo version and updated Nethunter app and went through all the steps. Chroot is coming up with this message:

[-] sdcard /lib/modules/3.10.73-Re4son-3.5 doesn't exist or isn't mounted

Despite the message, it starts chroot but I believe that the above error message causes a lot of problems tried installing the kernel headers but I cannot get them through apt-get

apt-get install linux-headers-$(uname -r)

it could not find the package. I cannot make my external Wifi card working despite it being recognized over USB but wlan1 does not gets recognized.

Any help appreciated to get rid of the above errors.
[Nexus 6P Android Development] vamsi_17:
where exactly is this first post that mentions vendor?
[Nexus 6P Android Development] yesimxev:
Yes sorry didn't highlight that it's in the LOS17.1 post which I pasted here earlier (vendor is mentined at the first code block) https://xdaforums.com/t/rom-official-kali-nethunter-for-the-huawei-nexus-6p-los17-1.4079087
[Nexus 6P Android Development] ulbricht_y:
having problem in the installation of the kernel in the official nethunter oreo zip angler...

the boot path fails and unable to use HID attacks..but others works after updating nethunter app and after starting chroot...

TWRP log file : https://www.dropbox.com/s/elqcfqvce12v365/recovery.log?dl=0

Error: "Unable to mount system as r/w , Aborting , failed to patch boot img"

running stock android 8.1.0 latest image Nexus 6P

Decrypted, running magisk latest and twrp with FDE support.....

need help.. but replies also appreciated.
[Nexus 6P Android Development] yesimxev:
You might want to go back to earlier TWRP, as I this mounts system_as_root I suspect
[Nexus 6P Android Development] ulbricht_y:
Can you tell the version of TWRP..

If can plz send me the link..
[Nexus 6P Android Development] yesimxev:
I think even latest official would be good on twrp.me/devices
[Nexus 6P Android Development] ulbricht_y:
I'll give that a try...
[Nexus 6P Android Development] ulbricht_y:
Fixed my error. Thanks a lot man.
[Nexus 6P Android Development] grajek05:
Hi kernel developers for kali nethunter there is just an issue with nexus 6P when completing the installation in recovery TWRP twrp-3.5.0_9-0-angler.img. My Nexus 6P is standing on manufacturer logo my nexus 6p is using 4 cores I wanted to so inform with this problem so that you will fix in next version of kali linux. I apologize to you for my bad English.
[Nexus 6P Android Development] yesimxev:
External USB adapters issue has been solved on LOS17.1. Internal wireless injection also works there https://xdaforums.com/t/rom-official-kali-nethunter-for-the-huawei-nexus-6p-los17-1.4079087/
[Nexus 6P Android Development] yesimxev:
Try an older twrp like 3.4.x. I never liked the stuck on boot logo, usually the reason is phone hardware issue
[Nexus 6P Android Development] grajek05:
@yesimxev I don't know if this is a problem with the new kernel for kali nethunter. Try to provide the good old kernel for kali nethunter with a complete installer.
[Nexus 6P Android Development] grajek05:
Hi I have this problem with my nexus 6P I found out from here that Kali Nethunter is discouraged for Oreo https://kalilinux.gitlab.io/nethunter/build-scripts/kali-nethunter-devices/nethunter-images.html But I found on XDA Developers that it works fine https://xdaforums.com/t/kernel-nethunter-cypher-v3-0.4023075/ I know its too hard of a question to ask but I cant think of an android version whether to stick with Oreo 8.1.0 or Nougat 7.1.2 so thanks for the answer. Sorry for the language English I was translating
[Nexus 6P Android Development] yesimxev:
It shouldn't be a kernel problem. Have you tried https://xdaforums.com/t/rom-official-kali-nethunter-for-the-huawei-nexus-6p-los17-1.4079087/

If that works, it's not a hardware issue, so better to stick to it
[Nexus 6P Android Development] grajek05:
I'm sorry for this but this manual is too difficult for me and I've already done this a couple of times and got these messages in TWRP using version 3.4.0.0. These are the messages I was getting E: FBE found but FBE support not present in TWRP.

Failed to mount '/vendor' (No such device)

Later after LineageOS 17.1 the move automatically destroyed the vendor. As for me LineageOS 17 together with Kali Nethunter is for people who are not afraid of breaking their phone and what will happen to it. It is not for me LineageOS 17.1 with Kali Nethunter.
[Nexus 6P Android Development] yesimxev:
Although I haven't experienced anything bad in 1 year of LOS17 for 6P, I understand. Flash stock oreo to get back to default state. Please use an official twrp 3.4.x version as mentioned above and flash everything as in the instructions. FBE support is not needed in Oreo. Does stock rom boot btw?
[Nexus 6P Android Development] grajek05:
The stock rom boots normally, I haven't installed kali Nethunter for Oreo yet, so I've heard that it is discouraged for this version of kali Nethunter Oreo. I am considering this guide https://xdaforums.com/t/kernel-nethunter-cypher-v3-0.4023075/
[Nexus 6P Android Development] null00005:
May I know how to install Nexmon in order to put the internal wifi card into monitor mode? I can't find an instruction about this, thanks!

Another question: can I install this nethunter image on LineageOS 15.1? Thank you.
[Nexus 6P Android Development] grajek05:
Hi, here is the answer from LineageOS 15.1 https://gitlab.com/kalilinux/nethunter/build-scripts/kali-nethunter-project/-/issues/1309
[Nexus 6P Android Development] Nutri Kazuma:
Hi guys. I'm from Brazil and new here with English rusted so please, a little patience with me ok? Thanks. 😂

I have a Nexus 6p with Android 8.1 and nethunter installed. Ok. I've installed nethunter when it is on version 2020.4, and everything works perfect (only the USB arsenal don't work, but I can't use it, so no problem), but after update to 2021.1 KeX option on nethunter app stopped to work. Everytime I try to run it, the vnc server won't start. So I waited the next update to see is this come back to work. After installed version 2021.2, the error persist, so I started to look for the error and I found two problems.

FIRST: the command executed by nethunter app is wrong.

The correct command should include this line

"LD_PRELOAD=/usr/lib/aarch64-linux-gnu/libgcc_s.so.1 nohu vncserver :1 ..."

But the command actually executed by app is

"LD_PRELOAD=/usr/lib/aarch64-linux-gnulibgcc_s.so.1 nohu vncserver :1 ..." (There's a slash missing)

I don't know how to correct the command on the app, so I created a new one with corrected parameters using the custom command menu, but there's still more...

SECOND: the file itself is missing. Yup, the file libgcc_s.so.1 is missing and I don't know how to install it.

There's no file with this name on any place on my phone, including Android system.

Any help, please?
[Nexus 6P Android Development] yesimxev:
Aweso

Awesome spot, fixing right now. Not sure how it gone throguh for me. I don't have that phone in hand now, but the file does exist (in NH chroot). Btw, for the time, just run vncserver command to see if it works at all
[Nexus 6P Android Development] Nutri Kazuma:
@yesimxev Hey man, thanks for the reply. I've looked on NH chroot too, but at last on my phone I don't find that file. So I've decided to get back to version 2020.4 to see what happens and I've found that if you pur tigervnc related packages on hold from update (sudo apt-mark hold tigervnc-common tigervnc-standalone-server) , everything still works. I don't know if this is relevant, but, well, huh... Sorry, rusted English. LoL

Edit: ok, I don't know if this is only with me, but not everything works. Over installed everything again from zero, nethunter 2020.4, put tigervnc on hold and do a full-dist upgrade. Everything works but KeX. It starts the server normally. But when I try to stop server using nethunter app, my phone freezes. LoL

I almost forgot. The nethunter app in using right now is the 2021.2
[Nexus 6P Android Development] yesimxev:
Recent kali update has different xstartup, so before it's patched properly for NH, use this workaround

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

so tigervncserver should run. Not sure why it freezes on stop.

Locate the file, if you install the full latest NH zip from here, it should have it

updatedb && locate libgcc_s.so.1

https://images.kali.org/nethunter/nethunter-2021.2-angler-oreo-kalifs-full.zip

Btw does these commands work to start and stop? vncserver and vncserver -kill :1 ?
[Nexus 6P Android Development] Nutri Kazuma:
Thanks man! I'll do it just right now.

Can I ask you if there's any better kernel to use on nethunter with this phone?
[Nexus 6P Android Development] Nutri Kazuma:
@yesimxev here I am, again. LoL

I do everything you suggested, but still get lots of errors and bugs not related to anything in special, so I've decided to start all over again, from beginning. Format factory, flash original Android 8.1, then root, and finally i decided to start flashing Nethunter from 2020.4 (the first version I've used), and everything do fine, but I always noticed that after flash Nethunter from TWRP, on first start Nethunter says there's no chroot installed and I don't know why, so I have to install it manually, but this never bother me. Ok, after chroot installed, I start to update/upgrade everything, starting from Nethunter app, and then chroot. Applied the patch you mentioned before for KeX and now everything are working like a charm. But (ok, another but), after configured all my custom commands again, afraid to loose it all again I decided to do a backup, AND the backup option isn't working. It try to create a file called FragmentCustomCommands, but only creates a file called "replaceholder" with 0 bytes inside nh_files/nh_sql_backups. All other options to create backups are working fine, so I think the folder permissions are fine.

There's another way to create a backup for custom commands?

And the last question, did you know if theres any kernel for nexus 6p thats supports USB ConfigFS?

Thanks in advance.
[Nexus 6P Android Development] yesimxev:
I'm not sure what's happening there, just tried saving a HID cmd payload from HID attacks and couldn't see where it gone. Will debug, probably wrong path for /sdcard

Kernels 3.x does not support configFS, hence using Drivedroid, and USB keyboard app
[Nexus 6P Android Development] Nutri Kazuma:
I don't know if this is relevant, but at last in my phone (nexus 6p, of course) , the ”/sdcard" also shows as "/emulated/storage/0" on Root Explorer.
[Nexus 6P Android Development] yesimxev:
Yeah most phones does that. Just the way it's mounted as /sdcard
[Nexus 6P Android Development] Nutri Kazuma:
Hey, thanks for the reply. I have a little problem here with the custom commands menu on Nethunter app, because to facilitate my life, I've create almost 40 different commands (and there's some more coming), so this is why I pointed to the backup problem on custom commands menu, but can I ask you something more? Is that possible to implement on custom commands menu some kind of categories or sub menus?

Like "Categorie 1 - commands for this" "Categorie 2 - commands for that"...

I don't know if this is the case for every Nethunter user, but maybe come in hand for more people.
[Nexus 6P Android Development] RonTheRedHat:
Hello Everyone,

I am trying to install Nethunter on my Nexus 6P with Android 8.1. I am currently having problem with monitor mode using internal wifi chip. I could use nexutil,monstart command in the Android SU terminal but not in Kali terminal. It showed up "command not found".

Please help....
[Nexus 6P Android Development] yesimxev:
Please see my instructions on the post. Nexmon in AndroidSU and the export in NH Terminal. However, looks like the EAPOL packets are malformed so that's still need to be solved in kalilibnexmon
[Nexus 6P Android Development] yesimxev:
Yes I had tons of commands too, and "grouping" with a keyword so I can filter when needed. I'll try to debug the location issue soon. We'll look into grouping at some point in the future. Good point!
[Nexus 6P Android Development] Nutri Kazuma:
@yesim thanks again for the replay.

Look, did you know how can I install mana-toolkit? It's not on Kali repo anymore.
[Nexus 6P Android Development] PoIand:
Is this correct Kernel ?

Bcs Nexus 6p cant see Wn722n with dongle, cant run monitor mode, empty modules in "ls /lib/modules"
[Nexus 6P Android Development] UsPdSr:
GitHub - rithvikvibhu/nh-magisk-wifi-firmware: This Magisk module adds the required firmware for external wireless adapters to be used with NetHunter.

This Magisk module adds the required firmware for external wireless adapters to be used with NetHunter. - rithvikvibhu/nh-magisk-wifi-firmware

github.com

Just type in the module section of the Magisk apk 'firmware'' and you'll get the module above.

Download and install it.

Afterwards you can completely unproblematic use your Wlan adapter (resp . the Atheros 9271 chipset).

Fyi

The Realtek 8188EUS isn't supported by this kernel nor the module.
[Nexus 6P Android Development] UsPdSr:
I had to charge my Nexus first and noticed after start-up that your kernel is wrong.

I build the correct kernel with the nethunter-installer..here you go, mate.
[Nexus 6P Android Development] UsPdSr:
I came across this and thought that some of you maybe would be interested..

GitHub - RoninNada/libnexmonkali

Contribute to RoninNada/libnexmonkali development by creating an account on GitHub.

github.com
[Nexus 6P Android Development] yesimxev:
@Re4son's kernel is the one working, yes. Nexmon lib files has to be replaced from my zip. Modules are not needed. I think you firmwares are missing after flashing from /etc/firmware/

nexmon_draco.zip | by yesimxev for Nexus 6P

Download GApps, Roms, Kernels, Themes, Firmware, and more. Free file hosting for all Android developers.

www.androidfilehost.com
[Nexus 6P Android Development] yesimxev:
Mana will be replaced, unfortunately Kali repo is ahead. If you can install from it's github source, you can downgrade iptables to make it compatible.

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
[Nexus 6P Android Development] UsPdSr:
Pardon?

After taking a quick look into gitlab's issue section and both here hosted threads, would you probably agree that this not the 'issues' remedies, which since the publication of both kernel as an persistent problem presented.

Like you, do I own over ~ 5 Kali Nethunter compatible devices myself.

I have no idea, if you have a adapter with said chipset, but I believe that Nethunter since approximately 2 years huge difficulties with it has. ;>

Since half a year does now my Alfa AWUS036NEH only partially work, but as soon as I don't use it for ~ 20 seconds, goes it out of the monitor mode.

Beside.

If in fact is it true like you said, that Kali Nethunter 's firmware not being flashed is, is the solution I provided prior, being completely correct and on the spot.

Moreover did I provide a interim solution in form of the Magisk firmware module, but as I told before, is Kali Nethunter since a long time in quite the delay, or am I wrong?
[Nexus 6P Android Development] grajek05:
Hi all can anyone test the kernel for Huawei Nexus 6p Android Oreo. I don't know if BT_RFCOMM, CDROM, HID, Injection, Nexmon, RTL8812AU or on version 10 will work after installing it. BT_RFCOMM, HID, Injection, Nexmon, RTL8812AU
[Nexus 6P Android Development] Charlesincharg:
I am super confused this says it is for Android 8.1 but when I go to link u provided to

Kali website it only has it for 8.0
[Nexus 6P Android Development] Charlesincharg:
Can't seem to find the 2020 release
[Nexus 6P Android Development] yesimxev:
That's for 8.1, will replace that 👍
[Nexus 6P Android Development] TH34NONYMOUS:
Hi, can you provide an xda link for AOSiP 8.1, please? I'm interested
[Nexus 6P Android Development] UsPdSr:
Some of my old backup drives aren't not with me at the moment, but I just looked over the search results and several posts, which narrows it down to two versions.

The latest version of twrp

twrp-3.6.1_9-0-angler.img

The version I suppose I used at that time were

AOSiP-8.1-Official-angler-20180825.zip

*

Vendor (you have to find the necessary vendor images by yourself, but I'm sure this shouldn't be that big of an issue; in any case do you find here the necessary factory images)

* vendor-angler-OPM6.171019.030.H1.img (08/2018)

The second rom, in case the first one doesn't work that well, do you find below

AOSiP-8.1-Official-angler-20180911.zip

vendor-angler-OPM6.171019.030.K1.img (09/2018)

Open Gapps, arm64, 8.1 - 'pico' (for both rom verions)

open_gapps-arm64-8.1-nano-20220503.zip

Magisk-v24.3

The remaining files, which you require, can you either build from the latest source code, with nethunter's installer, or you simply get the most recent Nethunter release from kali.org for the according Android version.

If you have any other questions, requests or issues with the installation or the setup, would I be glad to help out - if manageable.. 🙂

Many heaps!

UsPdSr
[Nexus 6P Android Development] Fuse8499:
Works great! Found a 128gb 6P on Amazon for $80 and couldn't pass it up. Nethunter is awesome!
[Nexus 6P Android Development] jeretxda:
Hello @yesimxev ,

I have successfully flashed Nethunter from the official Kali Nethunter website for Nexus 6P - Oreo.

On trying to start wlan0 in monitor mode from the Kali Nethunter app, I'm not getting any response but In the terminal I get this error:

wlan/parameters/con_mode; ip link set wlan0 up; exit /system/bin/sh: can't create /sys/module/wlan/parameters/con_mode: No such file or directory

Does Nexus 6P allows the internal wireless card to be put into monitor mode?
[Nexus 6P Android Development] yesimxev:
You should start with nexutil -m2 as far as I remember. See my notes and updates here https://xdaforums.com/t/rom-official-kali-nethunter-for-the-huawei-nexus-6p-los17-1.4079087/
[Nexus 6P Android Development] 77Pluto:
Hi, on start I sorry for my English, but I am from Poland. I Have Nexus 6P with Kali nethunter, and network card USB: TL-WN722N v2/v3. I want install driver for this card, but first I must have installed linux-headers, and when I try install it: apt install linux-headers-$(uname -r) I have error: Couldn't find any package by glob 'linux-headers-3.10.73-Re4son-3.5' , and anywhere I can't find this headers. You know what I need to try?