Raspberry Pi

How to Set Up RNDIS USB Network (usb0) on Kali Linux

RNDIS allows a device (like an Android phone, Raspberry Pi Zero, or BeagleBone) to act as a USB Ethernet gadget, creating a virtual network interface (usually usb0) on the host machine.

  • Step 1: Connect the Device via USB

  • Step 2: Check the Interface

    Look for an interface named usb0. If it's there, you're good to go.

  • Step 3: Set Static IP for usb0 Edit the network configuration:

sudo nano /etc/network/interfaces
  • Add this

auto usb0
iface usb0 inet static
    address 10.0.0.1
    netmask 255.255.255.0
    gateway 10.0.0.1
  • restart connection

sudo ifdown usb0 && sudo ifup usb0

Update the swapfile

https://miloserdov.org/?p=2667

Raspberry pi zero 2 W

The default firmware of the chipset was not compatible to monitor mode and packet injection. So we need to get external adaptor to wifi pentesting.

But we can also update the firmware to make the build-in wifi adapter use full for wifi pentesting.

Update Raspberry pi zero 2 W chipset adapter

ref: https://www.youtube.com/watch?v=U3eldMLq2cc&t=31s

Make sure you connected to the wifi network and internet and able to SSH into raspberry 02W.

Download the current version of the Re4son kernel

Then text, extract the file

Install the kernel

Test monitor mode

start monitor mode

test airodump-ng

packet injection test

Last updated