-------------------------------------closed------------------------------
-------------------------------------closed------------------------------
Last edited by discipuloosho; 2016-03-01 at 18:32.
Hey discipuloosho,
Great work! Have you tried it out yet? Did you use franco's kernel (I saw you thanked him) as a base? I also made a Nexus 5 (L) kernel and was testing it out. I'm curious about your experience with your kernel.
hi binky, i thank franciscoFranco because drivers/usb/otg/msm_otg.c file is his (with your y_cable patch). Everything else i think it works well. The problems are that kali-nethunter files ( bootkali, killkali, etc...) don't works, no chroot, /data/local/busybox permissions problem, blabla... then i can't probe my kernel with kali. What do you think? I do not know why the scripts does not have permissions to execute anything. Permissions fix in updater-script for lollipop compatibility?
Last edited by discipuloosho; 2014-11-15 at 23:28.
It's because selinux is set to enforcement.
We can use the modified ramdisk from here: https://github.com/Android-L-Porting...rhead-L-Rebase
to disable selinux. Init.rc has to be modified with:
We need to change the installer to either flash a boot.img or modify the ramdisk in its place. I've been having issues modifying init.rc but I need more time to play around with it.Code:setenforce 0
* edit *
Just flashed the kernel with setenforce 0 and still getting enforcing issues. You can see them with logcat:
W/sh ( 3008): type=1400 audit(0.0:35): avc: denied { execute } for name="busybox" dev="mmcblk0p28" ino=671748 scontext=u:r:install_recovery:s0 tcontext=ubject_r:system_data_file:s0 tclass=file
* edit 2 *
I take it back it is working (permissive). I can access chroot now but getting error:
ERROR: ld.so: object '/system/lib/libsigchain.so' from LD_PRELOAD cannot be preloaded: ignored.
Last edited by binkybear; 2014-11-15 at 14:14.
In ramdisk init.environ.rc file appears this:
Can this have something to do?Code:export LD_PRELOAD libsigchain.so
Yep, I believe it does.
I removed it and that get's rid of error msgs and I can now put phone in monitor mode.
However, testing wifite just keeps scanning. I am going to reflash from the beginning and see if I can get different results. I was modifying the ramdisk a lot.
Ok, wifite and chroot works well
What role will this library , right?
***edit***
In my github you have folder with all ramdisk and boot files for directly to flash, if you want use it
Last edited by discipuloosho; 2014-11-15 at 23:52.
https://github.com/offensive-securit...hunter/pull/98 <-- we can leave it in the ramdisk and unset it in bootkali/killkali
hows it coming guys?? Any progress on the Lollipop release??
Binkybear, Android 5.0 has problem with /dev/hidg* for hid-keyboard. Look out issue: https://github.com/pelya/android-key...dget/issues/16
@s3v3nh4cks - once it's ready we will announce it, there's no point in bumping threads with "is it ready yet".
Exist one problem with dev/hidg* (virtuals keyboard and mouse) when plug via usb nethunter device on windows, kernel crash and i can't find the solution.
*************EDIT*********************
@binkybear , setenforce 1 must be removed from killkali file, exist problems with su command after killkali is executed.
************EDIT 2 ********************
For virtual keyboard and mouse ( /dev/hidg* ) work sucesfully must be turn on MTP or PTP transfers usb modes.
Last edited by discipuloosho; 2014-12-16 at 15:27.
discipulossho - I will remove the setenforce 1. Thanks.
should I flash nethunter after flashing this kernel
This kernel is for lollipop so unless you are a developer or are comfortable with building your own nethunter I would advise to wait.
Hello again boys, I am very happy because we have the best kernel made for nexus 5: ElementalX-N5 kernel, and NOW for our Kali Nethunter Nexus 5. This kernel works 2956800Hz (3 Ghz) per core, futher performance improvements (battery saving, undervolting, stable on overclock, and more) ..... that is, the best hammerhead kernel. Links in the first post.
Last edited by discipuloosho; 2014-12-29 at 13:07.
May i ask how to flash the custom kernel together with nethunter because i'm not used to flash a kernel seperately (I use Nexus-Root-Toolkit usually). And also everything in the README on github just explains how to build and compile a new kernel. Would it be enough to just install the flashable with TWRP? And should i do that before or after the installation of Nethunter 1.0.2?
Last edited by BreakTheMesh; 2014-12-28 at 10:54.
*********UPDATED**************
The flashable zip file and source links in first post.
Last edited by discipuloosho; 2014-12-29 at 15:40.
Ok, thanks. I assume that i have to flash the kernel after Nethunter because NH has its own kernel which is installed together with NH, right?
Hello! And you can compile rom?
*********** IMPORTANT*********
This kernel require to be installed in flashable zip via TWRP.
***********KERNEL READY********
Links in the first post
Last edited by discipuloosho; 2014-12-29 at 12:53.
OK, thanks for your work. I really appreciate what you and binkybear do and wait for the .zip!
So it is ready?!
I have now 5.0.1 on my nexus 5 now i can install in twrp
first this: kali_linux_nethunter_nexus5.zip
and after the new kernel for L --> http://d-h.st/k68X
And done i have nethunter again on my nexus 5 with Android L?
And if the answer is yes all things is working or the kernel have bugs?
Oh nice! :-) I try it if i have a little free time :-)
Thank you for hard and awesome work!! :-)
Thanks for the zip, i installed everything and so far all features seem to work. But everytime i open the terminal i get "ERROR: ld.so: object 'libsigchain.so' from LD_PRELOAD
cannot be preloaded: ignored." This error occurs very often but does not seem to be important.
I got error :/
So my steps:
Install 5.0.1
root+twrp with NRT
copy nethunter image and the new kernel to phone
Reboot to twrp --> install nethunter image and install the new kernel -->reboot
i opened Kali launcher and the first Launch Kali Shell in Terminal and the error what i got:
"Loaded Kali shell
ERROR: ld.so: object 'libsigchain.so' from LD_PRELOAD cannot
be preloaded: ignored.
ERROR: ld.so: object 'libsigchain.so' from LD_PRELOAD cannot
be preloaded: ignored.
ERROR: ld.so: object 'libsigchain.so' from LD_PRELOAD cannot
be preloaded: ignored.
root@kali:~#"
what i made bad what is your good install steps?
oh and when i installed ElementalX kernel i just uncheck the fast charge option all the other settings are default
I download from here the nexus 5 version yesterday : http://www.offensive-security.com/ka...nter-download/
where can i find newer version?
Last edited by beloadjoker; 2014-12-30 at 14:55.
The last NH image must be downloaded from github project page via linux https://github.com/offensive-securit...-nethunter.git
sry but how can i download it to my nexus 5? if i download the zip i got kali-nethunter-master.zip but i need just nethunter for my nexus 5 can you please write step by step what i need to do?
If you are building from the development branch of github you shouldn't encounter this error.
I recently received the same error..
big thx for the hint. after compiling the development branch everything seems to be working again.
I built nethunter from sources and installed it and now i get no errors but wlan1 is not found /i connect my wn722n/ what is the problem? i write my steps:
so i used my kali 64bit
and i installed what i find on github:
mkdir ~/arm-stuff
cd ~/arm-stuff
git clone https://github.com/offensive-securit...-gnueabihf-4.7
export PATH=${PATH}:/root/arm-stuff/gcc-arm-linux-gnueabihf-4.7/bin
git clone https://github.com/offensive-security/kali-nethunter
cd ~/arm-stuff/kali-nethunter
./build-deps.sh
./androidmenu.sh
after:
work path: /root/arm-stuff/kali-nethunter/1
choosed 1 Build for Nexus Devices
choosed 5 --> Nexus 5
choosed 3 Build All - Kali rootfs and Kernel (AOSP/STOCK) (Android 5)
Generating sha1sum for kernelkali.zip
Kernel can be flashed seperatley if needed using kernel-kali-1.zip
Transfer file to device and flash in recovery
If you plan to add to ROM please place zip file in:
/root/arm-stuff/kali-nethunter/PLACE_ROM_HERE
Would you like to attach Kali build to ROM? (y/n): n
All done!
y
KALI NETHUNTER BUILDER FOR ANDROID DEVICES
WORK PATH: /root/arm-stuff/kali-nethunter/1
[1] Build for Nexus Devices
[2] Build for Samsung Devices
[77] Inject finished rootfs/kernel into ROM
[88] Build a rootfs only - Basic kali chroot for any Android Device
[99] Unmount and Clean Work Folders (file dir removal currently disabled)
[q] Exit
Choice: q
and after i reflash the 5.0.1 rom to my nexus 5 with Nexus root toolkit + root + twrp
copy 1.zip and ElementalX-Nethunter-Signed.zip to my phone
reboot to twrp
first install 1.zip
and second the ElementalX kernel <-- all settings default except usb fast charge i uncheck it
all done--> reboot
i saw nethunter app, i tested SET in terminal but i connect my wn722n with otg cable and nothing, what i made bad?
Today I compiled the kernel + ROM, but the size of the "rom" only ~50mb, so it should be?
MEGA: https://mega.co.nz/#F!uUFCWTQL!8SLclVokpNW7SCtu8ZZMGQ
Last edited by @nonymous; 2015-01-04 at 10:33.
for me still not working :/
I tried to re-assemble, but get errors... and can't even run Kali Menu / Shell
you could also check your building log for errors. check your terminal window after building by searching error.
without more info its kinda impossible to tell what went wrong.
try deleting everything and pulling the development branch again
BDZC, I've tried everything to clear and start again, even with the LiveCD, but every time there is a lot of errors.
Here is the compile part log with errors, sorry for Ru, Lang.:
I realized that errors occur in the file "kalifs.tar.bz2" as the file size does not match the original. And when you start a terminal, you receive the error " '/bin/bash': No such file or directory " and unpack the file "kalifs.tar.bz2" there's no many folders.Code:03:09:48-root@anonymous:(~/arm-stuff/kali-nethunter)./build-deps.sh Чтение списков пакетов… Готово Построение дерева зависимостей Чтение информации о состоянии… Готово E: Не удалось найти пакет pixz E: Не удалось найти пакет pixz Некоторые пакеты невозможно установить. Возможно, вы просите невозможного, или же используете нестабильную версию дистрибутива, где запрошенные вами пакеты ещё не созданы или были удалены из Incoming. Следующая информация, возможно, поможет вам: Пакеты, имеющие неудовлетворённые зависимости: ia32-libs : Зависит: ia32-libs-i386 E: Невозможно исправить ошибки, у вас отложены (held) битые пакеты. Чтение списков пакетов… Готово Построение дерева зависимостей Чтение информации о состоянии… Готово Уже установлена самая новая версия libncurses5:i386. обновлено 0, установлено 0 новых пакетов, для удаления отмечено 0 пакетов, и 131 пакетов не обновлено. 03:10:13-root@anonymous:(~/arm-stuff/kali-nethunter)./androidmenu.sh Checking for git updates in local folder... remote: Counting objects: 8, done. remote: Compressing objects: 100% (8/8), done. remote: Total 8 (delta 4), reused 4 (delta 0) Unpacking objects: 100% (8/8), done. From https://github.com/offensive-security/kali-nethunter f9a4e49..45dd939 nethunterbuild -> origin/nethunterbuild ... Previous rootfs build not found. Starting build. Found cross compiler - will continue ./androidmenu.sh: line 506: debootstrap: команда не найдена cp: не удалось выполнить stat для «/usr/bin/qemu-arm-static»: Нет такого файла или каталога chroot: cannot change root directory to kali-armhf: No such file or directory ./androidmenu.sh: line 514: kali-armhf/etc/apt/sources.list: Нет такого файла или каталога ./androidmenu.sh: line 521: kali-armhf/etc/hostname: Нет такого файла или каталога ./androidmenu.sh: line 526: kali-armhf/root/.bash_profile: Нет такого файла или каталога ./androidmenu.sh: line 544: kali-armhf/etc/hosts: Нет такого файла или каталога cp: указанная цель «kali-armhf/usr/bin/» не является каталогом cp: указанная цель «kali-armhf/usr/bin/» не является каталогом cp: указанная цель «kali-armhf/usr/bin/» не является каталогом ./androidmenu.sh: line 560: kali-armhf/etc/network/interfaces: Нет такого файла или каталога ./androidmenu.sh: line 565: kali-armhf/etc/resolv.conf: Нет такого файла или каталога mount: mount point kali-armhf/proc does not exist mount: mount point kali-armhf/dev/ does not exist mount: mount point kali-armhf/dev/pts does not exist ./androidmenu.sh: line 584: kali-armhf/debconf.set: No such file or directory ./androidmenu.sh: line 589: kali-armhf/third-stage: No such file or directory chmod: cannot access `kali-armhf/third-stage': No such file or directory chroot: cannot change root directory to kali-armhf: No such file or directory sed: can't read /root/arm-stuff/kali-nethunter/rootfs/kali-armhf/etc/kismet/kismet.conf: No such file or directory sed: can't read /root/arm-stuff/kali-nethunter/rootfs/kali-armhf/etc/kismet/kismet.conf: No such file or directory sed: can't read /root/arm-stuff/kali-nethunter/rootfs/kali-armhf/etc/kismet/kismet.conf: No such file or directory cp: target `/root/arm-stuff/kali-nethunter/rootfs/kali-armhf/usr/bin/' is not a directory cp: cannot create regular file `/root/arm-stuff/kali-nethunter/rootfs/kali-armhf/usr/bin/': No such file or directory cp: target `/root/arm-stuff/kali-nethunter/rootfs/kali-armhf/usr/share/mana-toolkit/run-mana/' is not a directory dos2unix: /root/arm-stuff/kali-nethunter/rootfs/kali-armhf/usr/share/mana-toolkit/run-mana/*: No such file or directory dos2unix: Skipping /root/arm-stuff/kali-nethunter/rootfs/kali-armhf/usr/share/mana-toolkit/run-mana/*, not a regular file. dos2unix: /root/arm-stuff/kali-nethunter/rootfs/kali-armhf/etc/mana-toolkit/*: No such file or directory dos2unix: Skipping /root/arm-stuff/kali-nethunter/rootfs/kali-armhf/etc/mana-toolkit/*, not a regular file. chmod: cannot access `/root/arm-stuff/kali-nethunter/rootfs/kali-armhf/usr/share/mana-toolkit/run-mana/*': No such file or directory chmod: cannot access `/root/arm-stuff/kali-nethunter/rootfs/kali-armhf/usr/bin/*.sh': No such file or directory Cloning into '/root/arm-stuff/kali-nethunter/rootfs/kali-armhf/opt/rawr'... remote: Counting objects: 748, done. remote: Compressing objects: 100% (708/708), done. remote: Total 748 (delta 392), reused 168 (delta 36) Receiving objects: 100% (748/748), 975.44 KiB | 48 KiB/s, done. Resolving deltas: 100% (392/392), done. chroot: failed to run command `pip': No such file or directory Cloning into '/root/arm-stuff/kali-nethunter/rootfs/kali-armhf/opt/MITMf'... remote: Counting objects: 1023, done. remote: Total 1023 (delta 0), reused 0 (delta 0) Receiving objects: 100% (1023/1023), 439.65 KiB | 410 KiB/s, done. Resolving deltas: 100% (675/675), done. ./androidmenu.sh: line 641: /root/arm-stuff/kali-nethunter/rootfs/kali-armhf/tmp/mitmf.sh: No such file or directory chmod: cannot access `/root/arm-stuff/kali-nethunter/rootfs/kali-armhf/tmp/mitmf.sh': No such file or directory chroot: failed to run command `/tmp/mitmf.sh': No such file or directory 89.txt /root/arm-stuff/kali-nethunter/rootfs/kali-armhf/usr/bin/pingen: No such file or directory chmod: cannot access `/root/arm-stuff/kali-nethunter/rootfs/kali-armhf/usr/bin/pingen': No such file or directory chroot: failed to run command `pip': No such file or directory --2015-01-06 03:13:06-- https://github.com/smicallef/spiderf...0-final.tar.gz Resolving github.com (github.com)... 192.30.252.131 Connecting to github.com (github.com)|192.30.252.131|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://codeload.github.com/smicalle...z/v2.2.0-final [following] --2015-01-06 03:13:07-- https://codeload.github.com/smicalle...z/v2.2.0-final Resolving codeload.github.com (codeload.github.com)... 192.30.252.147 Connecting to codeload.github.com (codeload.github.com)|192.30.252.147|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 695294 (679K) [application/x-gzip] Saving to: `spiderfoot.tar.gz' ... sed: can't read /root/arm-stuff/kali-nethunter/rootfs/kali-armhf/etc/kismet/kismet.conf: No such file or directory cp: cannot create regular file `/root/arm-stuff/kali-nethunter/rootfs/kali-armhf/usr/bin/kalimenu': No such file or directory Cloning into 'google-nexus-tools'... remote: Counting objects: 95, done. remote: Compressing objects: 100% (88/88), done. remote: Total 95 (delta 45), reused 0 (delta 0) Receiving objects: 100% (95/95), 2.11 MiB | 499 KiB/s, done. Resolving deltas: 100% (45/45), done. cp: cannot create regular file `/root/arm-stuff/kali-nethunter/rootfs/kali-armhf/usr/bin/adb': No such file or directory cp: cannot create regular file `/root/arm-stuff/kali-nethunter/rootfs/kali-armhf/usr/bin/fastboot': No such file or directory chroot: failed to run command `chmod': No such file or directory chroot: failed to run command `chmod': No such file or directory % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 5079 100 5079 0 0 15101 0 --:--:-- --:--:-- --:--:-- 18811 cp: cannot create regular file `/root/arm-stuff/kali-nethunter/rootfs/kali-armhf/usr/bin/deadbolt': No such file or directory chroot: failed to run command `chmod': No such file or directory % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 9269 100 9269 0 0 27754 0 --:--:-- --:--:-- --:--:-- 34715 cp: cannot create regular file `/root/arm-stuff/kali-nethunter/rootfs/kali-armhf/usr/bin/apfucker.py': No such file or directory chroot: failed to run command `chmod': No such file or directory cp: cannot create regular file `/root/arm-stuff/kali-nethunter/rootfs/kali-armhf/usr/bin/hid-keyboard': No such file or directory cp: cannot create regular file `/root/arm-stuff/kali-nethunter/rootfs/kali-armhf/usr/bin/hid-dic': No such file or directory chroot: failed to run command `chmod': No such file or directory chroot: failed to run command `chmod': No such file or directory chroot: failed to run command `chmod': No such file or directory ./androidmenu.sh: line 708: kali-armhf/etc/dnsmasq.conf: No such file or directory ./androidmenu.sh: line 728: kali-armhf/etc/group: No such file or directory ./androidmenu.sh: line 729: kali-armhf/etc/group: No such file or directory chroot: failed to run command `/cleanup': No such file or directory umount: /root/arm-stuff/kali-nethunter/rootfs/kali-armhf/proc/sys/fs/binfmt_misc: not found umount: /root/arm-stuff/kali-nethunter/rootfs/kali-armhf/dev/pts: not found umount: /root/arm-stuff/kali-nethunter/rootfs/kali-armhf/dev/: not found umount: /root/arm-stuff/kali-nethunter/rootfs/kali-armhf/proc: not found
Last edited by @nonymous; 2015-01-05 at 20:41.
looks like you dont even have the deps installed. without those i guess you will never build.
make sure you have those tools listed in build-deps.sh installed.
if some are not found id check my apt repo at /etc/apt/sources.listCode:apt-get install git-core gnupg flex bison gperf libesd0-dev build-essential \ zip curl libncurses5-dev zlib1g-dev libncurses5-dev gcc-multilib g++-multilib \ parted kpartx debootstrap pixz qemu-user-static abootimg cgpt vboot-kernel-utils \ vboot-utils uboot-mkimage bc lzma lzop automake autoconf m4 dosfstools rsync \ schedtool git e2fsprogs device-tree-compiler ccache dos2unix
anyway it looks like your system is incomplete and also id recommend using installed Kali either on system or vmware.
you can download prebuild vmware image
BDZC, well, will check later, I use the original image of Kali Linux x64 1.0.9 as a main system on the 2nd laptop.
I reinstalled the system and installed all the packages, but still have errors. could you compile and upload to the exchange? is it possible to compile from source in another unix-like system?