Linux Python Script: Arper - Check Your LAN for Unknowns Devices

in #utopian-io7 years ago

What is Arper?

Arper is a simple script that lets you find devices on your LAN with arp scan. It logs the IP address, MAC address and detection time of the devices included in LAN.

Download

GitHub Source Repository

Prerequisites

This script uses the scapy, setuptools and netifaces library. You can install they with pip :

pip install scapy
pip install netifaces
pip install setuptools

How to use ?

Run main.py file with root privilages :

sudo python main.py

or install script with setup.py file :

sudo python setup.py install

Command line arguments

-i or --interface: Select network interface for arp scan

-m or --mask: Set your mask range (Default range: 24)

-l or --log: You can see log file.

Examples

sudo python main.py
sudo python main.py -i wlp2s0
sudo python main.py -m 30
sudo python main.py -i wlp2s0 -m 30
sudo python main.py -l

or

sudo arper
sudo arper -i wlp2s0
sudo arper -m 30
sudo arper -i wlp2s0 -m 30
sudo arper -l

Usage examples screenshots

Ekran Görüntüsü - 2017-12-30 15-19-32.png

Ekran Görüntüsü - 2017-12-30 15-21-53.png

Ekran Görüntüsü - 2017-12-30 15-22-01.png

Ekran Görüntüsü - 2017-12-30 15-22-17.png



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Thank you for the contribution. It has been approved.

However, I noticed your tool isn't compatible with the latest python version. I suggest to migrate your code to python 3.x if there's no good reason to stick with 2.7.

You can contact us on Discord.
[utopian-moderator]

Thank you for your advice. As I was integrating into Python 3.x, I had some problems with Scapy, so I temporarily suspended it :) But i will do it soon.

Hey @gokaykayki I am @utopian-io. I have just upvoted you!

Achievements

  • You have less than 500 followers. Just gave you a gift to help you succeed!
  • Seems like you contribute quite often. AMAZING!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x