offensive-security / kali-nethunter

The Kali NetHunter Project
https://github.com/offensive-security/kali-nethunter/wiki
3.51k stars 889 forks source link

System reboot when activate hotspot #565

Closed jslon closed 5 years ago

jslon commented 8 years ago

Device: One Plus Two

OS version (KitKat/Lollipop/Marshmallow/Nougat):

Android 6.0.1 (Marshmallow) OxygenOS 3.0.2

Built from repo (date and build command) or downloaded from website (links):

nethunter-oos3-6.0.1-20160811-full https://www.androidfilehost.com/?fid=24591000424954117

Output of cat /proc/version in adb shell or NetHunter Terminal:

Linux Version 3.10.84kali+ (root@nhbuild-box) (gcc version 4.9.x-google 20140827 (prerelease) (GCC) ) #4 SMP PREEMPT Sat Aug 6 16:51:16 CDT 2016

Issue:

The system reboots when start a hotspot or when trying to execute airmon-ng start wlan0 or using Wifite.

seanwlk commented 8 years ago

Do you actually have an external Wireless adaptor connected through OTG or you're trying to use the built-in card?

jslon commented 8 years ago

For the moment I'm using the built-in card. I know it doesn't support monitor mode so I shouldn't use airmon-ng but I'm not able to create a hotspot without the system crashing.

seanwlk commented 8 years ago

Actually you can't use the integrated one at all AFAIK. You shluld use a dongle via OTG.

jslon commented 8 years ago

It doesn't make sense, is an OS common option, with the normal OS I'm able to do it. The system is also crashing when I'm using the "Bad USB MITM Attack" of the Nethunter app. At the moment I start the attack and plug the USB, the system crashes. Any idea why?

webcoderz commented 8 years ago

Incomplete installation maybe ? Did u verify sha1sums once the install completed?

On Sep 11, 2016 4:36 PM, "José Slon" notifications@github.com wrote:

It doesn't make sense, is an OS common option, with the normal OS I'm able to do it. The system is also crashing when I'm using the "Bad USB MITM Attack" of the Nethunter app. At the moment I start the attack and plug the USB, the system crashes. Any idea why?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/offensive-security/kali-nethunter/issues/565#issuecomment-246206305, or mute the thread https://github.com/notifications/unsubscribe-auth/AS9ogQRQLRZqS-G0R2Ex-EnnebIB7Frqks5qpHRAgaJpZM4J4YIk .

jslon commented 8 years ago

No I didn't. I verified the SHA1sums after downloading it but not after the installation. How should I verify them?

webcoderz commented 8 years ago

Sorry I mispoke I meant after download. Hm so file integriry was fine. I believe there is a similar issue with the kernel for the OP3 open at this very moment from the other day that was causing almost the same problem.. @binkybear I think its issue #489 its quite similar?

On Sep 11, 2016 4:41 PM, "José Slon" notifications@github.com wrote:

No I didn't. I verified the SHA1sums after downloading it but not after the installation. How should I verify them?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/offensive-security/kali-nethunter/issues/565#issuecomment-246206580, or mute the thread https://github.com/notifications/unsubscribe-auth/AS9ogVvMDJ6ymtML92yYQ_7nLvgRnHhgks5qpHV6gaJpZM4J4YIk .

webcoderz commented 8 years ago

they were having issues with the OP3 kernel crashing yesterday due to an update to how the usb was picked up and had to revert the kernel to before the update @binkybear perhaps the problems lies elsewhere and perhaps bothissues are correlated.

On Sep 11, 2016 7:02 PM, "cody webb" cody.l.webb@gmail.com wrote:

Sorry I mispoke I meant after download. Hm so file integriry was fine. I believe there is a similar issue with the kernel for the OP3 open at this very moment from the other day that was causing almost the same problem.. @binkybear I think its issue #489 its quite similar?

On Sep 11, 2016 4:41 PM, "José Slon" notifications@github.com wrote:

No I didn't. I verified the SHA1sums after downloading it but not after the installation. How should I verify them?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/offensive-security/kali-nethunter/issues/565#issuecomment-246206580, or mute the thread https://github.com/notifications/unsubscribe-auth/AS9ogVvMDJ6ymtML92yYQ_7nLvgRnHhgks5qpHV6gaJpZM4J4YIk .

binkybear commented 8 years ago

@akrolla - This is for the OnePlus2.

I pushed a kernel update for 3.1 for OxygenOS and have it currently installed. Hopefully that should fix this issue.

webcoderz commented 8 years ago

Ahh roger that I have the nexus I'm thinking of upgrading to OP3 do you guys recommend that over the nexus ?

On Sep 11, 2016 7:24 PM, "binkybear" notifications@github.com wrote:

@akrolla https://github.com/akrolla - This is for the OnePlus2.

I pushed a kernel update for 3.1 for OxygenOS and have it currently installed. Hopefully that should fix this issue.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/offensive-security/kali-nethunter/issues/565#issuecomment-246214971, or mute the thread https://github.com/notifications/unsubscribe-auth/AS9ogVmVdLsxiVEifpVm1DVp4heBvychks5qpJvJgaJpZM4J4YIk .

jslon commented 8 years ago

@binkybear Sorry about my ignorance, but where can I download that update?

binkybear commented 8 years ago

@jslon - You can build it from this repo. I've uploaded one for you:

https://transfer.sh/nfQj4/kernel-nethunter-oneplus2oos-marshmallow-20160912-003744.zip

jslon commented 8 years ago

I'll try it, thank you very much!

jslon commented 8 years ago

Just have to install it with TWRP or first I have to wipe the phone?

binkybear commented 8 years ago

If you have TWRP and latest oxygen os just flash. If you don't have latest, you may want to start fresh.

jslon commented 8 years ago

ok thanks!

webcoderz commented 8 years ago

On the link on the main page is to the main app apk which is here https://images.offensive-security.com/latest.apk all the links are available in the documentation section also.

On Sep 11, 2016 7:44 PM, "José Slon" notifications@github.com wrote:

ok thanks!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/offensive-security/kali-nethunter/issues/565#issuecomment-246216136, or mute the thread https://github.com/notifications/unsubscribe-auth/AS9ogTH7DOHOttE906lKvcgs4UpsjYQIks5qpKBjgaJpZM4J4YIk .

jslon commented 8 years ago

@binkybear I'm sorry for bothering you but I'm a beginner at the Android world and don't really understand much about how this works. There is an update for the OxygenOS, so I'm trying to install it before flashing the NetHunter, but when I download it and press install the system reboots and boot on TWRP directly, I don't know if this is supposed to happen. Actually I have OxygenOS 3.0.2. How can I update the system before flashing NH? Once updated, for flashing it I just have to move the NH image to my phone and press install on TWRP, am I right?

webcoderz commented 8 years ago

Boot into twrp and then install kernel

On Sep 11, 2016 8:11 PM, "José Slon" notifications@github.com wrote:

@binkybear https://github.com/binkybear I'm sorry for bothering you but I'm a beginner at the Android world and don't really understand much about how this works. There is an update for the OxygenOS, so I'm trying to install it before flashing the NetHunter, but when I download it and press install the system reboots and boot on TWRP directly, I don't know if this is supposed to happen. Actually I have OxygenOS 3.0.2. How can I update the system before flashing NH? Once updated, for flashing it I just have to move the NH image to my phone and press install on TWRP, am I right?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/offensive-security/kali-nethunter/issues/565#issuecomment-246217972, or mute the thread https://github.com/notifications/unsubscribe-auth/AS9ogR7iFLw8FesdwF5VMjGBC5n_rCV4ks5qpKbPgaJpZM4J4YIk .

webcoderz commented 8 years ago

My bad misread that, once installed it boots into multirom and u choose which kernel to run. Which tour oxygen kernel shpuld be the internal kernel

On Sep 11, 2016 8:12 PM, "cody webb" cody.l.webb@gmail.com wrote:

Boot into twrp and then install kernel

On Sep 11, 2016 8:11 PM, "José Slon" notifications@github.com wrote:

@binkybear https://github.com/binkybear I'm sorry for bothering you but I'm a beginner at the Android world and don't really understand much about how this works. There is an update for the OxygenOS, so I'm trying to install it before flashing the NetHunter, but when I download it and press install the system reboots and boot on TWRP directly, I don't know if this is supposed to happen. Actually I have OxygenOS 3.0.2. How can I update the system before flashing NH? Once updated, for flashing it I just have to move the NH image to my phone and press install on TWRP, am I right?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/offensive-security/kali-nethunter/issues/565#issuecomment-246217972, or mute the thread https://github.com/notifications/unsubscribe-auth/AS9ogR7iFLw8FesdwF5VMjGBC5n_rCV4ks5qpKbPgaJpZM4J4YIk .

webcoderz commented 8 years ago

