yashsingh1/xdaforums huggingface dataset:
[ZenFone 2 Android Development] troy5890:
How do the installation steps go again? I'm sorry it's been awhile
[ZenFone 2 Android Development] aniruddha007:
ROM+GAPPS+NH zip+NH kernel 1.8

U can skip flashing rom and gapps if flashed already
[ZenFone 2 Android Development] say99:
use mini now, it is far more stable and far more better
[ZenFone 2 Android Development] troy5890:
Thank you very much my good sir
[ZenFone 2 Android Development] troy5890:
Alright, I successful installed nethunter and everything. I do have one question. Does the mini kernel have KVM to view Kali through a vnc viewer or xserver?
[ZenFone 2 Android Development] say99:
well, we don't need KVM to use VNC server or xserver, everything is already setup, just flash and enjoy :)
[ZenFone 2 Android Development] troy5890:
Thank you, I'll let you know if anything goes wrong. Hopefully I'll be able to get the vnc server to work this time.

---------- Post added at 08:50 PM ---------- Previous post was at 08:05 PM ----------

That's strange, every time I try and use the Nethunter terminal it says it can execute and no such directory is found when I try to use vnc. Anyone having this issue?
[ZenFone 2 Android Development] say99:
did you give it all the permissions?? the correct way is to first open nethunter app and as soon as it asks for permissions, allow all. Only then you should fire up the terminal, and if you are still having issues, there is a fix in the first 5 pages :)
[ZenFone 2 Android Development] troy5890:
I'll try uninstalling and do that again. Thank you very much.
[ZenFone 2 Android Development] aniruddha007:
Can anybody help me with metasploite or suggest any thread related it
[ZenFone 2 Android Development] maneesharora:
Please provide the complete process to install the same on DU 6.0.1 rom
[ZenFone 2 Android Development] aniruddha007:
NH zip+ NH kernel v1.8
[ZenFone 2 Android Development] maneesharora:
Directly flash thru TWRP ??? without wiping any thing ?
[ZenFone 2 Android Development] ruleh:
With the mini kernel, charging using an usb otg y cable works.

The attached device also works.

Though normal otg became slightly buggy for me (though this might be my fault because I did something to the usb port).

Also there is a 3 second delay after disconnecting the charger until it turns off the charging led. (might also be related to the usb port damage)
[ZenFone 2 Android Development] troy5890:
Is everyone on Kali nethunter 3.0.5? And are the symlinks working for you?
[ZenFone 2 Android Development] ruleh:
What symlinks?
[ZenFone 2 Android Development] jnara:
this work on you:)?
[ZenFone 2 Android Development] Russiamen:
Yes,fully work
[ZenFone 2 Android Development] chinemys:
I have to flash before your kernel and then this?
[ZenFone 2 Android Development] jnara:
can you share the zip file you use to remove the error logs? :) thanks in advance :o
[ZenFone 2 Android Development] say99:
kernel is already included, you will need to flash kernel is someday you decide to update your rom

Sent from my ASUS_Z00A using IOS ;)
[ZenFone 2 Android Development] miradli:
The errors are also in official , the errors say can't open , isn't there any problem , just ignore .

You can also uninstall it in nethunter app , in chroot manager !

Also you can delete system file of Kali manually ,

/data/local/nhsystem/kali-*/

If you don't delete files

"The errors stay til wipe user data "

---------- Post added at 04:59 PM ---------- Previous post was at 04:43 PM ----------

Hi guy's

Don't worry about twrp errors , just ignore them .

It's working , also the internal WiFi doesn't support monitoring and packet injection !

You may need "Y"otg and a USB HUB + external power for powerful WiFi devices that help to save your battery when you are working (it can be charger or power bank) and an external WiFi adapter , for example Alfa 036H support packet injection .

You can also have desktop like user interface with VNC .

Also you can use USB to Ethernet devices .

That's it .
[ZenFone 2 Android Development] jnara:
Thanks man! the errors are gone :good:
[ZenFone 2 Android Development] miradli:
Your welcome ;)
[ZenFone 2 Android Development] chinemys:
I tried 2 cards, AWUS036H and awus036nh.

all 2 enter into monitor mode, but I can not inject, someone has the same problem?

I am using the original charger attached to the house current with cable y
[ZenFone 2 Android Development] Christopher876:
Great, it is working perfectly fine for me.

First one of these linux distros I got working on this phone.

Now I wonder if this phone can do Usb to HDMI......

Thanks! Really loving the work that you guys did with this!
[ZenFone 2 Android Development] chinemys:
The problem seems to be the power, I tried with another card with a chipset from Ralink 100mw, it works great, thanks for your work.
[ZenFone 2 Android Development] say99:
see I told you we will get nethunter working one day ;)

Sent from my ASUS_Z00A using IOS ;)
[ZenFone 2 Android Development] MrPhamHpGYC:
What effect it has, sir
[ZenFone 2 Android Development] chinemys:
Great, you're the best, now I can have fun in the city without my laptop, you have helped to create a lethal weapon :D
[ZenFone 2 Android Development] say99:
haha all credits to [MENTION=2665024]miradli[/MENTION] to get it to work properly ;)

he is the man behind nethunter ;)

Sent from my ASUS_Z00A using IOS ;)
[ZenFone 2 Android Development] miradli:
Thank you bro , but all is based on your work , if we have it just is because of you [MENTION=7111568]say99[/MENTION] ;)
[ZenFone 2 Android Development] chinemys:
Big thanks miradli
[ZenFone 2 Android Development] miradli:
Did you use original 9V turbo charger ?

I had some issue with 9V charger , test with another one 5V . also ralink 100mw may work without external power , in my test Alfa 036h worked in packet injection , it needed more power specially when change TXpower

---------- Post added at 10:07 PM ---------- Previous post was at 10:03 PM ----------

Your welcome dude , it's FlareM kernel that supported and modes for packet injection , then again thanks to say99

I am same as you happy to have Kali Linux in my pocket ;)
[ZenFone 2 Android Development] chinemys:
I am using the original charger 5 v, I can monitor networks, but when injection starts, I lose connection.

With Awus036nh, now it seems to be going, but sometimes I lose connection.

I have to buy charger 9v.

I tried the card from 100mw without power supply, but will not start.

Which recommended powerbank?
[ZenFone 2 Android Development] miradli:
Let me test it again , may be there is any problem in driver !

No you don't need 9V charger , I tested with a 5V 1A charger and it worked for me !

---------- Post added at 10:32 PM ---------- Previous post was at 10:29 PM ----------

About power bank , you can use anything , it's not important , I think ;)
[ZenFone 2 Android Development] say99:
AOSP is not supported as AOSP ****s up sensors when using permissive kernel, and nethunter needs permissive kernel

mate is this good or bad?? I am really confused :P

can you make a proper clean install and try?? Do a proper wipe, install whatever CM based ROM you like, boot it up, reboot to recovery flash nethunter, flash mini kernel, reboot, open nethunter app it will ask for permission give all the permission and I hope everything will work :)
[ZenFone 2 Android Development] ruleh:
The fact that usb otg with charging works is great.

I managed to connect 4 usb devices and still charge the phone.

All of the attached devices also worked well (keyboard, mouse, usb headset, wifi card).

However I did something stupid and damaged my usb port.

In case someone is interested: http://xdaforums.com/zenfone2/help/usb-board-messed-behaviour-t3417065
[ZenFone 2 Android Development] maneesharora:
Please suggest me that what CM base rom work perfectly with kali nethunter
[ZenFone 2 Android Development] troy5890:
Unfortunately, I gave it all permissions, tried the method from the first five pages and it still didn't work(tried Kali terminal and it list a bunch of things saying no such directory. Tried running the vnc and it says (1 no title.

