วันพฤหัสบดีที่ 26 กุมภาพันธ์ พ.ศ. 2558

Set Time Automatic update for Raspberry Pi

Go to http://support.ntp.org/bin/view/Servers/NTPPoolServers to get server for your region

Then

# nano /etc/ntp.conf
Edit server list by replace server for your region

server 0.th.pool.ntp.org iburst
server 1.th.pool.ntp.org iburst

Restart ntp daemon
# sudo /etc/init.d/ntp restart
Test

# date 
Thu Feb 26 21:54:58 ICT 2015 

วันอังคารที่ 24 กุมภาพันธ์ พ.ศ. 2558

Install raspi-config for Kali on Raspberry Pi 2

Install raspi-config utility for Kali on Raspberry Pi 2

# apt-get install parted
# apt-get install lua5.1
# apt-get install triggerhappy

# wget http://archive.raspberrypi.org/debian/pool/main/r/raspi-config/raspi-config_20150131-1_all.deb
# dpkg -i raspi-config_20150131-1_all.deb

Mount /boot partition in Kali for Raspberry Pi

If you want to place your config file to /boot/config.txt in Kali Linux for Raspberry Pi as you did on Raspbian. You will find that /boot directory on Kali is not a boot partition.

To use the boot partition, you need to mount it.

Create the directory (I use /media/boot to avoid conflict with /boot)
$ mkdir /media/boot
Mount it permanently for all users
$ nano /etc/fstab
Edit the content of /etc/fstab as following:
/dev/mmcblk0p1   /media/boot   vfat   user,fmask=0111,dmask=0000   0   0
Now, you can use the boot partition for your config file via /media/boot which you can write it on your PC when you insert your SD Card to card reader on PC




Enable SSH service on Kali Raspberry Pi

SSH is not enable by default on Kali for Raspberry Pi. If you want to access your Raspberry Pi via ssh, you need to install OpenSSH and enable it. This blog will show you how to do.

First, check if ssh service is installed

$ service --status-all
If ssh not be shown on list, you need to install OpenSSH by using command

$ apt-get install openssh-server
Then enable it
$ update-rc.d -f ssh defaults
 Now, you can access your Raspberry Pi Kali using ssh.


In case you got problem starting ssh, just remove and enable ssh service again.

$ update-rc.d -f ssh remove
$ update-rc.d -f ssh defaults

 

 

Kali Linux 1.1.0 for Raspberry Pi 2 Model B

I plan to use Raspberry Pi 2 Model B as a drop-box device for penetration test due to it's small foot print and has a reasonable CPU power while it can run using battery.

I started by compile Kali Linux 1.1.0 for Raspberry Pi 2 using instruction from Pro Checkup Blog

In case you do not want to compile by yourself, you can download it from here: 

Kali Linux 1.1.0 image for Raspberry Pi 2 Model B

After boot Kali 1.1.0 on Raspberry Pi 2, run following update
# apt-get install sudo
# apt-get install parted
Then expand the image to the full size of the SD Card
# /scripts/rpi-wiggle.sh
Then install Kali full Linux
# apt-get update
# apt-get install kali-linux-full