From 89fcd407339fb5288b5198b9d2604c802c55d493 Mon Sep 17 00:00:00 2001 From: R3DDY97 Date: Tue, 21 Nov 2017 14:12:20 +0530 Subject: [PATCH] added uitls.socket for hostnames --- kickthemout.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kickthemout.py b/kickthemout.py index cdf7472..ce9235c 100644 --- a/kickthemout.py +++ b/kickthemout.py @@ -165,8 +165,7 @@ def kickoneoff(): mac = host[1] vendor = resolveMac(mac) hostname = utils.socket.gethostbyaddr(onlineIPs[i])[0] - print(" [{0}" + str(i) + "{1}] {2}" + str(onlineIPs[i]) + "{3}\t" + vendor + " - " + hostname + "{4}" ).format(YELLOW, WHITE, RED, GREEN, END) - + print(" [{0}" + str(i) + "{1}] {2}" + str(onlineIPs[i]) + "{3}\t" + mac + "{4}\t" + vendor + " - " + hostname "{5}").format(YELLOW, WHITE, RED, BLUE, GREEN, END) canBreak = False while not canBreak: