yashsingh1/xdaforums huggingface dataset:
[ZenFone 2 Android Development] sanathxda:
I guess that my device is arm . My device is Samsung galaxy s advance gt i9070
[ZenFone 2 Android Development] say99:
porting it on arm is easy :) you just need to add you kernel image, and build it :)

follow their porting guide.
[ZenFone 2 Android Development] sanathxda:
Can you explain to me a bit briefly. And how to port cuz I am new to these type of stuff

---------- Post added at 07:12 AM ---------- Previous post was at 07:01 AM ----------

Did u use android kitchen or any other application plz tell me the applications which u used tnx in advance
[ZenFone 2 Android Development] say99:
no mate, fork their repo. Its not that type of port. Here you will be building it. clone the repo, and add your kernel, you will need to compile the kernel with some patche so that everything works. Take help from your kernel devs to help you out in this, finally add info about your device and add in the kernel and build it up
[ZenFone 2 Android Development] sanathxda:
How should i do that.....

Sorry cuz I am bugging you a lot
[ZenFone 2 Android Development] dezren39:
K so I clean flashed cm13, it boots up I do setup. I didn't install root or do anything else. I flash nethunter-zenfone2.zip Mar 10 Masoud Miradli and FlareM_vNH_OC_2.0.zip May 3 Sayeed Afridi then reboot, but it stalls. I did notice supersu in the script said it fails to update the sepolicy. Also FlareM says it failed to install the kernel, just reboot and enjoy. I'm not sure how relevant these things are, because there's all those error messages at the end every time anyways. Was I suppose to configure something in CM specifically? Like pre-install supersu or something?

I'm fairly competent at this stuff, I just don't know where to be looking with this.
[ZenFone 2 Android Development] say99:
I sure nothing failed, can you show me the status of your chroot from the nethunter apk??
[ZenFone 2 Android Development] dezren39:
How do I do that when it just shows kali boot screen and just stays like that getting hot? I waited a couple hours and it didn't boot, lol. If there's a way for me to access logs, I'll gladly do it. I know how to play in kali, but usually I just flash roms in recovery. Is it because I have 3.0.0 twrp? Circles
[ZenFone 2 Android Development] Rafael.Brasil:
what this ? enabling monitor mode on wlan0... done loop in wifite
[ZenFone 2 Android Development] say99:
our wifi card doesn't supports that, you will need an external card
[ZenFone 2 Android Development] say99:
that's really really weird, can you try with nethunter kernel 1.9 or 1.7??
[ZenFone 2 Android Development] dezren39:
Yeah definitely. I'll try to do it in the next couple hours, might end up being later tonight though. I'm frustrated because this seems so simple to setup and I don't think I've done anything weird that should or even could be conflicting.
[ZenFone 2 Android Development] carlosecg:
I had the same problem. Did a full wipe, installed CM13, Gapps, Kernel 2.0, Nethunter... Couldn't pass the boot screen. New wipe, tried with 1.2 kernel and all worked. Should I upgrade the kernel?
[ZenFone 2 Android Development] say99:
yup, if 1.2 is stable for you, stick with it (if you just need to use nethunter)
[ZenFone 2 Android Development] Thunder4444:
Have Xposed?
[ZenFone 2 Android Development] carlosecg:
No. Only default CM nightly 2016-05-13 for Z00A. Rooted, did a full wipe and flashed CM, Gapps, Kernel and Nethunter, all using TWRP.
[ZenFone 2 Android Development] dezren39:
I tried 1.9 and it didn't work, I've been busy though so I haven't had a chance to figure out what I'm doing wrong. I'll try 1.2 I suppose, since it worked for someone.
[ZenFone 2 Android Development] dezren39:
So after a few tries, I got the 1.2 kernel to work. Once I booted it up and it worked, things went smoothly from there. Seeing the full desktop in vnc was a pretty awesome moment.

