directory
The preparatory work
How to Configure networking
How do I find the IP address of raspberry PI
How do I configure SSH login
How to Configure networking
Modify the apt source
Installing the Remote Desktop
Update to the full version of Kali
The preparatory work
Tool download: www.balena.io/etcher/, optionally…
Raspberry pie image download: www.raspberrypi.org/downloads/r…
Kali image download: www.offensive-security.com/
After decompressing, use the Etcher to burn the image into the SD card.
Ok.
The following for different systems, to solve the Raspberry PI Internet access, access, update source and other issues.
How to Configure networking
After burning, do not pull out the SD card temporarily, you will find that the computer more than a partition boot partition.
Create a new file, wpa_supplicant.conf
Content as follows:
country=CN
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="WiFi-A"
psk="12345678"
key_mgmt=WPA-PSK
priority=1
}
Copy the code
How do I find the IP address of raspberry PI
Run the fping command to discover the IP address of the host in the network segment of your own computer
Fping -ag 192.168.1.0/24 > ip_alive.txtCopy the code
-A is alive
-g Indicates that the network segment is scanned
Use nMAP to scan SSH ports for these IP addresses (22)
File: scan.sh
IP_LIST=$(cat iplist.txt)
for IP in $IP_LIST
do
nmap -sT -p 22 $IP
done
Copy the code
Generally, the host does not open port 22. Therefore, the IP address with 22 as open is the IP address of raspberry PI
Or:
Go to the router management page to check the IP address of the raspberry PI device.
How do I configure SSH login
Create a new file named SSH in the boot partition.
Then you can power it up by using your username PI and password raspberry.
How to Configure networking
If you remove the network cable, the wireless card will not get the IP address.
ifconfig -a
vim /etc/network/interfaces
Copy the code
pi@raspberrypi:~ $ cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.0.110
# gateway 192.168.0.1
netmask 255.255.255.0
auto wlan0
iface wlan0 inet dhcp
wpa-ssid WIFI-SSID
wpa-psk WIFI-KEY
Copy the code
Modify the apt source
deb http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
deb-src http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
Copy the code
Installing the Remote Desktop
apt-get install tightvncserver
tightvncserver
Copy the code
Set the remote connection password as required on startup.
Then use VNC Viewer to log in to the remote desktop with IP:1 Enter the password roottoor you just set. If the keyboard is not responsive, you can set the Windows host keyboard to the system default English mode.
Update to the full version of Kali
apt-get update
apt-get updgrade -y
apt-get install kali-linux-full -y
Copy the code