Hi, I got the new Raspberry Pi 2 and I'm trying to run Kali but I tried with armel, armhf and Raspberry Pi Image but no one is working.
Anyone achieved to run it? Is needed a new Kali Linux custom image for RPi2?
Thanks.
Hi, I got the new Raspberry Pi 2 and I'm trying to run Kali but I tried with armel, armhf and Raspberry Pi Image but no one is working.
Anyone achieved to run it? Is needed a new Kali Linux custom image for RPi2?
Thanks.
Support will be coming soon.
Edit:
DOWNLOAD
The official pre-build Kali Linux 1.1.0 Raspberry Pi 2 image is out!
Source: https://twitter.com/offsectraining/s...19489549144064You asked, we built. A @Raspberry_Pi 2 Kali Linux image now available for download. https://www.offensive-security.com/k...mage-download/
Last edited by g0tmi1k; 2015-03-05 at 17:52. Reason: Image out!
This is a Kali-Linux support forum - not general IT/infosec help.
Useful Commands: OS, Networking, Hardware, Wi-Fi
Troubleshooting: Kali-Linux Installation, Repository, Wi-Fi Cards (Official Docs)
Hardware: Recommended 802.11 Wireless Cards
Documentation: http://docs.kali.org/ (Offline PDF version)
Bugs Reporting & Tool Requests: https://bugs.kali.org/
Kali Tool List, Versions & Man Pages: https://tools.kali.org/
https://cyberkryption.wordpress.com/...aspberry-pi-2/
These instructions worked for me, but I still have problems with freezing startx.
Another fix should be to replace the boot partition content of the kali pi image with the firmware from a working rasping image.
X Server works, fix:
Solution 1) copy /lib/modules from rasping to kali sd
Solution 2) create a softlink on the kali sd from "/lib/modules/3.18.7-v7" to "/lib/modules/3.18.6-v7+" and reboot to get evdev loaded
I achieved it replacing the boot partition, thanks, but I have the same problem than you, after startx it freezes, any idea to solve it?
I tried updating the firmware and Kali but there's no results :S
Yes, you have to copy the modules of a raspian image to /lib/modules for this kernel version. Thus the evdev module (responsible for loading device drivers for x) could be loaded after a reboot. Check if evdev is loaded with lsmod
Working Kali 3.18.7 on RPi2:
Follow instructions on https://cyberkryption.wordpress.com/...aspberry-pi-2/.
Change line 33 of kernel config found on pastebin before executing rpi.sh from
CONFIG_LOCALVERSION="-v7" to CONFIG_LOCALVERSION="-v7+"
Is there any update on support for the latest Raspberry Pi 2? The current Kali image available for Pi doesn't boot!
I managed to get Kali installed and booting on the Pi without X freezing after building from Git. It only took 19 steps! A big thank you to mame82 & Ram0n in this thread who's comments pointed me in the right direction of getting a fully functional Kali build :-)
Step 1:
Create a directory to work out of and navigate into it
1 - Create Kali Git Directory.JPG
Step 2:
git clone https://github.com/offensive-securit...-gnueabihf-4.7 to pull down for the “armhf” image creation
2 - Kali arm git clone.jpg
Step 3:
Check your working directory with “pwd” and then ls to check the gcc-arm directory is there and use this information to export the path
3 - Check pwd and directory.JPG
Step 4:
Export the path with /root/Kali-Git being the working directory and gcc-arm-linux-gnueabihf-4.7/bin being the directory and bin directory contained within that you just cloned from git
4 - Export Kali.JPG
Step 5:
Clone the kali-arm-build-scripts from github
5 - Clone Kali Arm Scripts.JPG
Step 6:
Now as the Pi has a different architecture you need to modify the rpi.sh script in the cloned repository with the editor of your choice
6 - Change to Kali arm scripts dir.JPG
Step 7:
Modifying two separate locations as outlined in the below image
7 - Change Kali architecture.JPG
Step 8:
I also choose to comment out the last few lines at the end in order to be able to troubleshoot and not compress or build a shasum as you can see below and make sure to save it
8 - rpi script comment out.JPG
Step 9:
Copy the following pastebin script from here and create a new file in the kernel directory or alternatively run wget http://pastebin.com/download.php?i=Rv3zpsiv -O rpi-3.1.8.config from the terminal to do this for you and download it straight to the directory ready to edit.
9 - change kernel and create file.JPG
Step 10:
Paste the above pastebin content into the new file, save it and then modify the following line so that we can copy the Raspbian boot directory over afterwards as this is also required in order to make things run smoothly and get rid of X freezing. CONFIG_LOCALVERSION=”-v7″ to CONFIG_LOCALVERSION=”-v7+” you only need to add a + to the end.
10 - Change kernel.JPG
Step 11:
Fix any local dependencies you may require by running the following script
11 - Build Kali dependencies.JPG
Output of the above script should finish like the following with no errors
11.1 - Kali dependencies finish2forum.jpg
Step 12:
Now modify the rpi.sh script for the kernel changes to be picked up and change the kernel number to match the file that you just created
12 - Kali config change2forum.jpg
Step 13:
The output should initiate as below when the rpi.sh script is run with the version number of your choice and be patient as depending on your internet connection this can take some time to complete
13 - run rpi script.JPG
When finished it should look something like this
13.1 - run rpi script finish2forum.jpg
Step 14:
Check the directory and your image are there
14 - check the kali image is created.JPG
Step 15:
Now it is time to burn your image to disc with dd
15 - Kali dd image Pi.JPG
Step 16:
I booted up at this stage and I was getting the freeze that was talked about once Kali is installed.
Step 17:
I then copied the boot loader partition from the Raspbian image over and replaced the files that had been installed on the Kali Pi image just created.
Step 18:
Create a folder in the Kali Pi /lib/ directory on the main partition called modules
18 - Kali mkdir.JPG
Step 19: Copy the directory “3.18.5-v7+” from the Raspbian image over to the Kali Pi /lib/modules/ directory.
19 - Kali kernel module.JPG
Result: Kali Pi is booting up and X is also working and I have to say it is extremely fast! The first Pi was so slow compared to this and I only ever used it via SSH and used the terminal. I don’t think I can use the old one any longer now after this, I might re-purpose it as something but from now all focus is on the RPi 2! One added piece of information to note is that you need to run "apt-get update && apt-get upgrade" if you want to see all the tools available in the GUI as they do not appear until you do that. Otherwise it is very speedy over SSH if you forward X :-)
I have just updated my origional tutorial for the 1.1.10 release with startx freeze solved and wireless injection.
https://cyberkryption.wordpress.com/...aspberry-pi-2/
Cyberkryption
I couldn't get this working. Does anyone mind sending me their .IMG so I can try it?
After some research I found user mpeppels at Raspberry Pi forums who shared his .IMG that works but has some errors in it:
http://www.raspberrypi.org/forums/vi...99619&p=697518
The IMG is there and you can run it on your raspberry pi 2, the only problem is that the Keyboard and mouse stops working after logging in with "root:toor" (which means that the keyboard works while logging in. The startx command does also work) so if anyone knows a fix for this reply please
Is there any video for this? I'm getting abit confused
I followed step by step all the istructions posted by itfellover and kali just boot fine.
The only problem is that kali only sees 118Mb of ram and can't use all the 1Gb.
Is there any suggestion for solving the problem?
Hey all I have just updated the previous screenshots and added some additional steps for clarity hopefully, you can have a look here
@ velix I am not sure what the problem is there unfortunately, I will check tomorrow.
Cyberkryption seems to have things working fully though, I have to look into recompiling the kernel after work tomorrow.
does it matter if this is done in a VM or on another linux box? or does it have be completed on a pi 2 running Raspbian?
kernel compiling is something new for me... itching to get this started...
cyberkryption, thanks for the update. Super easy to follow along and do. Hopefully a new kali config comes out but until then yours is working great.
I needed to run "apt-get update --fix-missing" on the failed install last night when running through Cyberkryptions process for compiling the kernel during the initial apt-get portion of the install. The steps on his blog are working but will take some time to compile, so patience is key here. I have updated the steps on my blog post also to show the steps involved and where it currently is sitting for me at the make modules step.
Nearly there though only the following to go!
make modules install
sudo cp /boot/kernel.img /boot/kernel-bup.img
sudo cp arch/arm/boot/Image /boot/kernel.img
@velix your issue may be due to the image on your SD card not using the full amount of space available, you can start gparted in kali in the terminal by typing "gparted &" without the quotes and following the steps in the guide here just google "raspbian resize partition" for more info. I have yet to make my own partition bigger.
If you run vmstat -s -S M | egrep 'mem|swap' what output are you seeing for your memory?
So after several diff guides ive compiled several versions and so far no go. So i wanted to try cyberkryption's way, the only thing im confused about is the kernel recompile. what dir am i doing this inside of? Am i recomiling the kernel inside the /lib/modules folder on the sd card?
@TehJibba, check out Step 20 revisited here and see if it makes sense.
1) SSH into your Pi with ssh root@kali_pi_ipaddress
Then manually go through the following as you may have an error along the way:
sudo apt-get install linux-source
sudo apt-get install bc gcc gcc-4.6 libc-bin libc-dev-bin libc6 libc6-dev linux-libc-dev make manpages-dev
git clone --depth=1 https://github.com/raspberrypi/linux
cd linux
zcat /proc/config.gz > ~/linux/arch/arm/configs/pi_defconfig
mkdir -p ../patches
wget https://raw.github.com/offensive-sec...ion-3.12.patch -O ../patches/mac80211.patch
patch -p1 --no-backup-if-mismatch < ../patches/mac80211.patch
make pi_defconfig
make modules (Go do something else while this is working away as it takes a long time)
make modules install
sudo cp /boot/kernel.img /boot/kernel-bup.img
sudo cp arch/arm/boot/Image /boot/kernel.img
@tazdevil, I carried out my work in a VirtualBox VM, the only bit I had to do externally was when using dd as this was causing issues so YMMV here too. I just ran dd on a physical linux box.
As for the Kernel compile this is done on the Raspberry Pi itself.
I can't connect to the internet with my Alfa network card, everything just starts to freeze I can't move anything when I'm obtaining the IP adress. Does anyone know why this happens? The Kali runs really good and everything works except the wireless connection.
Thank you for the Great Tutorial, my problem, i can't get it work cause of "pixz"-archive
My Problem, i get error's when i execute the ./build-deps.sh
I get the Fault that i don't have "pixz" installed, and i can't install it.
It's just an archiver/compressor (https://github.com/vasi/pixz)
I got BackTrack 5.1 running on my Computer, and need just a solution to get the "pixz" archive installed.
and to my second Error...
When i execute the ./rpi.sh , it tells me that the kali-armhf directory isn't found (i change it like in the tutorial from armel to armhf...)
Does anybody know a solution for me...
(sorry for my english... )
(btw.. with which Distro you did it... ???)
EDIT: Update...
i don't need the pixz-archiver, in the rpi.sh it tells me:
So i won't need pixz..242 # If you're building an image for yourself, comment all of this out, as you
243 # don't need the sha1sum or to compress the image, since you will be testing it
244 # soon.
245 echo "Generating sha1sum for kali-$1-rpi.img"
246 sha1sum kali-$1-rpi.img > ${basedir}/kali-$1-rpi.img.sha1sum
247 # Don't pixz on 32bit, there isn't enough memory to compress the images.
248 MACHINE_TYPE=`uname -m`
249 if [ ${MACHINE_TYPE} == 'x86_64' ]; then
250 echo "Compressing kali-$1-rpi.img"
251 pixz ${basedir}/kali-$1-rpi.img ${basedir}/kali-$1-rpi.img.xz
252 rm ${basedir}/kali-$1-rpi.img
253 echo "Generating sha1sum for kali-$1-rpi.img.xz"
254 sha1sum kali-$1-rpi.img.xz > ${basedir}/kali-$1-rpi.img.xz.sha1sum
i hope it will work this evening.
Last edited by yzf; 2015-02-27 at 09:01. Reason: Update
Have someone tried to run this process on Kali VM?
Cyberkryption, while I was trying to get a custom program compiled I was getting compile crashes. I noticed that when I ran the free command it showed no swap file. After running the commands below and rebooting I now have no problem with compiling.
sudo nano /etc/dphys-swapfile
sudo dphys-swapfile setup
sudo dphys-swapfile swapon
Yes, but how do i do that? How, or with what kind of program can i get access to the .img file of raspbian? And where do i have to copy the files after doing that?
Any ETA on the official Kali image for Raspberry Pi 2?
The official pre-build Kali Linux 1.1.0 Raspberry Pi 2 image is out!
Source: https://twitter.com/offsectraining/s...19489549144064You asked, we built. A @Raspberry_Pi 2 Kali Linux image now available for download. https://www.offensive-security.com/k...mage-download/
This is a Kali-Linux support forum - not general IT/infosec help.
Useful Commands: OS, Networking, Hardware, Wi-Fi
Troubleshooting: Kali-Linux Installation, Repository, Wi-Fi Cards (Official Docs)
Hardware: Recommended 802.11 Wireless Cards
Documentation: http://docs.kali.org/ (Offline PDF version)
Bugs Reporting & Tool Requests: https://bugs.kali.org/
Kali Tool List, Versions & Man Pages: https://tools.kali.org/
I just downloaded the official image for rpi2, "burned" it using Win32DiskImager, but it doesn't seem to boot. Noobs is working, so the rpi2 seems to be OK (hardware wise).
Anyone else had this problem?
Any hints to make it boot?
for those who are struggling the froze X window, I have a working kali image that solve the problem without coping the old debian kernel modules.
I didn't test further because of time issue. I build yesterday and if you want build you own, you may want to take a look at https://github.com/yhfudev/arch-kali-rpi2.git
Hi everybody,
I'm still quite new to all the ARM devices, so please bear with me if my question seems to be stupid. I've got several Raspberry Pis, with version 2 being my latest device. I didn't want to play around and patch files and copy files from the Debian release to the Pi Image, etc. So I waited for an official Pi2 Image. I was very happy when I found it yesterday and installed it instantly. Then I noticed that only very few tools were installed. I think it was the TOP 10 Release. I'm trying to get a Kali on my Pi that's as complete as possible, so I took a look at the Meta Packages and used something like "apt-get update && apt-get install kali-linux-all". It seemd to work and took quite a while to download, configure and install. When I tried Metasploit afterwards, I received an error message that rake 10.4.2 or something like that was missing, and metasploit terminated. I tried to upgrade rake and ruby, but already had the newest versions. So I did another "apt-get install metasploit", and after that Metasploit worked without any problems. However, other tools like Burp Suite don't seem to work. When I start it, it takes a while with nothing happening. Then I get informed that Burp Suite opened a proxy port, and I can access a Burp Suite Free Edition Web Page with iceweasel and configure this proxy. However, there's no splash screen, and no burp suite opening. In the web browser however, I can take a look at the URL history, but that's all. Other tools won't open at all, like Maltego. In another thread I read that not all the tools were ported to ARM. Can this be the reason that several tools don't work ? Btw: The Meta Package Kali-Linux-All states to be 15 GB in size, while my root partition only was around 9 GB after executing the apt-get command. This would fit to the Kali-Full Metapackage, but I know I didn't use this one.
What can I do to get a kali linux on my Pi2 that is as complete as possible and working on its architecture ? I don't want to miss out on tools that would work like a charm, just because the original image only supports the Top 10. On the other hand I don't want to check manually which tools are working or not and install each of them manually with an apt-get-install.
Something like a maximized Image with all the tools working on the Pi's architecture would be a great thing. But maybe some of you pros out there have a suggestion how to achieve this with little effort.
Thanks a lot already and best regards,
Nephilim
I see we have a working image available now for download which is great!
For anyone wishing to still compile your own version take a look here on my blog as I have now managed to get everything cross compiled for speed and simplicity with the rpi.sh script and wireless injection working. No more copying boot loaders etc from raspbian.
Please search before posting: https://forums.kali.org/showthread.p...pi-armel-image
This is a Kali-Linux support forum - not general IT/infosec help.
Useful Commands: OS, Networking, Hardware, Wi-Fi
Troubleshooting: Kali-Linux Installation, Repository, Wi-Fi Cards (Official Docs)
Hardware: Recommended 802.11 Wireless Cards
Documentation: http://docs.kali.org/ (Offline PDF version)
Bugs Reporting & Tool Requests: https://bugs.kali.org/
Kali Tool List, Versions & Man Pages: https://tools.kali.org/
Uhmmm... Thanks for the reply, g0tmi1k...
Of course I had already searched everytwhere and also read the thread you mentioned. That's why I wrote "In another thread I read that not all the tools were ported to ARM."
However, I don't feel that my question was answered there. So I decided to ask in this thread. My goal is to have a Kali Linux that is as complete as possible, and of course only has working tools installed. Is there any feasible way to achieve this? Or is the current state that I can only pick a meta-package and try each tool manually and remove the ones that won't work? Or is there a list with working and not working tools? Should I rather use the kali-linux-full metapackage?
It would be great if only working tools could be installed and updated on an architecture via apt-get.
Sorry if my questions sound stupid. However, in no other thread or blog or googled page have I found an answer to these questions. If I overlooked anything, I'd be greatful for a link. Many thanks for trying to help!
Nephilim, try this:
wget http://archive.raspberrypi.org/debia...121028_all.deb
wget http://http.us.debian.org/debian/poo....5-4_armel.deb
wget http://http.us.debian.org/debian/poo....4-2_armel.deb
dpkg -i triggerhappy_0.3.4-2_armel.deb
dpkg -i lua5.1_5.1.5-4_armel.deb
dpkg -i raspi-config_20121028_all.deb
raspi-config
sudo apt-get update
sudo apt-get upgrade
apt-get -f install
apt-get install kali-linux-full
apt-get install gnome
apt-get remove metasploit-framework
apt-get install metasploit
Hi
I have a few questions about running Kali on RPI2.
1. I connected the Kali to 1080p HDMI display but it uses only 1600x900 resolution. I cannot change it.
2. Also RPI2 is overclocked to 900MHz, and I need to run it stock.
Seems to me the /boot/config.txt is just ignored. How should I control Kali/RPI2 resolution, memory split and clock?
Thanks
Hey pi guy,
I got a pii 2 and I follow the steps for. Updating and upgrading, then.install raspi-config(raspi-config 20150131) expanee the pi and attempted to do
apt-get install kali-linux-full
It goes several hundred packagea but not all the tools install, i get only 7 tools for kali installed. Something not correct, any thoughts
U need to down the correct image,here is the download link:http://images.kali.org/kali-2.0-rpi2.img.xz
maybe it can help u.
Is there a guide available that I can use to properly install this tool on my Raspberry Pi 2.?
After you install Kali on Raspberry Pi 2 , What is best way to connect it remotely ? ssh is good but i want see full Kali Desktop . what solution you offer ?
vncserver for example
https://forums.kali.org/showthread.p...Raspberry-Pi-2
Hi all. Didn't wanted to make a new tread so I thought I could ask here. I just installed kali 2 onto my rpi 2 and as soon as I start using it it freezes and I have to reboot it manually. Any idea what's happening? I have connected only self powered usb hub (from pihut) and to it I connected my wireless keyboard/mouse also alfa awus036nha wifi adapter.
Last edited by gitruih; 2015-08-24 at 10:01.
maybe start with checking /var/log/syslog where (at least) raspbian dumps all sys messages. then plug off some attached devices, or try other. did you just "dd" the basic image to sd card or maybe used a squashfs with berryboot?