Did some investigating and found out the problem could be the symlinks, but I'm not sure.
[ZenFone 2 Android Development] say99:
yes, thats the symlink issue. I am totally out of league right now, wait for tomorrow. I might get to a fix.
[ZenFone 2 Android Development] troy5890:
Take your time man, no rush. Though I do thank you for helping me out. Even better than Asus customer services.
[ZenFone 2 Android Development] maneesharora:
I have install kali nethunter and run wifite but terminal screen not showing any wifi network and only ping one line that

Enabling monitor mod on wlan0......done

Pls suggest
[ZenFone 2 Android Development] Nekshansingh Sekhon:
help!!

Have you got any errors after flashing kernel? Like music player won't start or camera app crash?

Any chances of stucking in bootloop and we have to go in service centre and giving them heavy money?

Using Z00A with 3.0.0 twrp recovery.

Please guide me
[ZenFone 2 Android Development] maneesharora:
Anyone can help me to run Wifite properly on our Zenfone 2, i am attaching Sceen Shot also for your reference
[ZenFone 2 Android Development] maneesharora:
wifite
[ZenFone 2 Android Development] aniruddha007:
Need help "can't start vnc server already running"

Need to kill Xtightvnc manually
[ZenFone 2 Android Development] aniruddha007:
Finally managed to solve deleted all files in

data/local/nhsystem/kali-armhf/root/. vnc

And

data/local/nhsystem/kali-armhf/root/templates

[emoji4] [emoji2]
[ZenFone 2 Android Development] say99:
good work man :) okay, I have finally checked out Nethunter branch on minimal kernel, if anyone wants to contribute anything for nethunter just clone nethunter branch and make a pull request on it :)
[ZenFone 2 Android Development] aniruddha007:
But what is" nethunter branch" i didn't get it
[ZenFone 2 Android Development] say99:
that's a branch for nethunter kernel on my kernel repo
[ZenFone 2 Android Development] Nekshansingh Sekhon:
not working...

I wiped everything after that flashed cm-13

2. Kernel(given in link)

3.gapps

Turning mobile on and completing setup

5. Going in recovery again

6. Installing net hunter

7. Starting up the device...

Sticks in boot loop....Kali comes and keep flashing...waited 30mins

Tried 4 times to flash..

Once fail ..doing complete flash with flashing uninstaller tool....but not working....device Z00A
[ZenFone 2 Android Development] aniruddha007:
U should flash nethunter zip after that u shoud flash kernel from link flash v1.8 or mini sequence matters coz there is the kernel already in the package but is old hence I need to be replace with v1.8
[ZenFone 2 Android Development] aniruddha007:
As long as say99 is supporting no need to worry, he's awesome developer and really supportive not like other developers ;)
[ZenFone 2 Android Development] Nekshansingh Sekhon:
Can we update cm rom with ota? Or it goes into bootloop?
[ZenFone 2 Android Development] say99:
you will loose net hunter, the symlinks gets destroyed.
[ZenFone 2 Android Development] Radegastgh:
does this work on zenfone go zc500tg? please i need an answer.
[ZenFone 2 Android Development] aniruddha007:
As far as i know zenfone go has mediatek and zenfone 2 has intel, the kernel is designed for intel so it will not work
[ZenFone 2 Android Development] Radegastgh:
thanks for the quick reply. too bad it wont work :(
[ZenFone 2 Android Development] Nekshansingh Sekhon:
I successfully installed net hunter on Z00a but facing few problems 1st is I can't select my target on wifite crntl c with hackers keyboard isn't working....

And 2nd whenever I use metasploit and create an apk through it...but I can't find it anywhere tried 4-5 times but didn't worked...apk searched with es file explorer pro and root explorer
[ZenFone 2 Android Development] aniruddha007:
It works fine

2nd u need to give path cd /sdcard or somewhere else where you find it better
[ZenFone 2 Android Development] ruleh:
I tried compiling this kernel, thinking it would be the nethunter mini kernel source.

The compilation finished correctly.

However flashing the kernel causes a bootloop.

I have xposed installed and thought it should work with it because the mini kernel worked with xposed.

I used the following two toolchains

https://github.com/sayeed99/x86_64-linux-android-5.3.1

https://github.com/sayeed99/x86_64-uber

I have also tried building it with the buildzf2 script which didn't change much.

Am I using the wrong sources?

Or the wrong toolchain?

Or does it not work with xposed?

Or am I doing something completely else wrong?
[ZenFone 2 Android Development] say99:
hey mate, use this TC https://github.com/sayeed99/x86_64-linaro-gcc-5.3.1

FlareM minimal works just fine with xposed, and yes you can always use buildscript, the only requirement of builzf2 is an initial

export PATH=/path-to-TC/bin:$PATH and you will be good to go :)

I still need to figure out why my full kernel booths with these TC and my minimal one doesn't :(
[ZenFone 2 Android Development] Lucas_Dias:
HELP!!!

Hello guys, I installed NetHunter for the stock that was provided at the beginning of the topic, we install and works well, but the phone does not recognize my micro sd card (external sd), but the TWRP recognizes perfectly, turning to stock the cell recognizes again, only not in recognizing the NetHunter for the stock.

Sorry for my bad english, I'm using Google Translate
[ZenFone 2 Android Development] say99:
what's the format for your sd card?? and which kernel build are you using??
[ZenFone 2 Android Development] Ravi Kumawat:
I'm on stock beta mm with unlocked bootloader and twrp, will it boot if i flash it because other kernels are need to be signed before they can boot?
[ZenFone 2 Android Development] Lucas_Dias:
It is a SanDisk Ultra SDXC I, so I think the standard format is exFAT because never changed. The kernel is the standard that comes (FlareX_v1.0), tried with FlareM_Mini_v1.0 and gave bootloader (brick).
[ZenFone 2 Android Development] say99:
no man, you will need to wait for a few days. I will be switching to MM beta soon
[ZenFone 2 Android Development] ruleh:
I used that toolchain and it still doesn't boot.

Is there anything else I need to change to get it working?
[ZenFone 2 Android Development] westkone:
Hi all !

I have a zenfone 2 ze551ml and I tried to install Nethunter. I was on CM13 19 july build before flashing Kali.

What I did :

- Go into 3.0 TWRP recovery

- Wipe all partitions (ART cache / cache, system, data, internal storage)

- Format cache and data partition to ext4 (f2fs used with CM13)

- Flash CM13

- Boot and pass CM wizard.

- Reboot into recovery

- Flash Nethunter

- Flash flarem 2.0 vNH OC kernel

(- wipe or not ART / cache, tested with both)

- Boot on Nethunter

It results in phone stuck on kali bootanimation.

So, I'm back on my CM13 backup.

I really want to make Kali works on my zenfone. So, what I did wrong ?
[ZenFone 2 Android Development] say99:
flash the nethunter mini kernel in the end that's all :)
[ZenFone 2 Android Development] westkone:
The flarem 1.0 mini kernel ? But why the 2.0 doesn't work ?
[ZenFone 2 Android Development] aniruddha007:
Flarem mini 1.0 kernel supports nh +Xposed and

Flarem 2.0_nethunter(oc).zip works but doesn't support xposed
[ZenFone 2 Android Development] say99:
I missed your message, which branch are you using?? I have a nethunter branch, use that. The main requirement is permissive kernel
[ZenFone 2 Android Development] ruleh:
I am using the nethunter branch.

Also I think the kernel is set to permissive because of the line

androidboot.selinux=permissive

which is in anykernel.sh.

However there are a few more selinux settings in the .config.

I will try messing with them to see if it works.

EDIT: Still doesn't work
[ZenFone 2 Android Development] say99:
weird, I will test out a build again :) inbox me on telegram [MENTION=6785311]Sayeed99[/MENTION]

I am less active here these days
[ZenFone 2 Android Development] aniruddha007:
Hey can you update flarem mini v1.0 with more governors and tweaks

Thanks in advance
[ZenFone 2 Android Development] ihadeed:
Hey man

Thanks for the great work here

I tried installing Nethunter + the Kernel on my stock ROM (rooted) and it worked. However, the USB OTG wasn't supported and I wasn't able to use my TP-Link TL-WN722N.

I figured it might not be supported with the stock ROM version of Nethunter... so I wiped my phone clean, installed CM13 and it was working fine. But when I flashed Nethunter + Kernel my phone got stuck on the kali loading screen (is that what a bootloop is?).

I was hoping you can help me figure out what is wrong with it :)

Here are the steps I did:

- Factory Reset

- Wipe all partitions

- Format Data

- Flash CM13

- Flash GAPPS

- Boot to setup the ROM

- Reboot into recovery

- Flash Nethunter

- Flash Kernel

- Reboot into system

Note that the kernel itself doesn't break the phone, the problem seems to be from Nethunter.

Thanks in advance
[ZenFone 2 Android Development] ihadeed:
I Installed v1.9 Kernel and it worked (booted).

However, the OTG is still not working. Connecting a USB or a WiFi both don't work.

Typing lsusb in the terminal shows that "Bus 002/003" device is there... but it doesn't recognize it.
[ZenFone 2 Android Development] aniruddha007:
Wired

Everything is working for me

Otg, wn722,

I'm on RR+FLAREM MINI V1.0 +XPOSED
[ZenFone 2 Android Development] ihadeed:
Thanks for your response. [MENTION=5772387]aniruddha007[/MENTION]

Where do you get FlareM Mini v1.0 from? I'm unable to find that.

Also what is RR? is it much different than CM13?

I'm assuming you referring to this: http://xdaforums.com/zenfone2/development/rom-resurrection-remix-m-5-6-9-t3399795

---

UPDATE:

I think I found v1.0 ... FlareM_v10.zip ?

I just installed it, OTG still not working and now the double-tap to wake doesn't work too.

Do you think it's an issue with the ROM?
[ZenFone 2 Android Development] aniruddha007:
Flash RR 5.7.2(cm 13 based custom rom)

Flash gapps(use any light weight)

Flash NH zip

Flash kernel flarem v1.8

Done

After flashing Resurrection Remix rom

Setup it first then again do rest of the things i mentioned
[ZenFone 2 Android Development] ihadeed:
Thanks for your response

I wiped everything clean and tried the steps you provided. The ROM works like a charm but I'm still experiencing issues with the OTG.

I'm starting to think it's an issue related to the phone, since I wasn't able to use OTG even on stock ROM (unrooted) while I see others are able to do so.

Tried a USB flash drive and I tried my WiFi Adapter,, both have failed to run.

UPDATE:

I opened a thread here to discuss the OTG issue since I doubt it has anything to do with this Nethunter image.

http://xdaforums.com/zenfone2/help/ze551ml-z00a-unable-to-otg-t3436934
[ZenFone 2 Android Development] jade01win:
What the kernel version support xposed and have ondemand governor?? Coz i use flare mini and dont have ondemand governor
[ZenFone 2 Android Development] aniruddha007:
For now we don't have it, soon we can if say99 will build
[ZenFone 2 Android Development] ruleh:
Monitor mode

Okay so I started trying to enable monitor mode on the internal wifi chip by looking at this : https://dev.seemoo.tu-darmstadt.de/bcm/bcm-public

It works!!

kinda....

Things that work:

packet sniffing on a single 2.4ghz channel

Things that don't work

packet injection

packet sniffing on multiple channels

radiotap headers

Patching the firmware made no noticeable difference since monitor mode works without a patched one and for some reason everything else doesn't work either way.

I could not compile the module in the source.

Instead I tried to apply the patches to the v1.8NH kernel (the only kernel that compiles and boots for me).

However there is some code for monitor mode with the radiotap headers in the stock bcmdhd source which might work.

There area also some signs that the stock driver supports injection without a firmware mod.

[The nexmon wifi module is quite different than the one used in the Zenfone kernels.]
[ZenFone 2 Android Development] aniruddha007:
Hey can you upload the patched kernel v1.8nh
[ZenFone 2 Android Development] say99:
well I once worked on it, but since I moved on to ROM I had no time for it :( I am going to check out a new kernel just for net hunter where we all can collaborate and make it work :) just give me a day for it
[ZenFone 2 Android Development] say99:
and BTW a minimal branch will do right??
[ZenFone 2 Android Development] ruleh:
Sure.

It will take some time though.

It has to be nethunter compatible and bootable.

I never got the mini kernel to boot so I am not sure.

The only thing that ever compiled and booted for me is the v1.8 kernel. So anything close to that should hopefully work.

However, as long as it boots and compiles, anything is fine.
[ZenFone 2 Android Development] say99:
don't worry about that, I really don't know why you never got mini booted, though I did build one from that, anyways I will link you it by tomorrow evening Indian std time :)
[ZenFone 2 Android Development] ruleh:
monitor mode kernel

Here is a kernel which a monitor mode enabled wifi module.

http://www.expirebox.com/download/8363bb98d2c10c382f251ad31cf1943c.html

The module itself is called bcmdhd2.ko and can loaded into the kernel using insmod.

It is already in monitor mode so there is no setting modes involved (changing modes might disable monitor mode).

Normal wifi still works with the bcmdhd.ko module.

There is a third module called bcmdhd3.ko which is an early attempt into radiotap headers but it crashes everything.

To enable channel switching, download the chanswitch.sh script from here: https://github.com/ruleh/misc/tree/master/monitor

and run it somewhere in kali in the background while monitoring.

You might also want to use the monitor.sh and dismon.sh scripts just to save an extra second when trying to load the modules in and out.

[I can't upload the zip directly to xda because of the filesize. If anyone can host it somewhere else please do so.]

[The kernel is VERY VERY VERY UNSTABLE and has its general quirks here and there]

[Also: It might destroy your phone]
[ZenFone 2 Android Development] luckey_melon90:
This nethunter can use stock rom 5.0 z2 or not??
[ZenFone 2 Android Development] aniruddha007:
Yes u can use it on stock rom, but u should flash kernel made for 5.0
[ZenFone 2 Android Development] luckey_melon90:
T.q info

---------- Post added at 06:36 PM ---------- Previous post was at 05:59 PM ----------

Help plz.....why cowpatty is not required?

Can I update SuperSU and install busy box?
[ZenFone 2 Android Development] say99:
[MENTION=6324821]ruleh[/MENTION] https://github.com/sayeed99/nethunter_kernel_zf2 here you go, I just booted this kernel with nethunter. I have used google's TC but any TC will be fine here's my personal link https://github.com/Zenfone2-Dev/x86_64-linux-android-4.9

also, you can make a pull request for the changes you want here, this kernel will be specifically for nethunter builds. And this is a minimal tree.

just adding the toolchain path in your bashrc is suffice, like I do

export PATH=/home/cyborg/x86_64-linux-android-4.9/bin-ccachecm:/home/cyborg/x86_64-linux-android-4.9/bin:$PATH

and just do a ./buildzf2 to build the flashable kernel :)

and for those who want to switch to new build : https://drive.google.com/open?id=0B2DVhZKJ05fLN3drN0sxcEtXczQ

regards

sayeed
[ZenFone 2 Android Development] luckey_melon90:
This wifi adapter support or not??
[ZenFone 2 Android Development] aniruddha007:
Not tested, i use 722n
[ZenFone 2 Android Development] luckey_melon90:
This model right
[ZenFone 2 Android Development] aniruddha007:
Yes :) monitoring, injection works on it
[ZenFone 2 Android Development] luckey_melon90:
Ok t.q
[ZenFone 2 Android Development] ruleh:
Thanks a lot.

It compiles well but I can't test if it boots or not because my phone is broken (again....can't charge).
[ZenFone 2 Android Development] luckey_melon90:
Hello guys..... I have problems I run wifite can't get passwords

Any solution??
[ZenFone 2 Android Development] zanitos1991:
Hey guys installing kalihunter bootlooped my phone from clean install cm13, also tried it with new blops and couldn't boot either. Is this project dead?