Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
babylard committed Oct 19, 2023
1 parent 4bc4efb commit ed4627d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import scapy.all as scapy
import re
import datetime
import itertools
import threading
Expand All @@ -9,6 +10,7 @@


router = input("Input IP of the router you would like to scan: ")
range = input("Range (24 is reccomended): ")
done = False

def animate():
Expand All @@ -18,7 +20,7 @@ def animate():
sys.stdout.write('\rSending ARP requests (Takes longer with many devices on network) ' + c)
sys.stdout.flush()
time.sleep(0.1)
sys.stdout.write('\n\rDone ')
sys.stdout.write('\n\rDone \nPress Enter to exit...')

t = threading.Thread(target=animate)

Expand All @@ -32,7 +34,7 @@ def scan(ip):
print(element[1].psrc + "\t\t" + element[1].hwsrc)

t.start()
scan(router + "/24")
scan(router + "/" + range)
done = True

input("")

0 comments on commit ed4627d

Please sign in to comment.