An anti-ARP-spoofing application software that use active & passive scanning methods to detect and remove any ARP-spoofer from the network.

Similar projects worth following
ARP spoofing allows an attacker to intercept data frames on a network, modify the traffic, or stop all traffic. Often the attack is used as an opening for other attacks, such as denial of service, man in the middle, or session hijacking attacks. This anti- ARP spoofing program, (shARP) detects the presence of a third party in a private network actively & passively. It has 2 modes: defensive and offensive.

Defensive mode - Defensive mode protects the end user from the spoofer by disconnecting the user's system from the network. This mode also alerts the user by an audio message as soon as spoofing is detected.

Offensive mode - Offensive mode disconnects the user's system from the network and further kicks out the attacker by sending De-authentication packets to his system, this doesn't let him reconnect to the network until the program is manually reset.

Active Scan - Use when your system is left idle most of the time. Active scan is most efficient method to protect you system and the network from ARP-spoofing incidents.

Passive Scan - Use when your system is busy transferring data through the network. Passive scan is efficient in for constant data transfering devices as your device and the network would be secured from ARP-spoofing incidents without compromising the speed or the network bandwidth.


The program creates a log file (/usr/shARP/)containing the details of the attack such as the attackers mac address, mac vendor, time and date of the attack.

We can identify the NIC of the attackers system with the help of the obtained mac address. The whole program is designed specially for linux and is written in Linux shell command (bash command). In the offensive mode the program downloads an open-source application from with the permission of the user namely aircrack-ng (if not present in the user's system already). Since this is written in python language, you must have python installed on your system for it to work. Visit for more info.

Edits -

If you wish to get an audio alert please download espeak otherwise comment out those lines in the source code.

Note -

  1. I won't suggest using this software over wired connections, especially in offensive mode as it might cause network instability.
  2. Use the offensive mode only with the NICs that supports monitor mode.
  3. Offensive mode does DOS attack on the ARP-spoofer. So use Offensive mode only after making sure that you have appropriate right over the network and the devices connected to it and make sure that doing so is legal in your Country/State.


plain - 320.32 kB - 05/23/2017 at 06:47


Bourne Shell Script - 10.28 kB - 05/23/2017 at 06:46


Bourne Shell Script - 3.59 kB - 05/23/2017 at 06:46


plain - 1.42 kB - 05/23/2017 at 06:46


  • 1 × Linux OS
  • 1 × python 2.7.x
  • 1 × Network card supporting monitor mode

  • 1
    Step 1

    bash ./ -r -[mode] [interface] to reset the network card and driver.

    bash ./ -d -[mode] [interface] to activate the program in defense mode.

    bash ./ -o -[mode] [interface] to activate the program in offense mode.

    bash ./ -h for help.

    mode -

    -p or --passive = To perform passive scanning.

    -a or --active = To perform active scanning

    interface - the network device you want to use

View all instructions

Enjoy this project?



Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates