Skip to content

Install Rayhunter from Windows with WSL

oopsbagel edited this page Apr 29, 2025 · 1 revision

Below are unsupported installation instructions that have proven successful.

  1. Install Windows Subsystem for Linux (WSL)

    wsl --install
  2. Follow the Microsoft instructions on how to install USBIPD-WIN, which allows WSL to communicate with USB devices

  3. Follow steps 1-3 from the Setup instructions above

  4. In an administrator powershell prompt, run usbipd list. Locate the device, like in the example below. Note the BUSID, you will need this.

    PS C:\> usbipd list
    Connected:
    BUSID  VID:PID    DEVICE                                                        STATE
    2-8    <GUID>     Remote NDIS based Internet Sharing Device                     Not shared
  5. Bind the USB device and then attach it to WSL with the commands below. Be sure to replace BUSID with the one you captured from the previous step.

    PS C:\> usbipd bind --busid BUSID
    PS C:\> usbipd attach --wsl --busid BUSID

    If successful, you should see an output like below

    usbipd: info: Using WSL distribution 'Ubuntu' to attach; the device will be available in all WSL 2 distributions.
    usbipd: info: Detected networking mode 'nat'.
    usbipd: info: Using IP address 172.25.48.1 to reach the host.

    Keep this command prompt open for later steps.

  6. Open up your WSL prompt, by searching for wsl in Windows start menu.

  7. Navigate to the location of the install.sh script.

  8. Run sudo ./install.sh.

  9. Every time the device restarts, run the usbipd attach --wsl --busid BUSID in the administrator powershell command prompt

Thank you @governmentSponsored for contributing these instructions.

Clone this wiki locally