
import scapy.all as scapy
import re

print(r"""                 ____     ___ 
\ \                    / / | (_)\  | _ \
 \ \       ____       / /  |  ___| || \ \
  \ \     / /\ \     / /   | |     ||  | |    
   \ \   / /  \ \   / /    | |     ||_/ /
    \_\_/_/    \_\_/_/     |_|     |___/""")
print("\n****************************************************************")
print("\n* Copyright of WPD, 2021                              *")
print("\n****************************************************************")

ip_add_range_pattern = re.compile("^(?:[0-9]{1,3}\.){3}[0-9]{1,3}/[0-9]*$")

while True:
    ip_add_range_entered = input("\nPlease enter the ip address and range that you want to send the ARP request to (ex 192.168.1.0/24): ")
    if ip_add_range_pattern.search(ip_add_range_entered):
        print(f"{ip_add_range_entered} is a valid ip address range")
        break


arp_result = scapy.arping(ip_add_range_entered)


import scapy.all as scapy
import re

print(r"""                 ____     ___ 
\ \                    / / | (_)\  | _ \
 \ \       ____       / /  |  ___| || \ \
  \ \     / /\ \     / /   | |     ||  | |    
   \ \   / /  \ \   / /    | |     ||_/ /
    \_\_/_/    \_\_/_/     |_|     |___/""")
print("\n****************************************************************")
print("\n* Copyright of WPD, 2021                              *")
print("\n****************************************************************")

ip_add_range_pattern = re.compile("^(?:[0-9]{1,3}\.){3}[0-9]{1,3}/[0-9]*$")

while True:
    ip_add_range_entered = input("\nPlease enter the ip address and range that you want to send the ARP request to (ex 192.168.1.0/24): ")
    if ip_add_range_pattern.search(ip_add_range_entered):
        print(f"{ip_add_range_entered} is a valid ip address range")
        break


arp_result = scapy.arping(ip_add_range_entered)

____     ___ 
 \ \                    / / | (_)\  | _ \
  \ \       ____       / /  |  ___| || \ \
   \ \     / /\ \     / /   | |     ||  | |    
    \ \   / /  \ \   / /    | |     ||_/ /
     \_\_/_/    \_\_/_/     |_|     |___/