mdelatorre

Installing Kali in Raspberry Pi 3

Nov 13th, 2017
283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.58 KB | None | 0 0
  1. + Download the image from the following site:
  2.  
  3. https://www.offensive-security.com/kali-linux-arm-images/
  4.  
  5. + Uncompress the downloaded file:
  6.  
  7. unxz -v kali-<version>.img.xz
  8.  
  9. + Copy the image to your SD CARD device (in this case /dev/sdb)
  10.  
  11. dd if=kali-<version>.img of=/dev/sdb bs=4M iflag=fullblock oflag=direct status=progress
  12.  
  13. + Set a new password for the root user
  14.  
  15. passwd
  16.  
  17. + Upgrade the system
  18.  
  19. apt-get update
  20. apt-get dist-upgrade
  21.  
  22. + Install OpenSSH Server (in case is not installed)
  23.  
  24. apt-get install openssh-server
  25. update-rc.d -f ssh defaults
  26.  
  27. + Reconfigure the OpenSSH server to generate new host keys
  28.  
  29. cd /etc/ssh/
  30. mkdir insecure_old
  31. mv ssh_host* insecure_old
  32. dpkg-reconfigure openssh-server
  33.  
  34. + Allow root login through SSH
  35. vim /etc/ssh/sshd_config
  36. PermitRootLogin without-password -> PermitRootLogin yes
  37. sudo service ssh restart
  38.  
  39. + Resize partition
  40.  
  41. Option 1:
  42. apt-get install gparted
  43. gparted
  44. select ext4 file system
  45. click the “Resize/Move” button
  46. select all the free space
  47. click the “Resize” button and the “Apply” button
  48.  
  49. Option 2:
  50. resize2fs /dev/<device>
  51.  
  52. + Configure Autologin for Headless Operation
  53.  
  54. useradd -m eve -G sudo -s /bin/bash
  55. passwd eve
  56. vim /etc/lightdm/lightdm.conf
  57. autologin-user=root
  58. autologin-user-timeout=0
  59. vim /etc/pam.d/lightdm-autologin
  60. # Allow access without authentication
  61. ### auth required pam_succeed_if.so user != root quiet_success
  62. auth required pam_permit.so
  63. reboot
Add Comment
Please, Sign In to add comment