BusesCanFly / rpi-hunter

Auto discover and exploit LAN raspberry pi's
105 stars 15 forks source link

Does not find RPis with wireless interface #1

Closed tvoverbeek closed 5 years ago

tvoverbeek commented 5 years ago

The scan only finds RPi-s which are connected with wired ethernet. I have several RPi-s on my local network which are WiFi only. These are not found. I realize this is inherent to using the arp protocol since arp is for wired ethernet.

BusesCanFly commented 5 years ago

Arp is not just for wired connections, but were you specifying your etherjet interface (i.e. eth0) instead of a wireless interface (i.e. wlan0)?

BusesCanFly commented 5 years ago

Here's a good link to learn about the ARP protocol https://youtu.be/4xaWoZE8eik

tvoverbeek commented 5 years ago

Yes, arp also works on wireless. However my home network consists of part wired and 2 different wireless networks, all part of 192.168.200.0/24. The scan was run on my Mac OSX 10.14 with arp-scan from macports via its wireless interface. Only the wireless clients connected to the same wireless network and the wired clients will show up, not the ones connected to the 2nd wireless network. When I switch to the other wireless network the Pi ZeroW and 3B show up. Clients with USB WiFi adapters do not show up, since they are identified with the adapter chip manufacturer. This is to be expected the way arp works. Looking into nmap to see if I can get a scan of the complete network.

BusesCanFly commented 5 years ago

Oh interesting! If all you're looking for is to automate pushing commands to all of them, theres a slightly dumb way to do it that works just fine. In rpi-hunter, the arp-scan results are saved to a file in the ./scans/ directory. Just make a file there containing each IP address of the pi on a different line, and specify that file with --no-scan -f [FILENAME] (Assuming all are reachable from the network you are currently on)

tvoverbeek commented 5 years ago

@BusesCanFly Yes, I saw the --no-scan option and will probably use it to keep all my RPi-s at the same update level. Thanks for your software