Skip to main content

Find pi's on the network faster than nmap!

Project description

findpi

What

Find all the raspberry pi devices on your network really fast using multithreading in Python 3.x and find them fast.

Stats

Ok, so to compare this to just running nmap vs. findpi:

run 1 run 2 run 3 average
nmap v7.80 6.007 total 5.679 total 4.633 total 5.44 total
findpi v1.0.3 2.899 total 2.682 total 2.696 total 2.76 total

Why

I was sick of waiting forever for the arp / nmap commands to work single-threaded.

Also, arp only works for devices you have seen previously, so you could easily miss things.

Usage

pip3 install findpi then sudo findpi use multithreading to get the job done.

NOTE: Must Use SUDO

The application asks you what ip address or range you want to select. The default tries to figure out your current network and set it as default. Examples are 192.168.1.0/24, etc. If you want to check just one ip address, you can put that in as well, like 10.2.2.113 for instance.

sudo findpi -c 32 the number at the end is the number of threads to use, with the default being 4 times whatever cores findpi discovers about your machine, will return the following:

What network do you want to check? (10.2.2.0/24):
Found pi: 10.2.2.113
Found pi: 10.2.2.117
Found pi: 10.2.2.119
Found pi: 10.2.2.137

Troubleshooting

  1. If you se the threads too high for your system (should be a factor of number of cores) you will start to see timeout errors like the following QUITTING! dnet: Failed to open device en0. The mitigation is to lower the number of threads or leave it at the default.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

findpi-1.1.7.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

findpi-1.1.7-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file findpi-1.1.7.tar.gz.

File metadata

  • Download URL: findpi-1.1.7.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.2

File hashes

Hashes for findpi-1.1.7.tar.gz
Algorithm Hash digest
SHA256 8b21fd2f3ebabfb3b0df80530df0a30d1bc31c1dd9d2aa81165974d35bd0d2be
MD5 69e44fe8f62c235b6668747b9993b16d
BLAKE2b-256 5dd35e5255e2538c95068d03bbea23a1dda69c72079c3f46397bae21a1044ef9

See more details on using hashes here.

File details

Details for the file findpi-1.1.7-py3-none-any.whl.

File metadata

  • Download URL: findpi-1.1.7-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.2

File hashes

Hashes for findpi-1.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 66c2b35d3e88046f85b2faa4add89ad1eed9dfc6e7599c1ba8dfe1a401a86aa1
MD5 5f8d501cdcdccba4e8775c9cd7ea2c7e
BLAKE2b-256 650cb47833326af712d654e8cf8e0388e83e482ae70edb685c873fd85085e606

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page