added uitls.socket for hostnames

This commit is contained in:
R3DDY97 2017-11-21 14:12:20 +05:30
parent dc0efe389e
commit 89fcd40733
1 changed files with 1 additions and 2 deletions

View File

@ -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: