mirror of
https://github.com/k4m4/kickthemout.git
synced 2025-07-15 14:09:03 +02:00
added method utils before socket
This commit is contained in:
parent
d114861fb1
commit
d351b4acde
1 changed files with 2 additions and 2 deletions
4
kickthemout.py
Normal file → Executable file
4
kickthemout.py
Normal file → Executable file
|
@ -163,7 +163,7 @@ def kickoneoff():
|
||||||
for host in hostsList:
|
for host in hostsList:
|
||||||
if host[0] == onlineIPs[i]:
|
if host[0] == onlineIPs[i]:
|
||||||
mac = host[1]
|
mac = host[1]
|
||||||
hostname = socket.gethostbyaddr(onlineIPs[i])[0]
|
hostname = utils.socket.gethostbyaddr(onlineIPs[i])[0]
|
||||||
vendor = resolveMac(mac)
|
vendor = resolveMac(mac)
|
||||||
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"+ vendor + " (" + hostname + ")""{4}").format(YELLOW, WHITE, RED, GREEN, END)
|
||||||
|
|
||||||
|
@ -228,7 +228,7 @@ def kicksomeoff():
|
||||||
for host in hostsList:
|
for host in hostsList:
|
||||||
if host[0] == onlineIPs[i]:
|
if host[0] == onlineIPs[i]:
|
||||||
mac = host[1]
|
mac = host[1]
|
||||||
hostname = socket.gethostbyaddr(onlineIPs[i])[0]
|
hostname = utils.socket.gethostbyaddr(onlineIPs[i])[0]
|
||||||
vendor = resolveMac(mac)
|
vendor = resolveMac(mac)
|
||||||
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" + vendor + " (" + hostname + ")" "{4}").format(YELLOW, WHITE, RED, GREEN, END)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue