nadjarian
Posts: 21
Joined: Tue Feb 10, 2015 11:04 pm

Kali Linux

Tue Feb 10, 2015 11:09 pm

I try to install Kali Linux on my Raspberry pi 2 but I'm stock at the boot (rainbow pictures)
It successfully boot if I'm installing a another os though.

oneiroi
Posts: 9
Joined: Mon Feb 09, 2015 1:47 pm

Re: Kali Linux

Wed Feb 11, 2015 9:15 am

Kali was compliled for the Pi there's not been a release (yet) for the Pi 2;

Best of asking the question here: https://forums.kali.org/forumdisplay.ph ... chitecture

user007
Posts: 32
Joined: Wed Feb 11, 2015 8:17 pm

Re: Kali Linux

Wed Feb 11, 2015 8:27 pm

Yes, the same. In case the boot directory of the Kali Linux is replaced by boot directory of Raspbian then it boots successfully to Kali command mode. It works however starting the desktop is not possible.

User avatar
DougieLawson
Posts: 36312
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: Kali Linux

Thu Feb 12, 2015 12:42 am

You'll also need to update /lib/modules/`uname -r` with the /lib/modules/`uname -r` stuff from Raspbian.
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

user007
Posts: 32
Joined: Wed Feb 11, 2015 8:17 pm

Re: Kali Linux

Fri Feb 13, 2015 8:14 am

Thanks a lot Dougie,

Yes, I may report that Kali Linux is fully functional on Raspberry Pi 2!
My both wireless adapters are recognized and working immediately after connecting to USB port (TP-LINK TL-WN722N and Edimax EW-7811Un).

I used the previous Kali Linux image kali-1.0.9-rpi.img.xz (from https://www.offensive-security.com/kali ... -download/).
It is only necessary from Raspbian OS (using an USB SD card reader) to replace the Kali Linux /boot folder with the Raspbian /boot folder and to copy the latest Raspbian /lib/modules:
sudo cp -r /lib/modules/3.18.6.v7+ /media/xxxx/lib/modules
That is all! 8-)
Last edited by user007 on Mon Feb 16, 2015 7:39 pm, edited 1 time in total.

mpeppels
Posts: 2
Joined: Fri Feb 13, 2015 12:10 pm

Re: Kali Linux

Fri Feb 13, 2015 12:13 pm

For anyone interested, here is an image i compiled with the arm buildscripts and the instructions over at cyberkryption.
Attachments
rpi-3.1.8.torrent
Kali for RPI2
(36.38 KiB) Downloaded 616 times
Last edited by mpeppels on Mon Feb 16, 2015 6:50 am, edited 2 times in total.

mame82
Posts: 4
Joined: Fri Feb 13, 2015 11:27 am

Re: Kali Linux

Fri Feb 13, 2015 12:22 pm

I've got a similar solution:

Compile a new Kali arm-image with the kali-arm-buildscripts from offensive security.
Tutorial is here: https://cyberkryption.wordpress.com/201 ... erry-pi-2/
The important step is to use a kernel-config file which is made for the rPi 2 architecture (linked in the tutorial).

To make x work, I've created a symlink from "/lib/modules/3.18.7-v7'" to "/lib/modules/3.18.6-v7+" to match with
the older kernel from raspberry. Otherwise the evdev-module doesn't get loaded and x-server isn't able to receive
input.

The benefits of this method:
1) The kali-build is armhf, not armel (uses armv7)
2) You got kali-1.1.0 instead of kali-1.0.9, which of course could also be achieved by upgrading running kali

cheers

Stormymorris
Posts: 1
Joined: Mon Feb 16, 2015 1:19 pm

Re: Kali Linux

Tue Feb 17, 2015 5:30 pm

Hi
Thanks for the instructions, works perfect.

nadjarian
Posts: 21
Joined: Tue Feb 10, 2015 11:04 pm

Re: Kali Linux

Wed Feb 18, 2015 4:36 pm

would that be possuble to apt-get update from raspbian to kali linux?

nadjarian
Posts: 21
Joined: Tue Feb 10, 2015 11:04 pm

Re: Kali Linux

Wed Feb 18, 2015 10:36 pm

mpeppels wrote:For anyone interested, here is an image i compiled with the arm buildscripts and the instructions over at cyberkryption.
Thank you, however its not working when I plunging my Apple Keyboard. (weird behaviour)