From what I understand, you're saying Nethunter modifications stay about the same in each kernel update and the only reason to try to make a higher version of flareM to work is if there is a functionality or compatibility thing related to the kernel itself?

Thanks for the port/fork, this thing is awesome.

Edit: Is this supersu modified in some way? Can I flash a new supersu over so that annoying update message leaves? Or would that break things
[ZenFone 2 Android Development] 1boy1dr:
You can update SuperSU.
[ZenFone 2 Android Development] Craigst1:
Wifi injection

does asus zenphone 2 wifi chip set work with packet injection for wifi wep and reaver attacks ?

regards craig
[ZenFone 2 Android Development] mremghz:
I am trying nethunter with the stock rom and the only thing that I can't get working so far is connecting an external wireless card with a otg-y cable. The card is the Alfa awus036nh, it worked when I had CM13.
[ZenFone 2 Android Development] say99:
nope

quite possible I missed those drivers, I will check it out today :)
[ZenFone 2 Android Development] mremghz:
Thank you, and great work on Kali nethunter for zf2!
[ZenFone 2 Android Development] ZeikuOC:
Does it support tenda w311u+ rt2870/rt3070? I have one and it works on the kali light vhd. :)
[ZenFone 2 Android Development] ZeikuOC:
It doesn't detect the wireless adapter. Any recommended solution or thread?
[ZenFone 2 Android Development] say99:
ai believe those drivers aren't there at this moment. I will get them in. It will be great if someone can prepare me a list of adapters they are using.

like open a thread in general section and you all can post your adapter details, and I will get them in :)
[ZenFone 2 Android Development] nig0fl:
HID Attack not work

Hi man, first of all tks for your hard work to make nethunter happen in the zenfone 2 ;)

Sorry for my bad english but i'm from Brazil, but I'll try to make you understand me :D

I installed nethunter in my zenfone 2 with dualboot, and it works perfectly, but i can't make the HID Attack keyboard works :(

I understand that nethunter use hid-keyboard to send the requests from hid attack, but when I run the command I receive this return:

-bash: /system/xbin/hid-keyboard: Accessing a corrupted shared library

so I search about it and found this:

github /pelya/android-keyboard-gadget

And I change the file hid-keyboard to file hid-gadget-test and the /dev/hidg0 and /dev/hidg1 start to receive the commands to hid interface.

Ok, but when I plug the usb in my computer, and start to typing something, or move the mouse with USB Keyboard app, nothing happens. =(

In some of your kernels you implement this HID interface and works in nethunter for zenfone 2?

Tks in advise.

Alexander
[ZenFone 2 Android Development] ruleh:
This is really weird....

I tried installing it several times now and sometimes it works, other times it doesn't.

Only kernel v1.2 worked for me on several different roms.

Sometimes weird stuff happens after the installation, like supersu disappears completely or the chroot doesn't extract or it bootloops right after the lockscreen appears. (all kernel v1.2)

The kernel v1.2 seems to miss some symbols that are needed to get mac80211.ko and other modules loaded.

I assume that this isn't the case with newer kernels since the v2.0 source builds those modules correctly (as modules and inside the kernel).

Flashing the source compile kernel with the v2.0 ramdisk causes a bootloop.

Is there any change in the ramdisks between v1.2 and v2.0 and if yes, where can I find those.

Also what are the differences between the old nethunter (the one under the old folder) the "new" one?
[ZenFone 2 Android Development] ZeikuOC:
http://xdaforums.com/zenfone2/general/wifi-adapters-zf2-kali-nethunter-t3383902

I made a thread :) Hopefully this will solve aome of our problems. :D

For anyone who is facing some issue with their wifi adapters, go to the link above and post the wifi name plus its chipset and the kernel version(I think it's important lol) of the nethunter. :D
[ZenFone 2 Android Development] say99:
I will be back on CM very soon, I seriously don't have any idea why it didn't boot, there were a lot changes in kernel from v1.2 to 2.0, my kernel doesn't uses a Ramdisk, so I don't care about Ramdisk changes, it is quite possible that you had xposed when you flashed v2.0, I had them tested till v1.8 and all was good.

just wait for a few days and I will flash it and update.

sweet :) thanks man, I just need the names of the adapter, rest I will get in the drivers. Hope this solves most of the adapter related issues ;)
[ZenFone 2 Android Development] ephexxis:
hopefully i don't get hate for this, but if so, being it on n3rds.

might be worth scrapping flareM and beginning again by starting from a venoM build. add your components one by one until stability drops off. i personally haven't even tried using flarem since v 17.3 because there hasn't been a stable version since pre v13. this is coming from a guy who stopped using xposed entirely before then too and usually runs cm13 or xosp. (right now on temasek which is as stable as cm). since it never seems to get better and the release schedule invites instability (e.g. releasing a 'stable' version with features added to whatever the last beta was, also never releasing a stable beta as stable), venoM has been my go to and it currently is a very solid set of features over stock.

you can't expect to ever really understand what's going wrong unless you're willing to strip out what you've added, sayeed. don't get me wrong, i respect and appreciate the work you're doing and have done, this suggestion is coming from a place of wanting the kernel to succeed and improve. right now its more like an alpha than a beta even.

anyways, this is just what I'd do
[ZenFone 2 Android Development] ruleh:
I didn't use xposed when installing.

However after a successful install and roughly 3 working boots, I installed xposed and it worked fine. (though I don't have xposed on the current install)

If you didn't use a ramdisk, then the kernel is just a bzImage without any other components?

Also I did extract something that seemed like a ramdisk from the v2.0 but it might be an empty cpio archive (need to check this). checked...

EDIT:

Okay so I saw a cpio archive in the source which didn't have much in it. The ramdisk folders in the .zips don't have very much either.

However...I did install kernel v1.8 over v1.2 and it just worked. No errors, no bootloops, no problems at all.

Things are getting weirder and weirder with every step.

EDIT2:

flashed v2.0 over v1.8 and it worked.
[ZenFone 2 Android Development] ruleh:
Can you actually see a /dev/hidg0 or /dev/hidg1 entry?

I can't find either one on kernel v2.0.
[ZenFone 2 Android Development] basdriver62:
I'm crying now...
[ZenFone 2 Android Development] ruleh:
It turns out that the patches for the hid attack were not in the kernel yet.

So I took this patch and applied it by hand to the FlareM kernel source code.

This enabled the 2 hid interfaces for the attack.

However it still didn't work because the hid-keyboard binary was kinda broken.

So I replaced it with this.

I will upload the patched kernel files here (only 6 files).

It would be nice if someone could make a diff between these and the kernel and generate a patchfile that can actually be applied correctly to our devices.

The attack works now :).
[ZenFone 2 Android Development] say99:
I looked through my commits today, and found that some how I reverted it. will be cool if you make a pull request to me with that patch :)
[ZenFone 2 Android Development] ruleh:
Sure, will do it.

It will take some time though.

Done
[ZenFone 2 Android Development] say99:
sweet :) Thanks mate, will update NH kernel tomorrow evening. I am coming back to CM now ;)
[ZenFone 2 Android Development] Thunder4444:
will that have xposed support?
[ZenFone 2 Android Development] xda26:
works for z00d????
[ZenFone 2 Android Development] Thunder4444:
i dont think so its for Z00A/Z008
[ZenFone 2 Android Development] xda26:
I'm running cyanogen 12.1
[ZenFone 2 Android Development] ruleh:
Does anyone else get a similar error when using the 'man in the middle framework'?

root@kali:/# mitmf --jskeylogger -i wlan0

-1670-01D3-1278-5A47BF6EE188 V:3.0
2016-05-28 15:00:54 [SMBserver] Config file parsed
Exception in thread NetCreds:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/share/mitmf/core/netcreds/NetCreds.py", line 52, in sniffer
sniff(iface=interface, prn=pkt_parser, filter="not host {}".format(myip), store=0)
File "/usr/lib/python2.7/dist-packages/scapy/sendrecv.py", line 561, in sniff
s = L2socket(type=ETH_P_ALL, *arg, **karg)
File "/usr/lib/python2.7/dist-packages/scapy/arch/linux.py", line 463, in __init__
attach_filter(self.ins, filter)
File "/usr/lib/python2.7/dist-packages/scapy/arch/linux.py", line 134, in attach_filter
bpfh = struct.pack("HI", nb, id(bpf)+20)
error: 'I' format requires 0 <= number <= 4294967295

This also happens with other options.

Edit:

Solved.

For whatever reason the if statement at that line didn't work properly. I took it out and only left the line concerning x86_64.

It works now.
[ZenFone 2 Android Development] ruleh:
If someone has problems with MPC (msfvenom payload creator), replace the file

/usr/bin/msfpc

with this one.

https://github.com/g0tmi1k/mpc/blob/master/mpc.sh

Make sure to name it msfpc and set the correct permissions (755?).

It turns out that the original one was empty for me.
[ZenFone 2 Android Development] say99:
no worries, I will get it included in the nethunter zip, I even need to get our device official ;)
[ZenFone 2 Android Development] Thunder4444:
Is there any other ways to copy paste? the select text is a bit of hard to control
[ZenFone 2 Android Development] morfor:
can i install this to my phone asus zenfone 2 laser ze500kl?
[ZenFone 2 Android Development] xdadevc:
Hi,

I tried a lot of combinations to install on clean CM13 (full wipe, no crypto, phone dedicated to this. It's a Z00AD). I can only get it to boot up to kernel 1.9OC but no kernel 2.0. Also, on kernel 1.9OC (and possibly others) it's a lot unstable. Random reboots from time to time. And no calls. If you try to call someone, the phone will reboot.

This was installed using official TWRP 3.0.2.

It's good to make this an official port, but there are a lot of rough edges to be polished before. It's not usable the way it is now ;)
[ZenFone 2 Android Development] ruleh:
Try installing it in this order:

flash rom

reboot

set selinux off on boot

flash v1.2

flash nethunter

flash v1.2

reboot

make sure selinux is still off

flash v1.8

reboot

make sure selinux is still off

flash v2.0

This is how I got it to work after some time.

However kernel v2.0 is VERY unstable and will reboot because of nearly everything (even enabling postgresql or some other kali services).

Also it doesn't work with xposed.

I would recommend v1.8 because it works with xposed and it runs very stable for me (1 reboot every 35hours roughly).

Also it doesn't crash when enabling services.
[ZenFone 2 Android Development] xdadevc:
calls not working. this is the dealbreaker. 1.8 is the same as 1.9OC for me. selinux is disabled. But makes no difference for me (i.e. enabled or disabled, the phone is unstable).

EDIT: I must say that I flashed the standard open gapps before nethunter. Could this be my issue ?
[ZenFone 2 Android Development] ruleh:
Hmm...Calls work fine for me.

If your network doesn't work at all, make sure that your IMEI is still ok.

Otherwise toggle, mobile data on and off (or wifi) and will fix the network for a few hours.

As for gapps, it might be the cause of the instability but I doubt it will have any effects on the calling.

But then again I don't use gapps so I don't know.

Did you enable hot plugging by any chance? It has the tendency to cause some very horrible crashes.

Also the chance of crashing is very high (for some reason) when installing the kali meta packages but gets lower over time.
[ZenFone 2 Android Development] xdadevc:
Yes imei is OK and hotplug is default. As I said, making a call will hard-reset the phone immediately. It's not a network issue but a (likely) kernel problem.

The gapps are usefull in you want to use the phone as a phone. Otherwise there are much cheaper devices to load kali and use it (raspi) and do real work vs toying around.

I don't mean to sound harsh, but just warn up ppl thinking this is stable while it's not.
[ZenFone 2 Android Development] myexcluded:
I've tried several y-cable and carries with wificard. It does not work simultaneously. when you first connect the power, only charge and does not detect wificard. when first connect the wificard and then the power will not charge and wificard work.
[ZenFone 2 Android Development] tito480:
i need a rom to use ? Or can i flash only the nethunter zip without ROM ?
[ZenFone 2 Android Development] nig0fl:
HID attack not work

[MENTION=7111568]say99[/MENTION] i saw in the github that you reverted the pull request that [MENTION=6324821]ruleh[/MENTION] have sent. Have some news about that NH kernel with HID Attack?

The NH Kernel have much diff with de pure flareM github? If not, i can use the patch that [MENTION=6324821]ruleh[/MENTION] sent and use in my nethunter?

Actually i'm using the NH Kernel v1.8, the only that works in my zf2 z00a.

Tks:good::D
[ZenFone 2 Android Development] ruleh:
hmm....I still see the patch as applied https://github.com/Zenfone2-Dev/kernel-FlareM/tree/cm-13.0.

I think the only difference between the normal flareM and nethunter is the .config used when building the kernel and a line disabling selinux in the flashable.zip.

At least that line was present up to v1.8 (didn't see it on the v2.0 kernel).

Nethunter kernel v1.8 works fine even with the hid patches on top (I am using that right now) but it crashes sometimes when trying to send weird stuff over the hid interface.

Don't try to

cat /dev/urandom > /dev/hidg0

because it WILL crash it after some time without getting things done.
[ZenFone 2 Android Development] theodric:
This bricks a freshly-flashed CM13 install. What am I doing wrong?
[ZenFone 2 Android Development] jade01win:
How to update the rom but the nethunter not lost on system?? How?? please if you know tell me about that thnkz ?
[ZenFone 2 Android Development] Tony.dll:
It doesn't work, same problem in nhterminal
[ZenFone 2 Android Development] say99:
guys, I will be uploading a minimal package for nethunter that you can use to get back, and new kernel update will be coming by tonight, with all the things requested.

And you can also fix things by making correct symlinks using some terminal or even TWRP terminal.

Those who want to compile NEthunter kernel, clone my FlareM sources locally, and use command ./buildzf2 <v.no> NH

i.e ./buildzf2 2.0 NH will compile a nethunter kernel, the main difference b/w the nethunter kernel and FlareM is selinux and a bunch of modification in defconfig for nethunter :)
[ZenFone 2 Android Development] Mr.FSK:
I can't install. I need help.

Add installation video please ??
[ZenFone 2 Android Development] say99:
its installed, ignore that error :)
[ZenFone 2 Android Development] Mr.FSK:
But not open. It remains on the loading screen.
[ZenFone 2 Android Development] say99:
did you flash the nethunter kernel v1.8 just after that?? if no, flash nethunter and just after that flash this kernel and all should be normal
[ZenFone 2 Android Development] Mr.FSK:
Alrigth I will try it.

---------- Post added at 03:39 PM ---------- Previous post was at 03:23 PM ----------

Thanks! İt's worked ??
[ZenFone 2 Android Development] Tony.dll:
How to fix that nhterminal error? i already tried that command on terminal, reinstalled nh, but it does not work :rolleyes:

I will try to use another kernel version like 1.5, im in v1.7

~Edit

i get it working on v1.8 kernel yaay thanks
[ZenFone 2 Android Development] gohanSS:
Once I Uninstall I keep getting the red path errors every time I flash something. Any way to clean that?
[ZenFone 2 Android Development] aniruddha007:
#Say99 I'm on RR 5.7 tried nh v1.6 d2tw but didn't work for me any other that could work with RR d2tw
[ZenFone 2 Android Development] MK73DS:
Does it need a separate USB WiFi adapter or does the internal WiFi card supports monitor and injection mode ?

Thank you for replying :)
[ZenFone 2 Android Development] edu_pozzolini:
you need a external adapter.
[ZenFone 2 Android Development] MK73DS:
Okay thank you very much for your answer :)
[ZenFone 2 Android Development] ruleh:
Something for those who don't want to backup the whole chroot install when doing a twrp backup:

move the folder /data/local/nhsystem/kali-armhf/ to /data/media/0/

make a symlink in /data/local/nhsystem/ to /data/media/0/kali-armhf/

Check the following lines for any spelling and other mistakes or you will destroy something.

mv /data/local/nhsystem/kali-armhf /data/media/0/
ln -s /data/media/0/kali-armhf /data/local/nhsystem/

Also make sure that /data/media and /data/media/0 have 751 permissions

chmod 751 /data/media
chmod 751 /data/media/0

This way the chroot still works fine but won't be backed up when doing a /data backup.

There are probably other side effects but I have experienced none so far.
[ZenFone 2 Android Development] say99:
will be updating it today :) thanks for the wait guys, and even a new kernel for NH will be released today :) more stability now :)
[ZenFone 2 Android Development] aniruddha007:
Hope with new NH kernel dt2w will work on RR
[ZenFone 2 Android Development] say99:
on which RR build are you??

maybe I think you should update to the latest one that I uploaded today and after that Flash everything I update today ;)
[ZenFone 2 Android Development] Thunder4444:
Xposed support kernal?
[ZenFone 2 Android Development] say99:
yes, been working on it :)

https://github.com/sayeed99/android_kernel_asus_moorefield
[ZenFone 2 Android Development] aniruddha007:
RR 5.7.0 18062016 will update it and report if problem exist
[ZenFone 2 Android Development] aniruddha007:
Ur awesome developer everything works perfect :)
[ZenFone 2 Android Development] say99:
guys , I have a new minimal kernel for nethunter as promised, but I havent tested it till now.

if some one wanna test it here they go : https://drive.google.com/file/d/0B2DVhZKJ05fLV3NwZUNRcUQtTzA/view?usp=sharing

xposed works ;)
[ZenFone 2 Android Development] ruleh:
It works.

Boots up correctly and runs fine on cm13 with xposed.

I didn't get a single bootloop in the 8 reboots I did. (Usually I have 60% bootloops.)

There are no crashes or anything similar in the few minutes that I have it running.

It is also better at detecting my usb wifi chip (but still not really usable...yet).

The hid-keyboard also works better than on 1.8 (with the patch applied).

Though the lack of cpu governors and hotplugging is a bit disappointing.

(But then again, a properly tuned interactive governor is the best and it is supposed to be a minimal kernel. Also hotplugging was always a bit hit or miss.)

Overall a very good and stable kernel (for now at least) :).
[ZenFone 2 Android Development] say99:
thanks for testing :) I am still working on it, gave you guys the link just cause I wanted you guys to have a stable system. Will update it more and more :)
[ZenFone 2 Android Development] ruleh:
Can you enable the following configs in some builds?

CONFIG_VGA_CONSOLE
CONFIG_FRAMEBUFFER_CONSOLE
CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY

And maybe this one.

CONFIG_FB_VESA

The first 3 allow the use of a console while booting up which can be used to print debug logs or as a standard console in case of a boot loop.

The 4th one makes it much easier to mess with some kernel modules that need it.
[ZenFone 2 Android Development] say99:
I am going to separate net hunter kernel :) will do this tomorrow morning, right now I need to update RR builds :)
[ZenFone 2 Android Development] troy5890:
Question: I installed CM13 and flashed Flare 17.6. Do I need to flash the flare 1.9 oc after flashing the nethunter installer (732 mb)? I don't know if I should've flashed flare 17.6 so soon
[ZenFone 2 Android Development] aniruddha007:
no flash nh kernel 1.8 or mini