Skip to content
This repository has been archived by the owner on Apr 25, 2019. It is now read-only.

Edit: New Situation, clean install went fine, App and several services, like terminal, keep crashing.. #1276

Open
ThirstyThursten opened this issue Mar 26, 2019 · 20 comments

Comments

@ThirstyThursten
Copy link

Device:

Nexus 5 (/hammerhead)

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

Marshmallow with Nethunter 3.20 or 2017.x (not sure)

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

Downloaded Nightly build 2019.1 Hammerhead Marshmallow and 2019.1 generic full armhf.

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

Whut? See issue..

Issue:

So I have a previous installation of nethunter but it was outdated, wanted to update with new recent image.

Flashes went successful, at first try flashed generic-kali-full then hammerhead-kernel-marshmallow, flashed successful, but upon reboot a lot of stuff missing.. no Nethunter app, downloaded it from github releases (nethunter.apk 2019.1)
Tried installing it, no juice.. "X App not installed"

After that tried same procedure but first kernel then full kalifs, still lot of stuff missing and manual installation of app didn't work..

What can I do?
Sorry if it isn't a clear explanation, please ask if anything is unclear!
Thanks in advance!

@yesimxev
Copy link

yesimxev commented Mar 26, 2019

What I definitely know that best is to install NetHunter onto a clean install with TWRP or NetHunter-LRT. However, I did similar, and realised that there are a few ways:
If you want a fresh (reinstalled) chroot, best to uninstall the chroot from NH app, then uninstall the app and NH terminal. If you install the 2019 generic kalifs then everything should be installed. Note that the 2019.2 branch is not merged into master yet so the 2 NH apps might be still needed.

If you want to update chroot, best to use
apt-get update && apt-get dist-upgrade
Note NH apps still need to be uninstalled and updated ones reinstalled.

Both ways ensure you have custom commands backed up if there was any!

In some cases it is useful/enough to create an uninstaller and updater from here. Use the uninstaller if you need to, then reinstall everything. Otherwise, try the updater from below, if you updated chroot and need the apps done too. Might not work on some devices though.

git clone https://github.com/offensive-security/kali-nethunter.git -b 2019.2 kali-nethunter
cd kali-nethunter/nethunter-installer
./build.py -u
./build.py -g armhf -su

P.S. your old nethunter kernel is not modified, unless you reinstalled your OS. If you need to update the kernel, it can be done anytime after OS is updated

@ThirstyThursten
Copy link
Author

OKAY EDDIITT:: NEW SITUATION::

So I did a totally clean install of CM14.1 on my Nexus 5 Hamerhead, works fine, flashed Kalifs, and then flashed kernel for nougat. From the nightly build in the 2019_3 folder.

All went well and succesful BUT when I boot into my new system, it looks fine but when I try to do something in the Nethunter app it kinda crashes.

VNC manager setup goes to terminal, terminal keeps crashing..
If I try the DeAuth option from the menu with an OTG wlan adapter that is compatble my phone just reboots..

Please help I want this to work so bad, I've been waiting for a Nethunter update for waaaay too long man! =)

@ThirstyThursten ThirstyThursten changed the title Reflash, succesful, no nethunter app, manual install fails Edit: New Situation, clean install went fine, App and several services, like terminal, keep crashing.. Mar 27, 2019
@0E800
Copy link

0E800 commented Mar 27, 2019 via email

@ThirstyThursten
Copy link
Author

ThirstyThursten commented Mar 27, 2019

Have you tried just flashing the generic kernel and then flash magisk instead of using SuperSU and then download the Nethunter Magisk module and the wireless drivers magisk module?

On Wed, Mar 27, 2019, 3:01 AM ThirstyThursten @.***> wrote: OKAY EDDIITT:: NEW SITUATION:: So I did a totally clean install of CM14.1 on my Nexus 5 Hamerhead, works fine, flashed Kalifs, and then flashed kernel for nougat. From the nightly build in the 2019_3 folder. All went well and succesful BUT when I boot into my new system, it looks fine but when I try to do something in the Nethunter app it kinda crashes. VNC manager setup goes to terminal, terminal keeps crashing.. If I try the DeAuth option from the menu with an OTG wlan adapter that is compatble my phone just reboots.. Please help I want this to work so bad, I've been waiting for a Nethunter update for waaaay too long man! =) — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#1276 (comment)>, or mute the thread https://github.com/notifications/unsubscribe-auth/AGUyhfLte5BFKh7AMreChBfY02TwwnUWks5va0FdgaJpZM4cMXNj .

What? I have no idea what you mean with flashing magisk or supersu.. That is included in the kalifs zip right?

Or am I missing a step? Please do elaborate! =)

Edit:

I downloadedthe following:

  • CM 14.1 Nougat from somewhere on XDA
  • OpenGApps from official source

from here :

  • kernel-nethunter-hammerhead-nougat-2019.03-13-0514.zip
  • nethunter-generic-armhf-kalifs-full-rolling-2019.03-13-0514.zip

Right now I have done the following:

  • TWRP is already installed
  • Wiped everything except internal storage partition
  • Flashed an official CM14.1 image designed for the Nexus 5 Hammerhead
  • Flashed OpenGApps nano
  • Booted into system and finished setup of google account wizard etc.
  • Back to TWRP and first flashed nethunter-generic-armhf-kalifs-full-rolling-2019.03-13-0514.zip
  • Then immediatly flashed kernel-nethunter-hammerhead-nougat-2019.03-13-0514.zip

Booted back into system, opened Nethunter App and gave it all the permissions it asked.
But then the above described problems occured..

@0E800
Copy link

0E800 commented Mar 27, 2019

I have a Nexus 5.
I'll test it and give you my recipe for success .

@0E800
Copy link

0E800 commented Mar 27, 2019 via email

@yesimxev
Copy link

My instructions had SuperSU included in the nethunter generic installer zip, but yes. SuperSu and Magisk is needed for root access. To be installed after Android, before Nethunter

@ThirstyThursten
Copy link
Author

ThirstyThursten commented Mar 28, 2019

Buddha say: Not wise to be scuba diver if not first learn how to swim. On Wed, Mar 27, 2019, 3:20 AM ThirstyThursten notifications@github.com wrote:

Sorry, not quite sure what you mean?

My instructions had SuperSU included in the nethunter generic installer zip, but yes. SuperSu and Magisk is needed for root access. To be installed after Android, before Nethunter

Okay, so if I'd start over how would you propose I proceed? Where do I get them etc.?

@yesimxev
Copy link

yesimxev commented Mar 28, 2019

Your last comment about your steps are fine. But is there SuperSU installed?
If not, you can either flash it with TWRP
https://download.chainfire.eu/1220/SuperSU/SR5-SuperSU-v2.82-SR5-20171001224502.zip
Apps might need to be reinstalled.

Or build an updater:

git clone https://github.com/offensive-security/kali-nethunter.git -b 2019.2 kali-nethunter
cd kali-nethunter/nethunter-installer
./build.py -g armhf -su

and install the zip with TWRP

I'm not sure how to do with Magisk

@ThirstyThursten
Copy link
Author

ThirstyThursten commented Mar 29, 2019

Your last comment about your steps are fine. But is there SuperSU installed?
If not, you can either flash it with TWRP
https://download.chainfire.eu/1220/SuperSU/SR5-SuperSU-v2.82-SR5-20171001224502.zip
Apps might need to be reinstalled.

Or build an updater:

git clone https://github.com/offensive-security/kali-nethunter.git -b 2019.2 kali-nethunter
cd kali-nethunter/nethunter-installer
./build.py -g armhf -su

and install the zip with TWRP

I'm not sure how to do with Magisk

Hi, thanks for the tip! I'm trying to do the build part now, but it turns up with an error on walrus apk. Error 404
That path it's trying to follow doesn't exist anymore, I've checked the repo of walrus..
Is there a work around, or is it located somewhere else, and can I change that path in the build.py or something? (I do know a little python)

Thanks in advance!

Edit: typos..

@yesimxev
Copy link

yesimxev commented Mar 29, 2019

I think you can remove that line from build.py for now, seems like there are no .apks in that repo.
Can get it from GooglePlay as it says on the github readme

@ThirstyThursten
Copy link
Author

Nice that went through without any errors! So I can just flash this with TWRP over my existing image? Imma try that now!
Thanks for the help! Great community here! =)
Will report back and close if it worked in a bit! =)

@yesimxev
Copy link

Yup, try it. It would basically install SuperSU, then the apps. Make sure you delete them first to avoid any conflicts

@ThirstyThursten
Copy link
Author

ThirstyThursten commented Mar 29, 2019

Okay almost fine.. xD
Now I'm missing the Terminal application.. I tried simply to do an Nmap through the NetHunter app and it said "Failed to lauch intent. Install android terminal"
I saw in the terminal on my pc when I did the build.py command you stated, that a certain Term-nh.apk was added. I think that's the Terminal but it didn't actually install it I think.. Can I get the apk somewhere and install it through android?

Thanks again for all the help! =)

EDIT:
If I try to install the TM-nethunter.apk from the 2019.2 branch from here and try to install it through Android, it doesn't work, it says it confilcts with an existing package..

What now?

@ThirstyThursten
Copy link
Author

So I'm thinking of building the whole generic kalifs thing from scratch.. I've read in the build.py it's possible with several different parameters.

So if I'd start again from scratch with the process of wiping, android flashing etc. But with my own build version of nethunter 2019.2 is there anything I should take in to account? Or any tips for a first time builder?

@yesimxev
Copy link

I think you are missing from SuperSU or busybox. Anyway you don't really need to build if you don't have special requirements. Make it running first, then easy to modify the kernel if needed. Install android, gapps if needed, do initial setup. Inatall SuperSU - probably the unsuccesful step with first try (or Magisk if you would like that, but sure how it works).
Install latest kalifs, and kernel from build.nethunter.com/nightly you should be good to go to play with latest apks and modifications

@ThirstyThursten
Copy link
Author

Okay I did a clean install like you suggested! It is rooted, it has all the apps, terminal is working BUT... yes always a but I'm sorry xD
Terminal by itself works, but if the Nethunter app does something "through" the terminal like the DeAuth functions at the bottom of the NetHunter app menu, it doesn't work, but duckhunter HID does work..
In the DeAuth when I click scan networks (I do have confirmed my otg wifi adapter is recognized and compatible as promiscious mode) it says "Nethunter has been granted superuser rights for interactive shell" But then just nothing happens..

Any ideas?
And again thanks for all the help so far!
And if I decide to run that update I build earlier again, which apps do I need to remove/uninstall manually?

@yesimxev
Copy link

yesimxev commented Apr 1, 2019

Hmm not sure about the that, should be easy to solve by searching in closed issues. You're welcome, glad to help. To update chroot, just use
apt-get update && apt-get dist-upgrade
To update apps, make sure you backup custom commands. Delete the apps and install them manually, or by making an updater with nethunter-installer. Be careful, the latest NH app is missing a line to mount system so don't update until the next commit

@ThirstyThursten
Copy link
Author

Hi!
I've been reading around, found another issue threat from the Nethunter App But that is from late 2017.. So it's super old..

There must be more people having this problem..

Would it help if I build my own zips? As in build my own kernel and fs? Maybe the app? Through the SDK options somewhere on the wiki?

And could you please if I want to use an update flash zip. Like I build, (see some posts back),
Could you please tell me which specific apps I should uninstall before updating? Like NetHunter App, Terminal app etc.?

Thanks again! It is somehow working kinda now, but I want that DeAuth option so bad! =P

@0E800
Copy link

0E800 commented Apr 5, 2019

Here is current Nethunter.apk and NH-Term.apk
apps.zip

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants