Closed v-mos closed 8 years ago
it seems appear that this version have bugs for the nexus 7 2012
heres is another post with the same problem with the postgresql service in the net hunter forums
https://forums.kali.org/showthread.php?25088-Postgres-will-not-start
I had no luck trying wit other rooms and fix for other nexus devices, i dont try the wifi attacks with a usb dongle but at lease i can use the bcmon apk for test wifi networks wit wep encryption
hope you can fix in future release for the nexus 7 2012 Wifi
Regards
Does setting:
sysctl -w kernel.shmmax=268435456
Return an error or any feedback.
Runing this command on kali console
Sysctl: cannot start /proc/sys/kernel/shmmax: no such a file or directory
If i run in local android console
Sysctl: error: `kernel.shmmax´ is an unknown key
There seems to be an issue with the kernel either not flashing then or shmmax getting disabled (I'm leaning toward not flashing). Can you check in settings > about and see if the kernel version shows google in the name.
Yes in fact have
Android-built@vpbs1.mtv.corp.google.com #1
So i have to flash a specific kerner in order to get everithing up ?
Regards
It looks like for whatever reason the kernel never flashed. If you feel comfortable flashing kernels in recovery, there is an older working version here:
http://photonicgeek.me/NetHunter/Kernels/grouper-tilapia/Kernel-groupertilapia-kitkat-12042014.zip
Thank a lot bro i going to flash the kernel and make some test
I guest maybe is a bug of the windows installer because im not the only one with this issue
I will come back with the feedback
Thanks binky
Hi im back
i flashed the kernel and made some test the result was like this
flash stock rom + install nethunter + flash kernel:
the Kali service control show me the real state of the service and i can start or stop service from here, the PostgreSQL and the Apache and mestasploit service works good, but the hid attack and the bad USB attack doesn't work it all also the wifite shows an error like IW no found
Flash stock room + flash kernel + install nethunter
this is the better way that i found, the service control app doesn't work but i can start with no problem the service manually from the console, the hid attack works (the reverse_https payload show me an error but i don't think that have something to see whit the otter just comment), the wifite appears to work fine, the Bcmon app works good to, but i still have trouble with the bad USB attack,
the attack doesn't start from the app i have to start manually from the android console, the rndis0 interface go up wit ip 10.0.0.1 but in the target machine just appear like unknown USB device and the gateway doesn't change in target im trying in Windows 8 and 7 PC and the result are the same
i really appreciate if anybody can help me with this last issue im been reading the issue #32 but the problem is no the same, expect that this problem with the kernel have a fix in future releases
thanks a lot binky for provide that kernel
Regards
I just wanted to add that I also experienced this issue of the Kali kernel not installing correctly.
Nexus 7 2012 16GB Wifi. Installed NetHunter using the all in one Windows installer.
I noticed that the Service Launcher only showed a status for SSH. The others said Loading service status and nothing happened when toggling the switch in the GUI.
As described above, checked Settings -> About Tablet and found I still had the Google Kernel.
I downloaded the kernel ZIP linked above in this thread, installed it from TWRP Manager without first rolling back to stock (directly from Nethunter with incorrect kernel) and after the reboot the kernel was updated and seems to be working.
I have not tested any of the HID or bad USB stuff described above. I did have some issues with metasploit failing to authenticate to Postgres when launching manually from Kali shell (postgres sevice was running, no database.yml & MSF_DATABASE_CONFIG env variable it seems) and it failed to load a bunch of key modules (metsvc, meterpreter/reverse_tcp, etc...) but I'm not sure this is related to the kernel issue at all. Possibly due to apt-get update breaking my metasploit install.
@pgrohe - Thanks for posting your experience. The kernel flashing is an odd error but I'm glad you were able to roll back.
The previous kernel (google stock) would have prevented postgresql from starting but shouldn't have had any effect on metasploit database errors. I believe the metasploit issues are separate from the kernel issue.
I update kali and have no problem with the metasploit or postgresql maybe if you re install again you correct the issue, i still have no luck with the bad USB attack maybe in future realease you can fix it
Regards
I can second the "not flashing kernel" problem! I tried it yesterday with the Windows binary and am still on the official google kernel! today im trying if manually installing the newest kernel (included in the NetHunter image) fixes anything
I can also confirm having to manually install the kali-grouper kernel after installing nethunter from twrp.
Slimkat ROM + nethunter + kalikernel
Also having issues with otg-ycable charging. On May 21, 2015 5:13 AM, "Michell Gailing" notifications@github.com wrote:
I can second the "not flashing kernel" problem! I tried it yesterday with the Windows binary and am still on the official google kernel! today im trying if manually installing the newest kernel (included in the NetHunter image) fixes anything
— Reply to this email directly or view it on GitHub https://github.com/offensive-security/kali-nethunter/issues/196#issuecomment-104251944 .
I just tested some things
the kernel is finally installed properly but
everything else seems to work
going in the kali shell and typing apt-get update && apt-get upgrade works flawless
i can assure that the hid usb attack works, but you have to flash the kernel before of install kali file in your room, after you will see that the kali menu doesnt work, but you can start all the service from console
Regards
@v-mos thanks for the heads up! :+1: i will try it when im home and in the state wich i am now the kalimenu also does not work (installing kali first then flashed kernel) but you can still start it from the kali shell
Seems like the .zip file for kali-nethunter 1.21 has the wrong kernel included for: 'Nexus 7 KitKat (2012)' http://images.kali.org/kali_linux_nethunter_1.21_nakasi_kitkat.zip
The feedback given when installing through TWRP Recovery shows "Starting Kernel install for Nexus 7 (2013)".
Full feedback is as follows: extracting system files... installing kali chroot... mounting system and rootfs... removing any old terminal applications... copying compressed kali 1gb filesystem... anlong with temporary files... setting permissions... installing busybox... cleaning /system/app... extracting kali chroot... ... this will take ~30 minutes. extracting wallpapers... setting permissions to /sdcard/ kali chroot is now successfully installed. cleaning up... unmounting system... unmounting data... unmounting sdcard... STARTING KERNEL INSTALL FOR NEXUS 7 (2013) mounting system... cleaning system/app... kernel installation completed... updating partition details... ...done
This happens using the file from the download page: http://images.kali.org/kali_linux_nethunter_1.21_nakasi_kitkat.zip or using the windows installer. installer probably uses same file.
haven't tried building nethunter from source yet, but it might work. information and files for doing that can be found here: https://github.com/offensive-security/kali-nethunter
I found a way that installs the right Kernel and has functioning usb attack support, kali menu etc.
you try the bad usb Attack ??
in the way that i tried i cant launch the service from kali menu, and the bad usb attack is not working, you try all the functions ?
i guest i going to take the risk and try your method i will come back with the feedback later
Ok after try the method of @Kruemmelmonster i have the same result than before, the services cant start from the kali menu but i can start from console, the hid usb attack works but the bad usb attack doesn't work, metasploit, apache postgresql works and i cant get back the storage, i dindt notice that the storage has been reduce until that lock and unlock the boot loader after that i get back mi full storage
in the last day i make some test with a newlink wireless adapter http://www.newlink-usa.com/uploads/specs/NEW-6040220.pdf is much better than the TP-LINK TL-WN722N the newlink have more range and better performance with the 7dbi panel Athena use a ralink chipset and with the nexus 7 2012 have no problem for monitor mode and injection maybe @binkybear can add to the list of devices working
also i notice that the windows installer have a new version i still no try the new installer i don't know if this installer solve the kernel problem
Regards
I'm experiencing the same issues. Using a N7 2012 and the latest nethunter image will result in the updated kernel not getting installed.
Anyway, compiling the kernel manually seems to fix the issues, at least it recognizes the TL-WN722N now. I had no time to check if everything is working though.
@mohlerm - When did you download the images? I think @offensive-security pushed an update recently to fix the issue.
Today, with the Windows updater though
@binkybear just tried it again with the windows updater. It still flashes the stock android kernel.
I just used the windows installer... Didn't update the factory Google kernel. I downloaded the kernal in this thread and flashed it, but now apt-get doesn't work, chroot update, wifite says airmon requires iw, and a whole slew of errors. I just want to be able to plugin my alpha adapter to get better signal because I'm far away from networks. Please help...
Hit http://http.kali.org kali Release.gpg Hit http://http.kali.org kali Release Hit http://http.kali.org kali/main armhf Packages Hit http://http.kali.org kali/contrib armhf Packages Hit http://http.kali.org kali/non-free armhf Packages Ign http://http.kali.org kali/contrib Translation-en Ign http://http.kali.org kali/main Translation-en Ign http://http.kali.org kali/non-free Translation-en Hit http://security.kali.org kali/updates Release.gpg Hit http://security.kali.org kali/updates Release Hit http://security.kali.org kali/updates/main armhf Packages Hit http://security.kali.org kali/updates/contrib armhf Packages Hit http://security.kali.org kali/updates/non-free armhf Packages Ign http://security.kali.org kali/updates/contrib Translation-en Ign http://security.kali.org kali/updates/main Translation-en Ign http://security.kali.org kali/updates/non-free Translation-en Reading package lists... Done Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 2 not fully installed or removed. After this operation, 0 B of additional disk space will be used. dpkg: warning: 'ldconfig' not found in PATH or not executable dpkg: warning: 'start-stop-daemon' not found in PATH or not executable dpkg: error: 2 expected programs not found in PATH or not executable Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin E: Sub-process /usr/bin/dpkg returned an error code (2) u0_a81@grouper:/ $
.;' ;, .;' ,;'
;, ;, WiFite v2 (r87) .;' ,;' ,;'
;, ;,
;,
:: :: : ( ) : :: :: automated wireless auditor
':. ':. ':. /_\ ,:' ,:' ,:'
':. ':. /_\ ,:' ,:' designed for Linux
':. /___\ ,:'
/ \
[!] airmon-ng requires the program iw
[+] quitting
1|u0_a81@grouper:/ $
@binkybear are there any new kernal updates or something I can do to fix this??
@AccountNameHere - I believe your paths might might be broken/missing. Can you check your paths with echo $PATH in the chroot.
Hit http://http.kali.org kali Release.gpg Hit http://http.kali.org kali Release Get:1 http://security.kali.org kali/updates Release.gpg [819 B] Hit http://http.kali.org kali/main armhf Packages Get:2 http://security.kali.org kali/updates Release [11.0 kB] Hit http://http.kali.org kali/contrib armhf Packages Hit http://http.kali.org kali/non-free armhf Packages Ign http://http.kali.org kali/contrib Translation-en Ign http://http.kali.org kali/main Translation-en Get:3 http://security.kali.org kali/updates/main armhf Packages [462 kB] Ign http://http.kali.org kali/non-free Translation-en Ign http://security.kali.org kali/updates/contrib Translation-en Ign http://security.kali.org kali/updates/main Translation-en Ign http://security.kali.org kali/updates/non-free Translation-en Hit http://security.kali.org kali/updates/contrib armhf Packages Hit http://security.kali.org kali/updates/non-free armhf Packages Fetched 474 kB in 8s (57.8 kB/s) Reading package lists... Done Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages will be upgraded: icedtea-7-jre-jamvm openjdk-7-jre openjdk-7-jre-headless 3 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 2 not fully installed or removed. Need to get 39.8 MB of archives. After this operation, 360 kB disk space will be freed. Get:1 http://security.kali.org/kali-security/ kali/updates/main openjdk-7-jre armhf 7u79-2.5.6-1~deb7u1 [179 kB] Get:2 http://security.kali.org/kali-security/ kali/updates/main icedtea-7-jre-jamvm armhf 7u79-2.5.6-1~deb7u1 [699 kB] Get:3 http://security.kali.org/kali-security/ kali/updates/main openjdk-7-jre-headless armhf 7u79-2.5.6-1~deb7u1 [38.9 MB] Fetched 39.8 MB in 33s (1180 kB/s) dpkg: warning: 'ldconfig' not found in PATH or not executable dpkg: warning: 'start-stop-daemon' not found in PATH or not executable dpkg: error: 2 expected programs not found in PATH or not executable Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin E: Sub-process /usr/bin/dpkg returned an error code (2) u0_a81@grouper:/ $ cd\
echo $PATH
/system/bin/sh: cdecho: not found
root@kali:~# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
This is straight from a fresh install from the windows installer with the kernal from this thread and the smart install with busy box. How do I get it so I can just increase my WiFi range.
Also on a side note, it says cowpatty and iw are missing for wifite from Kali launcher and or shell
u0_a81@grouper:/ $ cd root /system/bin/sh: cd: /root: Permission denied
@AccountNameHere - Your second post you are not in Kali and you are not root. u0_a81@grouper <-- Is a non-root user and you need to type su first.
Your path looks fine in Kali. I'm unsure why you are missing the files you need but you can reinstall chroot manually if needed
You cannot increase the wifi range because of power limitations (output) of your android device.
I have the same problem on my nexus 2012 3g nakasig,but cannot find the working kernel. I am willing to flash and then try the postgresql service which is currently showing exactly similar outputs as OP. Also my kernel version is similar as OP's, with google in it. Will appreciate any help. Thanks
Sorry to be such a noob,but that kernel listed by binkybear, works for both grouper and tilapia?
The link to the working kernel seems to be dead: http://photonicgeek.me/NetHunter/Kernels/grouper-tilapia/Kernel-groupertilapia-kitkat-12042014.zip
Where else can this be found or downloaded? I just tried the latest version with a 2012 Nexus 7 and the same kernel issue exists. Any help greatly appreciated, thanks.
My device doesn't even boot when using the latest lollipop version (stuck in bootloop).
Hi, are you installing NetHunter 2.0 ? is better than the 1.0 version, i have a lot of trouble to install and use the 1.0 and still cant use the bad usb attack, for thats reason i not try the 2.0 it be nice that you give us some review of that
i have the kernel file and i uploat not sure if this kernel is going to work with you
https://drive.google.com/file/d/0B6rPp-IqqQdlOXhmVlAwNlU1S3c/view?usp=sharing
for mohlerm before of install NetHunter in mi nexus 7 2012 wifi device i use to be install lollipop 5.0 and let me say that is the worst version of android for this tablet, i dont know if with NetHunter and the different kernel is better now
Regards
Are you all using the newinstaller-fj branch? Are you all on lollipop 5.1.1?
Testing the latest verison of Nethunter on N7 2012 is running out of /system space in my testing because of gapps, but as far as kernel issues I haven't had issues with latest builds.
Please let me know what you are trying to flash.
I was on stock 5.1.1 before and tried to flash Nethunder 2.0 from the website. I did not try the new installer from the forum since the links are removed but now I realized you put it on github (newinstaller-fj) I'll build it myself and give it a try.
Just installed NH2 on N72012 ontop of most current stable Dirty Unicorn rom 5.1 using most current TWRP. Seems to be working just fine.
On Fri, Nov 20, 2015, 12:43 AM Marcel Mohler notifications@github.com wrote:
I was on stock 5.1.1 before and tried to flash Nethunder 2.0 from the website.
— Reply to this email directly or view it on GitHub https://github.com/offensive-security/kali-nethunter/issues/196#issuecomment-158326711 .
I receive a wrong checksum when trying to install chroot with the new installer. Anything I can do to fix this?
Hello, some problems appeared doing the last sever build and is incomplete/corrupt, (will be restored in a few hours).
By now, you can only wait for the new build. Which has also some important apk fixes.
Thers no problem on your side @mohlerm
Stay arround, ill update the issue when is solved.
Jaime
Okay, no problem. Thanks for the notification.
Do I need to rebuild/reflash once the new build is up or is it completely serverside?
The issue is soved.
Best is a clean install.
If not:
Cheers
Thank you. Everything seems to work fine with the new installer except that I receive a Toast notification 1) No title when I try to start a NetHunter terminal with Kali. And my external Atheros Wifi Adapter doesn't work anymore...it definitely worked in Nethuner 1.2. Kernel reports 3.1.10-Bricked...I created the kernel via the python script in the newinstaller-fj.
Tried reinstalling a few times...got it finally working, I got reported that Busybox wasn't installed. However took me a few different tries until I found a working version..
This has become a bit off topic and original issue is fixed in latest builds.
I just flashed from linux following the guide here https://github.com/offensive-security/nethunter-LRT, and am having the same postgres error. I noticed it after doing the first apt-get update && apt-get -y upgrade
Then I went to install vim and so I'll give the whole dump for refernece.
root@kali:~# apt-get install -y vim
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libgpm2 vim-runtime
Suggested packages:
gpm ctags vim-doc vim-scripts
The following NEW packages will be installed:
libgpm2 vim vim-runtime
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 5907 kB of archives.
After this operation, 27.7 MB of additional disk space will be used.
Get:1 http://http.kali.org/kali/ sana/main libgpm2 armhf 1.20.4-6.1+b2 [33.0 kB]
Get:2 http://http.kali.org/kali/ sana/main vim-runtime all 2:7.4.488-7 [5047 kB]
Get:3 http://http.kali.org/kali/ sana/main vim armhf 2:7.4.488-7 [827 kB]
Fetched 5907 kB in 14s (400 kB/s)
Selecting previously unselected package libgpm2:armhf.
(Reading database ... 140058 files and directories currently installed.)
Preparing to unpack .../libgpm2_1.20.4-6.1+b2_armhf.deb ...
Unpacking libgpm2:armhf (1.20.4-6.1+b2) ...
Selecting previously unselected package vim-runtime.
Preparing to unpack .../vim-runtime_2%3a7.4.488-7_all.deb ...
Adding 'diversion of /usr/share/vim/vim74/doc/help.txt to /usr/share/vim/vim74/doc/help.txt.vim-tiny by vim-runtime'
Adding 'diversion of /usr/share/vim/vim74/doc/tags to /usr/share/vim/vim74/doc/tags.vim-tiny by vim-runtime'
Unpacking vim-runtime (2:7.4.488-7) ...
Selecting previously unselected package vim.
Preparing to unpack .../vim_2%3a7.4.488-7_armhf.deb ...
Unpacking vim (2:7.4.488-7) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up postgresql-9.4 (9.4.6-0+deb8u1) ...
[....] Starting PostgreSQL 9.4 database server: main[....] The PostgreSQL server failed to start. Please check the log output: 2016-06-10 00:01:40 UTC [28595-1] FATAL: could not create shared memory segment: Function not implemented 2016-06-10 00:01:40 UTC [28595-2] DETAIL: Failed sys[FAILall was shmget(key=5432001, size=40, 03600). ... failed!
failed!
invoke-rc.d: initscript postgresql, action "start" failed.
dpkg: error processing package postgresql-9.4 (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up libgpm2:armhf (1.20.4-6.1+b2) ...
Setting up vim-runtime (2:7.4.488-7) ...
Processing /usr/share/vim/addons/doc
Setting up vim (2:7.4.488-7) ...
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vim (vim) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vimdiff (vimdiff) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rvim (rvim) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rview (rview) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vi (vi) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/view (view) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/ex (ex) in auto mode
Processing triggers for libc-bin (2.19-18+deb8u3) ...
Errors were encountered while processing:
postgresql-9.4E: Sub-process /usr/bin/dpkg returned an error code (1)
root@kali:~# sysctl -w kernel.shmmax=268435456
sysctl: cannot stat /proc/sys/kernel/shmmax: No such file or directory
root@kali:~# uname -a
Linux kali 3.10.73-gc28506a #1 SMP PREEMPT Thu Apr 14 22:40:19 UTC 2016 aarch64 GNU/Linux
I can't seem to find a kernel for bullhead nexus 5x (mine is also stock google) so I am going to try to comple it.
have you any kernel for CM 13
Hi
I tried to install many times the net hunter image on my Nexus 7 Wifi 2012 with the windows installer and flashing the image manually everything seems to be ok but when i go to the service control the states of the service aren't loaded and also i cant start any services from here, if i go to the console i just can start the ssh service, but i cant start apache and postgresql also i try the BadUSB attack and with the GUI nothings happen but if i execute from console the usb interfaces go up but in the computer nothing happen
i don't know if i doing something wrong or is a bug because the other tutorials for the nexus 7 have been for 1.0 and 1.1 versions of net hunter
for the service of postgresql the opuput is
UTC FATAL: could not create shared memory segment: Function not implemented Failed system call was shmget(key=5432001, size=39460864, 03600).
for the apache:
Warning: DocumentRoot [/usr/share/mana-toolkit/www/facebook] does not exist apache2: apr_sockaddr_info_get() failed for kali apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName . ok
but when i chek the status of the service: Apache2 is NOT running.
also i upgrade the chroot but falis when try to start the postgresql with metasploit, i try to modified the bootkali and set the ram to 512 mb but I had no luck with that
also i try to find an older image of nethunter 1.1 but i cant find it
really appreciate you help with this
Regards