Its alright we are all noobs at one point:) once I got the phone rooted and twrp and the kernelinstalled I saved the nethunter zip file onto my sd card and installed it through twro. I installed kernel separately. To help relieve stress on the aroma installer included as it tends to lock up installing both the kernel and chroot.

On Sep 11, 2016 8:13 PM, "cody webb" cody.l.webb@gmail.com wrote:

My bad misread that, once installed it boots into multirom and u choose which kernel to run. Which tour oxygen kernel shpuld be the internal kernel

On Sep 11, 2016 8:12 PM, "cody webb" cody.l.webb@gmail.com wrote:

Boot into twrp and then install kernel

On Sep 11, 2016 8:11 PM, "José Slon" notifications@github.com wrote:

@binkybear https://github.com/binkybear I'm sorry for bothering you but I'm a beginner at the Android world and don't really understand much about how this works. There is an update for the OxygenOS, so I'm trying to install it before flashing the NetHunter, but when I download it and press install the system reboots and boot on TWRP directly, I don't know if this is supposed to happen. Actually I have OxygenOS 3.0.2. How can I update the system before flashing NH? Once updated, for flashing it I just have to move the NH image to my phone and press install on TWRP, am I right?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/offensive-security/kali-nethunter/issues/565#issuecomment-246217972, or mute the thread https://github.com/notifications/unsubscribe-auth/AS9ogR7iFLw8FesdwF5VMjGBC5n_rCV4ks5qpKbPgaJpZM4J4YIk .

webcoderz commented 8 years ago

My typos are terrible. Sorry \ installed it through twrp.

On Sep 11, 2016 8:15 PM, "cody webb" cody.l.webb@gmail.com wrote:

Its alright we are all noobs at one point:) once I got the phone rooted and twrp and the kernelinstalled I saved the nethunter zip file onto my sd card and installed it through twro. I installed kernel separately. To help relieve stress on the aroma installer included as it tends to lock up installing both the kernel and chroot.

On Sep 11, 2016 8:13 PM, "cody webb" cody.l.webb@gmail.com wrote:

My bad misread that, once installed it boots into multirom and u choose which kernel to run. Which tour oxygen kernel shpuld be the internal kernel

On Sep 11, 2016 8:12 PM, "cody webb" cody.l.webb@gmail.com wrote:

Boot into twrp and then install kernel

On Sep 11, 2016 8:11 PM, "José Slon" notifications@github.com wrote:

@binkybear https://github.com/binkybear I'm sorry for bothering you but I'm a beginner at the Android world and don't really understand much about how this works. There is an update for the OxygenOS, so I'm trying to install it before flashing the NetHunter, but when I download it and press install the system reboots and boot on TWRP directly, I don't know if this is supposed to happen. Actually I have OxygenOS 3.0.2. How can I update the system before flashing NH? Once updated, for flashing it I just have to move the NH image to my phone and press install on TWRP, am I right?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/offensive-security/kali-nethunter/issues/565#issuecomment-246217972, or mute the thread https://github.com/notifications/unsubscribe-auth/AS9ogR7iFLw8FesdwF5VMjGBC5n_rCV4ks5qpKbPgaJpZM4J4YIk .

jslon commented 8 years ago

I tried flashing the new NetHunter image @binkybear gave to me but the problem wasn't resolved, in fact, the terminal is crashing when i select "kali" and all the NetHunter options (from the NetHunter app) are disabled. I also tried building a new OnePlus2 image and flashing it but the problem persists. I'm not able to update my Oxygen version to 3.1 because after downloading it and pressing install the phone reboots into TWRP instead of installing the update. Right now I'm trapped. I was wondering if you can guide me how to wipe everything off and start fresh again. Thank you very much.

binkybear commented 8 years ago
jslon commented 8 years ago

Ok, I did it. Now the NetHunter app is working fine, as well the terminal. But now LTE is having issues (have the ! sign) and the rear camera is not focusing, and again, the system crashes when trying to create a hotspot or enabling the airplane mode. :/

binkybear commented 8 years ago

I see error now also. I will update kernel and see if update fixes.

binkybear commented 8 years ago

So it appears I need to include modules with kernel:

https://transfer.sh/ewYh5/kernel-nethunter-oneplus2oos-marshmallow-20160915-155247.zip

I tested on mine (working now), please test on yours.

jslon commented 8 years ago

I flashed it and now is working! If I found any issue I'll let you know. Thank you very much!

jslon commented 8 years ago

Hello @binkybear, I just realized that after flashing the last image you gave me the front camera is not being detected.