Projects Raspberry Pi

Network Testing

||||| 0 Like |||||

Do you have many Raspberry Pi's on your network, with DHCP (dynamic IP addresses)? If so – then I have a script for you!

I have put together a python script that will scan your network for Raspberry Pi's and then try and connect to them via SSH.

So not only can you find your Raspberry Pi's, but you can confirm that any on the network have changed the default password!

This code uses several python libraries not installed by default, so you will need to get them installed before this will run.

sudo pip install pexpect
sudo pip install python-nmap
sudo pip install 
sudo apt-get install libjpeg-dev
sudo apt-get install python-dev

I may have missed some, so please let me know if you get any errors!

Here is a quick video showing it scanning my home network:

Special thanks goes to Keith Ellis from the Ipswich Makerspace ( for the code that got me started with this project!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.