Skip to content

Commit

Permalink
Terminal UI changed
Browse files Browse the repository at this point in the history
  • Loading branch information
apantzar committed Apr 17, 2021
1 parent a54d559 commit 9fd1498
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions netScanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@ def scanner(ip):

########################Sends packet & Recieves response############################################
answer = scapy.srp(arpRequestBroadcastComb, timeout=1, verbose=False)[0]
print("IP\t\t\tMAC\n-------------------------------------------------------")
print("\n<==============================[ Results ]==============================>\n")
print(" IP\t\t\t\tMAC\n+-------------------------------------------------------+")
for element in answer:
print(color.GREEN + "IP: " + color.DEFAULT + element[1].psrc + "\t\t" + color.RED + "MAC: " + color.DEFAULT +
print(color.GREEN + " IP: " + color.DEFAULT + element[1].psrc + " " + color.RED + "MAC: " + color.DEFAULT +
element[1].hwsrc)

print("-------------------------------------------------------")

print("+-------------------------------------------------------+")
print("\n<=======================================================================>\n")
def updater():
subprocess.call("sudo apt update", shell=True);
subprocess.call("sudo apt install python3-pip", shell=True);
Expand All @@ -49,3 +50,5 @@ def updater():
subprocess.call("sudo route -n", shell=True);
print("")
scanner(input(color.BLUE + "Give ip or range to scan: " + color.DEFAULT))
print("")

0 comments on commit 9fd1498

Please sign in to comment.