قالب وردپرس درنا توس
Home / Tips and Tricks / Downloading Kali Linux to the Raspberry Pi 4 for the Ultimate Miniature Hacking Station «Zero Byte :: WonderHowTo

Downloading Kali Linux to the Raspberry Pi 4 for the Ultimate Miniature Hacking Station «Zero Byte :: WonderHowTo



In 2019, the Raspberry Pi 4 was released with specifications such as 1 GB, 2 GB or 4 GB memory, a Broadcom BCM2711B0 quad-core A72 SoC, a USB Type-C power supply and two micro-HDMI ports outputs. Apart from performance and hardware changes, Kali Linux on Pi 4 Model B works just as well, if not better, than its predecessors. It also provides support for hacking WiFi on its internal wireless card.

For hackers who are interested in a cheap Kali Linux computer that can hack Wi-Fi without a separate wireless adapter, the Pi 4 Model B is the ideal solution. Run Kali without needing a virtual machine. With the number of Wi-Fi hacking tools included in Kali Linux, the new Pi 4 Model B is a complete Ethernet and Wi-Fi hacking kit for beginners.

Hacking on a 45-Dollar Computer [1
9659004] The reasons for using a raspberry Pi as a hacking computer are many. Earlier Raspberry Pi versions have proven that running tools on Kali Linux does not require expensive hardware. Virtual machines can behave unpredictably, especially when working with wireless hacking. It's also sometimes easier to run Kali on hardware than on a virtual machine.

Another advantage of the Raspberry Pi is that it can be easily used in combination with a device such as an unchanged iPhone or Android smartphone. If your smartphone supports creating a Wi-Fi hotspot, you can easily connect the Pi to your hotspot and control it via SSH. If your smartphone can not create a hotspot, the Pi can also host its own Wi-Fi network so you can connect to the network the Pi has created on your phone and use SSH on the go.

Wi-Fi Hacking Without Network Adapters

One of the most exciting things about using a Raspberry Pi for hacking is the Nexmon firmware add-on. The add-on allows the built-in Wi-Fi network adapter to be set to the monitor mode. This means that, for example, you can retrieve WPA handshakes, listen to Wi-Fi traffic, and run attacks such as WPS pixie without the need for a separate compatible wireless network adapter.

In hacking, the Raspberry Pi 4 Model B offers a Wi-Fi network adapter supported by Kali and an integrated computer that can perform basic cracking and MiTM attacks in a single package. Increasing the speed and performance of the Pi 4 Model B makes it a more powerful network device and a more powerful computer.

While the internal network adapter is able to do all the tasks we want, the process is done. Moving to monitor mode is slightly different from the previous Raspberry Pi. Instead of the familiar command Confirm Start we use a new command to manually add the NIC as a monitor mode device.

What you need

To get started, you need one of the new Raspberry Pi 4 Model B options. You will also need accessories to power and interact with the card, starting with a compatible USB Type-C adapter.

After the release of the Pi 4 Model B it became clear that the specification applicable to the USB C standard had not been followed. With the elimination of a resistor, the new Pi 4 Model B can not be used with "smart" charging cables that adapt to the voltage of everything they're connected to. If you connect an unsupported smart charging cable such as a Macbook Pro USB-C cable, the Pi 4 model B can not be powered.

Except for a supported USB-C cable, you also need a Micro-HDMI adapter. The two micro HDMI ports of the Pi 4 Model B are very small and can easily be confused with micro USB cables, but the two are not compatible.

As with the other models of the Raspberry Pi you need to do this You need a Micro SD card, a card reader, a keyboard and a mouse as well as a monitor to work with the Pi. After initial setup, you should be able to access the Pi without a keyboard or mouse by signing in to SSH over a network.

On Amazon: CanaKit Raspberry Pi 4 Starter Kit with 32GB MicroSD, Official Case, Power Supply & More

Step 1: Download the Kali Disk Image

The first step is to determine which disk image you want to use for the Pi 4 Model B and download it so you can burn it to the microSD card. There are two places where we can get this disk image: The official Kali Web site or the Whitesome website for the potash build "Sticky Fingers," which contains some useful modifications.

While testing I found the "Sticky Fingers". Build had a few issues, so for now I would recommend using the official Kali version to get a guaranteed stable build. If you need the extras of using the Sticky Fingers build, you can download this image from the Whitedome website.

Otherwise, I recommend downloading the file either directly or through a torrent from the Kali Linux download page.

Step 2: Load the MicroSD Card with Etcher