I can connect in ssh ssh with kali as user but cannot find the password (toor/root didn't work)
Any idea?

Thank you.

zebradark
Posts: 1
Joined: Wed Feb 18, 2015 11:43 pm

Re: Kali Linux

Wed Feb 18, 2015 11:46 pm

mpeppels wrote:For anyone interested, here is an image i compiled with the arm buildscripts and the instructions over at cyberkryption.
mpeppels,

Your image worked flawlessly and thus far is the only Kali Linux image I've been able to run on the Raspberry PI 2. The only issue is the commonly frustrating lack of usb inputs for keyboard and mouse. Do you have any suggestions?

mpeppels
Posts: 2
Joined: Fri Feb 13, 2015 12:10 pm

Re: Kali Linux

Thu Feb 19, 2015 11:46 am

So far i've only run my RPi2 headless except for configuring ssh, for me root/toor worked.
So i haven't tried the symlink fix for X mentioned above, but the command for that, IIRC, would be

ln -s /lib/modules/3.18.7-v7 /lib/modules/3.18.6-v7+

user007
Posts: 32
Joined: Wed Feb 11, 2015 8:17 pm

Re: Kali Linux

Sat Mar 07, 2015 12:30 pm

Update:
Finally we may download the official Kali LInux image kali-1.1.0-rpi2.img.xz from https://www.offensive-security.com/kali ... -download/. It works right after extracting and placing on microSD card.
Still the Kali Linux is not optimized and the benchmark rezults using Nbench - BYTEmark* Native Mode Benchmark (for both v1.0.9 armel and v1.1.0 armhf image) are around 60% of the Raspbian and Fedora 21 benchmarks. Nevertheless Kali LInux performance on RPI2 is OK and it is offering an impressive pentesting collection.

Bazzler53
Posts: 9
Joined: Wed Sep 24, 2014 8:18 pm

Re: Kali Linux & PiJuice

Sat Aug 04, 2018 1:30 pm

Hi,
I am in the process of building a Kali pen test/vulnerability scanner kit based on RPI3 and the 7" official display.

So far, so good with the installation of everything. However, so that I can build in some resilience to power problems (ie can set it up and leave it without worrying about power outage) I want to add a PiJuice to the setup.

I have already successfully installed PiJuice and its software on another RPi so am familiar with how to install and set up.

Problem with Kali is, it does not like the Raspbian repo because it is unsigned. Kali won't allow the repo to be added to sources. Therefore, I cannot simply apt-get install PiJuice. So I tried to install the PiJuice Debian package but Kali doesn't like that either. It reckons dependencies are missing but when I try to install those it doesn't like them either.

I was wondering if anyone else had tried to use PiJuice with Kali and managed to get them integrated happily.

I have a support call into Offensive Security re the Kali end of things. PiSupply were unable to help past the Debian package stage. Seems it's to do with the protection around the Kali core to avoid corruption.

Any suggestions very welcome.

Bazzer

DirkS
Posts: 9964
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Kali Linux

Sat Aug 04, 2018 1:37 pm

Code: Select all

wget https://mirrordirector.raspbian.org/raspbian.public.key -O - | sudo apt-key add -
:?:
BTW: next time please start a new topic instead of necro-ing a 3 year old, unrelated topic

Bazzler53
Posts: 9
Joined: Wed Sep 24, 2014 8:18 pm

Re: Kali Linux

Tue Aug 07, 2018 5:20 pm

Thank you.

Apologies for posting a bit off topic but I find these fora rather confusing and kind of 'sporadic'. Kali seems to crop up all over.

Helpful response though, thanks.

DirkS
Posts: 9964
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Kali Linux

Tue Aug 07, 2018 6:54 pm

Bazzler53 wrote:
Tue Aug 07, 2018 5:20 pm
Apologies for posting a bit off topic
My definition of 'a bit' is clearly different than yours.
I can't see any relation between 'can't install Kali on a Pi2' and 'it works fine on my Pi but I would like to add the Raspbian repo'.
Of course, if you tag on to an old unrelated post most users will not read it making it less likely someone will respond.
TBH there are not many Kali users around here anyway. Have you seen the link in the second post?


BTW: what is a sporadic forum?

Bazzler53
Posts: 9
Joined: Wed Sep 24, 2014 8:18 pm

Re: Kali Linux

Mon Sep 03, 2018 2:46 pm

Thanks for the advice (albeit a little disdainful in tone) and will do better in future.

BTW the commands you suggested do not work :-(

So back to drawing board.

Thanks anyway

fruitoftheloom
Posts: 20909
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Kali Linux

Mon Sep 03, 2018 3:41 pm

Bazzler53 wrote:
Mon Sep 03, 2018 2:46 pm
Thanks for the advice (albeit a little disdainful in tone) and will do better in future.

BTW the commands you suggested do not work :-(

So back to drawing board.

Thanks anyway

Please ask the Kali Developers to Support their Operating System ;)
Retired disgracefully.....

Return to “Other”