Skip to main content

A class which sends an ARP Request to know if a host is online on local networks

Project description

General

ArpRequest is a Python module designed to make an ARP gratuitous request to know if a host is online. It acts on OSI model’s level 2 unlike icmp echo (ping), so, you can use it without IP configuration, or to “ping” an host in other IP network. However, you can only use it on local networks.

Usage

>>> from arprequest import ArpRequest
>>> ar = ArpRequest('10.0.0.1', 'eth0')
>>> ar.request()
True
>>> ar2 = ArpRequest('10.0.0.123', 'eth0') # 10.0.0.123 doesen't exist
>>> ar2.request()
False

Changelog

0.3 :

  • You can now select type of ARP request. This is done with “arp_type” argument of ArpRequest class. You can use arprequest.ARP_GRATUITOUS to make an ARP Gratuitous request (what is currently done) or use arprequest.ARP_STANDARD to do a standard ARP request.

    This option was created to use this library with systems which are configured to block Arp Gratuitous.

Constraints

  • ArpRequest work only on unix or unix-like platforms because it uses unix signals.

  • ArpRequest work only as root, because it uses raw sockets.

  • Module is commented in french. I will translate comments in english, some day…

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

arprequest-0.3.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

arprequest-0.3-py2.6.egg (6.0 kB view details)

Uploaded Source

File details

Details for the file arprequest-0.3.tar.gz.

File metadata

  • Download URL: arprequest-0.3.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for arprequest-0.3.tar.gz
Algorithm Hash digest
SHA256 ddcbed9a2f7661a4683a4e3c2e9899f027bc5d3174d8486ad3587b1063fa6e3f
MD5 d9306278d5695fa840167740a96bf70b
BLAKE2b-256 55373ca8540cc03c724dc1fc39136000cd030d48468d91543367c014580b56b1

See more details on using hashes here.

File details

Details for the file arprequest-0.3-py2.6.egg.

File metadata

  • Download URL: arprequest-0.3-py2.6.egg
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for arprequest-0.3-py2.6.egg
Algorithm Hash digest
SHA256 db55e4ad58b1cda4c7e9102da27cb52f1abb155998ef706ce0291b4c60e37e97
MD5 4c71210c9ed2a1d60f89c818cfb64cc8
BLAKE2b-256 b8a04c80b17f114eb26db88422f9d35e9e96d2637bb97e4de4866efe1433e966

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