To flash the Kali Linux image onto the Micro 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 9 9 9 9 9 7 4 4 4 4 2 4 4 4 4 4 2 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 8 8 8 8 8 8 8 8 8 and Download Etcher from the official website. Follow the instructions on the screen to install it and open Etcher when the installation is complete. In the window that appears, click the blue button labeled "Select Image" and then load the potash image.

Then click on the blue icon Click the "Select Drive" button and make sure you have the microSD card and not Have your hard drive selected. I know, how could you do that? Well, I saw people try it.

Finally, click on the blue "Flash!" Button for flashing the potash image on your microSD card.

This should take about 15 minutes. Once this is done, eject the microSD card and insert it into your Raspberry Pi 4 Model B powerless B, plug it in and connect the Micro HDMI cable to a monitor. Connect a keyboard and a mouse to the USB ports on the Pi 4 Model B and wait for the loading screen to start.

In the Kali loading screen, enter the default username and password: root and toor to log in. After logging in, we need to update and update Kali Linux for the installation to work. Packages have probably been moved, updated or otherwise altered since our download was created. This step ensures that the latest version of all installed packages has been downloaded.

First, connect to the Internet using Wi-Fi or Ethernet. Then, open a terminal window and run the following command. Keep in mind that the upgrade can take up to an hour on a slow connection.

  ~ # apt update && apt upgrade 

Once you've updated and updated your system, you can begin with the first step Steps to modify default credentials and SSH keys.

Step 4: Change the Root Password and SSH Keys

The use of standard SSH keys is terrible and can be the victim of a man in the middle attack. For this reason, we need to change our default SSH keys and have SSH run at boot to securely communicate with our Raspberry Pi 4 Model B via SSH.

In your terminal window, enter the following commands to change the directory to the folder containing the SSH keys and reconfigure the server.

  ~ # cd / etc / ssh /
~ # dpkg-reconfigure openssh-server 

This should create new SSH keys. Next, we'll run some commands to enable SSH runlevel and start the service at boot so we can log in remotely.

  ~ # update-rc.d -f ssh remove
~ # update-rc.d -f ssh is the default
~ # nano / etc / ssh / sshd_config 

In the following window, make sure that "PermitRootLogin" is disabled to enable root login. Then you can exit the nano window with Ctrl-x after making the changes.

Next, enter sudo service ssh restart to apply these changes. Finally, enter update-rc.d -f ssh enable 2 3 4 5 to enable SSH at boot time with the settings we have applied.

  ~ # sudo service ssh restart
~ # update-rc.d -f ssh enable 2 3 4 5 

Finally, we need to change the root password from to . Enter passwd root and select a new password.

  ~ # passwd root

Enter a new UNIX password:
Enter the new UNIX password again:
passwd: Password updated successfully 

Now our Pi should be updated and updated with a unique password and SSH key. This prevents tools like Rpi-hunter from accessing them.

Step 5: Put the Internal Card in Monitor Mode

Next we put our card in wireless monitoring mode Allow us to do some useful things, including WPA handshakes and monitoring network traffic. We will do this by creating a monitor interface instead of invoking airmon-ng as usual. That's because we're using the Nexmon patch, a firmware update that puts the Pi's internal card in monitor mode. To do this, open a terminal window and enter the following commands.

  ~ # iw phy `iw dev wlan0 info | gawk # / wiphy / {printf "phy" $ 2} & # 39; `Add monitor of type mon0
~ # ifconfig mon0 up
~ # ifconfig 

Now a new interface named "mon0" should be displayed, which is in monitor mode and can be used. If this did not work, you can run these commands instead.

  ~ # sudo iw phy phy0 interface add mon0 type monitor
~ # ifconfig mon0 up
~ # ifconfig 

To test the map, we can now use airodump-ng to see if it works, and to gather information about nearby networks. Enter the following and Wi-Fi networks should be displayed nearby.

  ~ # airodump-ng mon0 

The following command also lets us perform a package injection test.

  ~ # aireplay- ng --test mon0 

If you see a successful test on your screen, it works! Your Raspberry Pi has a monitor mode user interface.

There are not many surprises when Kali runs on the new Pi The use of Kali Linux remains almost unchanged. The Pi 4 Model B makes it easy for hackers to load Kali or other operating systems, and the advantage of not requiring a separate Wi-Fi network adapter makes it the perfect option for those looking for a cost-effective, dedicated Kali Linux hacking computer ,

I hope you liked this tutorial on loading Kali Linux on the Raspberry Pi 4 Model B! If you have questions about this tutorial on hacking with the Raspberry Pi 4, leave a comment below and feel free to contact me on Twitter @KodyKinzie .

Do Not Miss: Using the Buscador OSINT VM to Conduct Online Investigations

Cover Photo of Kody / Null Byte




Source link