mdelatorre icon

Installing Kali in Raspberry Pi 3

mdelatorre | PRO | 11/14/17 12:13:38 AM UTC | 0 ⭐ | 658 👁️ | Never ⏰ | []
text |

1.58 KB

|

None

|

0 👍

/

0 👎

+ Download the image from the following site:
   https://www.offensive-security.com/kali-linux-arm-images/
 + Uncompress the downloaded file:
   unxz -v kali-<version>.img.xz 
 + Copy the image to your SD CARD device (in this case /dev/sdb)
   dd if=kali-<version>.img of=/dev/sdb bs=4M iflag=fullblock oflag=direct status=progress
 + Set a new password for the root user
   passwd
 + Upgrade the system
     apt-get update
    apt-get dist-upgrade
 + Install OpenSSH Server (in case is not installed)
     apt-get install openssh-server
    update-rc.d -f ssh defaults
 + Reconfigure the OpenSSH server to generate new host keys
     cd /etc/ssh/
    mkdir insecure_old
    mv ssh_host* insecure_old
    dpkg-reconfigure openssh-server
 + Allow root login through SSH
    	vim /etc/ssh/sshd_config
      	PermitRootLogin without-password -> PermitRootLogin yes
    sudo service ssh restart
 + Resize partition
   Option 1:
    apt-get install gparted
    gparted
      select ext4 file system 
      click the “Resize/Move” button
      select all the free space
      click the “Resize” button and the “Apply” button
   Option 2:  
    resize2fs /dev/<device>
 + Configure Autologin for Headless Operation
     useradd -m eve -G sudo -s /bin/bash
    passwd eve
    vim /etc/lightdm/lightdm.conf
      autologin-user=root
      autologin-user-timeout=0
	vim /etc/pam.d/lightdm-autologin
    	# Allow access without authentication
    	### auth required pam_succeed_if.so user != root quiet_success 
    	auth required pam_permit.so
	reboot

Comments