Open naturalstate opened 5 years ago
@naturalstate
You are doing too much.
You just need to manually install the Kali Archive Keyring
Type below commands in NH terminal. Immediately after you install the chroot. Do not run apt get update until you do below first.
wget https://http.kali.org/kali/pool/main/k/kali-archive-keyring/kali-archive-keyring_2018.1_all.deb
dpkg -i 'kali-archive-keyring_2018.1_all.deb`
apt update && apt upgrade
BTW - I am making a updated ROM and Kernel for N7 2013. Possibly I can use you as a tester?
Thanks for the help. I tired running these commands on my existing install, which may already be messed up. The first one worked fine. But the second one (dpkg) has error. Is that last part correct? the .1all.deb ? I notice that is different than the first command.
I'm going to reinstall nethunter. And try these commands first. And based on your explanation, I won't modify the sources.list file.
Yes, I would be happy to test your ROM.
So I just reinstalled nethunter. I ran the wget successfully. And then the dpkg successfully. But when I run apt update && apt upgrade I get 404 errors. If I go to the nethunter app and try to add metapackages I get a "failed to fetch..." It does at first, list a bunch of packages, so I thought it was going to work at first, but then fails.
So I have a problem with my sources file, yes?
My source file is: deb http://http.kali.org/kali sana main non-free contrib
deb-src http://security.kali.org/ sana/updates main contrib non-free
Sana doesn't work anymore right? So what do I need to do to fix my sources file?
Thank you so much for help, really butting my head against a wall here.
Doh! Sorry about that. In the future, try using the [Tab] key to autocomplete the file names. That my bad though, you are correct, dpkg would not be able to install a package if the filename is typed incorrectly.
dpkg kali-[Tab] would have autocomplete the filename and saved you a few finger jabs.
I corrected the instruction.
Theres another command I am missing. It corrects the sources. Ill get you the source or the command.
One moment.
While I locate info, may you try apt dist-upgrade
Try replacing your sources.lst with this:
https://http.kali.org/kali kali-rolling main non-free contrib
After changing my sources to the official kali sources listed on their site, running apt update && apt upgrade appears to be working! And I see it's referencing armhf. Not sure I saw that before, so that seems like the right track.
But right before I tried that, the nethunter app to download metapackages had 404, it wouldn't even list the packages that it did earlier before I change the sources.list. So it seems only one or the other works (nethunter app metapackages download or apt get / upgrade)
It's on 18% now, and looks like it's going to take a while. I wonder if the nethunter app will work after this.
If the nethunter app to install metapackages doesn't work, I'm wondering if I can use something like this to install specific metapackages? I'm just a little unclear if that's going to install them like the nethunter app would. apt update && apt install kali-linux-sdr
Your using and old build. You should replace the kalifs-full.xz with a more recent build. You will need to also download newer builds of term-nh.apk and nethunter.apk
Check the issues, there are similar users with problems.. the apk files are pretty much universal, you just want the more current ones.
I am banging my head against the keyboard trying to build a Pie kernel for the Pixel XL and I am unable to get everything within the size of the boot partition and I am frustrated so I cant really do the leg work, but google and specific but few words you will find your way.
I need a beer.
Ill be back, just dont give up and record your errors and ill try to help. I may also have a working Oreo build you can use.
google: xda deb kernel rom
Look through the available roms ... you will probably chose Unlegacy as its still actively updated and mostly current with security updates.
Install the Rom, and then try installing one of the generic kernels or I have a few, not sure if I got HID working but I can add it.
3 parts you need. Well 4 if you count TWRP.
Rom Kernel + SU (maybe Magisk works by now) Apps
Dont try troubleshooting the debian environment until you have installed the more current nethunter and term-nh apps. You are focusing on the engine, but you should be checking the gasoline and oil.
Using the chroot nethunter app to install the meta packages is the same as apt install kali-wireless-meta [or however its named] from within Kali chroot environment that you access from term-nh. True only when your nethunter and terminal are updated to match the kalifs
Ok. You've given me a lot to research. Thanks
I didn't know that I could have Oreo and run nethunter on the Nexus 7. I mean, on the nethunter download page the only option available for Nexus 7 is Marshmallow & lolipop. So I just assumed that's what I would need.
My updates are still going. So I'm going to wait to see what happens first.
Really appreciate the help!
I broke out my N7, I got a few 2012 and a 2013 model. I really want to get the 2012 updated but its limited and the majority of my developemnt device are cracked screened and some even require mouse and keyboard hook ups in order to navigate.
Ultimately my personal aim is to jailbreak peoples dependency of requiring a display on a smart device. Its like flying cars. Its possible, but we still stuck on 4 wheels. Having no display on our smart devices forces us to interact with the device in a way that doesn't alter human evolution into having slouched neck-bent spinal cords. Forces manufactures to realize we are no longer toddlers amused by buttons and the satisfaction of pressing them. Provides forward development into AI and maybe Alexa and Hey Google will grow a pair since most of our interaction with the device/phone will be auditory, verbal, gesture, possibly the display becomes a pressure sensitive pad that responds to pressure / time to operate.
Apologies, the 40oz got me sided tracked with my crusade to return honor to the discarded devices that are not worthless.
tl:dr,
I am going to test my builds on my N7-213 wifi and upload a working build that hopefully will be well received.
Well I can test something if you want.
Enjoy the 40! haha
So the updates finally finished. Although they cancelled at one point with: E: Sub-process /usr/bin/dpkg returned an error code (1) I ran apt-get update && apt-get upgrade, and they finished after that.
But when I tried to install metapackages via nethunter app, it found a bunch of packages, but then has a ton of "failed to fetch".
So what should I do? Upgrade to oreo? But then, what nethunter iso do I use? Because there aren't any listed for N7 2013 for oreo?
Don't erase yet. I. Uploading newer apps
Uninstall nethunter apk and term-nh all and vncviewer.
Then download and unzip apps zip and install in order.
Termnh Vncviewer Open termnh one time and give SuperSU perms and make sure you can get to Kali chroot.
Then install nethunter apk and see if any change .
https://drive.google.com/file/d/1u6Zye2CpVeUlf6OcqnORyIdNXykr6NBb/view?usp=drivesdk Apps.zip from magisk nethunter mod 3.2019
Out doing laundry when I get home I'll upload some Oreo kernels
Thanks, but the link isn't working. It says it violates google's TOS.
Okay I'll try again and put a password on it .
https://drive.google.com/file/d/1u6Zye2CpVeUlf6OcqnORyIdNXykr6NBb/view?usp=drivesdk
The password is KALI [except its all lowercase and the i is a one ]
Thanks. I installed everything following your instructions. But I'm still having issues installing metapackages. The termnh crashed the first time that I launched it, similar to what I experienced when I first installed. But the second time it worked. But when I go to Nethunter app and try to install a metapackage like wifi tools, it says what packages it will install, and then says what packages will be installed, removed and upgraded and then there a bunch of "failed to to fetch" and temporary failure of kali.org. I then tried to ping google.com in that same terminal session and it also fails. Weird. That's gotta be part of the problem right?
If I open another terminal, I can successfully ping google and run apt-get update / upgrade.
Ideas? Should I just start over and try to get Oreo and a later nethunter version?
I also just tried to install a metapackage using apt update && apt install kali-linux-wireless and it fails with "failure to resolve".
You have more than one source.lst possibly .
Check sources .LST and also check sources.list.d/ any files in there to make sure. Are you completely wiping your device between builds and restoring to stock before flashing again?
You may have more than one chroot?
On Wed, Mar 20, 2019, 10:23 PM naturalstate notifications@github.com wrote:
Thanks. I installed everything following your instructions. But I'm still having issues installing metapackages. The termnh crashed the first time that I launched it, similar to what I experienced when I first installed. But the second time it worked. But when I go to Nethunter app and try to install a metapackage like wifi tools, it says what packages it will install, and then says what packages will be installed, removed and upgraded and then there a bunch of "failed to to fetch" and temporary failure of kali.org. I then tried to ping google.com in that same terminal session and it also fails. Weird. That's gotta be part of the problem right?
If I open another terminal, I can successfully ping google and run apt-get update / upgrade.
Ideas? Should I just start over and try to get Oreo and a later nethunter version?
ā You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/offensive-security/kali-nethunter/issues/1272#issuecomment-475116430, or mute the thread https://github.com/notifications/unsubscribe-auth/AGUyhaHlwU0siwaASGJyaBMuhwZdL1Olks5vYxdagaJpZM4cAKsI .
Gimme a moment I'm getting my kid to bed and then I gotta search through my USB collection for my n7 files.
I'll do all the legwork and then upload the build and kernel.
Good job sticking with it. Its not insanity because you are making lateral progress even if it seems like quick sand
On Wed, Mar 20, 2019, 10:27 PM naturalstate notifications@github.com wrote:
I also just tried to install a metapackage using apt update && apt install kali-linux-wireless and it fails with "failure to resolve".
ā You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/offensive-security/kali-nethunter/issues/1272#issuecomment-475116841, or mute the thread https://github.com/notifications/unsubscribe-auth/AGUyhf9G-IcOHf5TFTYlzgGdJLGkp5owks5vYxgmgaJpZM4cAKsI .
No, maybe I'm not. I'm just rebooting to TWRP recovery and reinstalling the nethunter image. That might make sense that I could have 2 source files. I'm really new to android roms and flashing and all of that. I'll research how to restore to stock. I'm assuming that I should use the nexus root toolkit to do this?
I did a bunch of these errors after installing the nethunter image in TWRP. error opening: '/data/local/nhsystem/kali-armhf/dev/ram12 (not a directory)
Really appreciate your help on this
Yeah you need to use the wipe all data option , it's separate from the stock factory reset wipe.
Complely wipe and don't reboot . First you need to go to advanced and mount the system folder. Then after you full data wipe , go back a few times and click reboot to recovery and do a full data wipe again. The errors should be gone
Use NRT to flash back to stock 5.1.1 I think .
Then you can flash new ROM.
I'm getting the zips organised but feel free to flash a ROM from XDA if u want the practice . you will see in the rom install instructions that most ROMs follow the same instructions
@naturalstate
Here you go man (no offense if you're not man), rough draft but you should be able to muster through it.
https://github.com/0E800/Nexus-7-2013-Flo-Experimental/releases/tag/Flo-AIO-KaliPWN
One big ol' file that handles everything. If its not stable enough for you, I can try upload the Nougat version.
Thanks so much, this looks perfect! I'm working on it now.
So after rebooting to recovery in TWRP, I wiped by going to format and typing in "yes". I did this 3 times and rebooted back to recovery each time. I realized that I need to boot into OS to turn MTP on and USB debugging so I can copy the KaliPWN_OREO.zip to the device to flash it. And I see that I don't have root anymore. I was wondering if I was going to be unrooted. So I need to root with Nexus Root Toolkit again right? After that do I need to install busybox again?
Well shit, tried to root device again and went through all the steps that I did the first time. But now I'm getting message in Nexus Root Toolkit that my ADB device is found but it's unauthorized. It says to renable MTP & USB debugging, restarting device, and plugging into a different USB port, but I'm not getting the prompt to accept the RSA key. It won't let me flash to stock without this being taken care of either. Any ideas?
Try this.
Boot into TWRP Mount System Goto Wipe -> type Yes wipe. If not errors then reboot back to recovery Do the normal factory swipe wipe Put in USB drive with KaliPWN on it. Mount it so you can see files on USB Goto Advanced -> File Manager Copy KaliPWN to the device directly. Then take out usb. Install / Flash KaliPWN
Might not need to mess with NRT
The build has root already integrated It does not install a icon or prompt you if you want an app to use it. It just auto-roots.
You can test this by opening up FX File Manager and going to System(root) If you dont have root, it will error on you and you wont see any files.
Ah, ok. Cool. When I go to mount in TWRP and select System. Should I also have Data & Cache selected too?
Yes, you want all of em mounted so that the info gets wiped. Im not sure if the wipe works if they are not mounted.
ill be back in like 30 minutes. Try to follow the instructions on the Release page. I was passing out but really did type it up as I was doing it myself on my own N7.
I'm on the roll a d00be stage and updating. So far so good!
Excellent. I am really hoping that someone else can it to work. Then the 5+ years I have been baby stepping my way to being able to create this build will not goto waste. š
I could have shared it a year ago, but I got burned out on kernel code and repetitive failures.
Finished the apt update && apt autoremove with no problems. And rebooted to be safe. Now trying to install wireless tools metapackage and so far so good. It's downloading everything now. Never got to this point!
Awesome man. Wait on installing the GAPPS part.
I need to test a more current GAPPS for Oreo build. The PlayStore keeps crashing.
Also we will probably need to update the Nethunter and Term-NH APK packages as those are a year old and I see new builds have been compiled.
You might also appreciate the police band scanner and the patched pandora.
I do appreciate the police scanner, I saw that. Haha. GAPPS as in google apps like drive, gmail etc? I'm fine with not having that. Which nethunter & term-NH apks just the newest ones? Those are pretty universal and should work on any system right?
Anything else that I should be aware of? It should be fine for me to continue updating with apt-get update && apt-get upgrade?
Any other apps that you've included that I should be aware of or may find useful?
Yea. My bad I missed some of your posts.
If you turn on USB debuging you will lose root and HID Keyboard. Not sure why but the silver lining is that your device is more secure without adb.
I just discovered that someone has a buid of Pie for N7 2013. I'm gonna test and see if I can use it.
And so does that mean no google play either? So if I need to install an app just get the apk I guess?
After I successfully installed the wifi metapackage, I don't see any of the tools. Weren't they supposed to create a new folder with the new tools? Since I've never got it to work, I'm not quite clear.
Try installing the nethunter and apps I password protected they should be more recent. Compare the versions .
K, so unistall the current nethunter app and then install the one that you sent zipped up last night? The metapackages are supposed to create new folders with tools though right? Can't find a lot of info about what they are actually supposed to do or if there are supposed to be new tools accessible in nethunter app.
All the apps I think are useful. 2nd line will give you a free SMS phone number in just about any stare. Lucky patcher will help you remove adds and give you paid for access to some apps . Macrodroid allows you to set up rules that automate functions . like everytime my phone notices a Linksys WiFi connection it turns off WiFi and turns on Bluetooth and sends a email.
Yes, I think I googled every one to become familiar. Looks like a nice collection!
No I think you misunderstand .
Nethunter has some android native tools but mostly its a bunch of helping wrapper scripts for managing the Kali chroot environment .
The metapackages are mostly command line tools
Ok cool, I did misunderstand. Thanks for clearing that up. I thought after you installed a metapackage it was going to create new icons for the new tools it installed.
Is there any reason to upgrade the Nethunter app? I have a 2019.1 apk. Kind of scared to mess with it at this point, now that I've finally gotten mostly everything to work.
Dude, you are the man! I absolutely would have not have gotten this thing to work without you! Is there anything that you want me to test for you? Or anything I can do in return? Would buy you a beer if you were in Colorado!
You should ask yourself what you want the device to do for you. Then you learn the tools that help you achieve the goal. Possibly its more efficient for you to perform the tasks from a tablet. You wouldnt go scuba diving before you knew how to swim.. Right ?
Its payment enough that you didn't wuss out on me. You deserve the pat on the back for sticking with it.
I think you will get a kick out of the USB keyboard .
Just google the names of the tools and follow some tutorials
Device: Nexus 7 2013 WIFI
OS version (KitKat/Lollipop/Marshmallow/Nougat):
Marshmallow 6.0.1
Built from repo (date and build command) or downloaded from website (links):
Downloaded Nexus 7 2013 zip from offensive nethunter download page
Output of
cat /proc/version
in adb shell or NetHunter Terminal:Linux version 3.4.0-gcc51ee3-dirty (root@kali) (gcc version 4.7 (GCC)) #4 SMP PREEMPT Sat Dec 12 00:29:55 UTC 2015
Issue:
I'm having trouble updating with the sources.list file that comes with nethunter. I've tried my best to search around and see that other folks have similar issues but I still can't get it to work.
My sources.list has "sana" which I understand isn't supported anymore. So I modified the sources.list like the official sources are listed on kali's website. But I'm a bit confused since it's a nethunter if it is supposed to be like that or different. I saw some people say that nethunter shouldn't use the regular Kali sources as it will break the nethunter install. I'm so confused.
I also removed the nethunter app that came with the iso and installed the 2019.1. When I try to add metapackages with this app it now says "The following packages have unmet dependencies"
I've installed nethunter over 10 times now. Can someone help please? Thank you!