mirror of
https://github.com/k4m4/kickthemout.git
synced 2025-07-15 14:09:03 +02:00
Merge ecc77bba53
into a2e04329a9
This commit is contained in:
commit
36d7f15808
1 changed files with 5 additions and 3 deletions
|
@ -164,7 +164,8 @@ def kickoneoff():
|
|||
if host[0] == onlineIPs[i]:
|
||||
mac = host[1]
|
||||
vendor = resolveMac(mac)
|
||||
print(" [{0}" + str(i) + "{1}] {2}" + str(onlineIPs[i]) + "{3}\t" + mac + "{4}\t" + vendor + "{5}").format(YELLOW, WHITE, RED, BLUE, GREEN, END)
|
||||
hostname = utils.socket.gethostbyaddr(onlineIPs[i])[0]
|
||||
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:
|
||||
|
@ -228,7 +229,8 @@ def kicksomeoff():
|
|||
if host[0] == onlineIPs[i]:
|
||||
mac = host[1]
|
||||
vendor = resolveMac(mac)
|
||||
print(" [{0}" + str(i) + "{1}] {2}" + str(onlineIPs[i]) + "{3}\t" + vendor + "{4}").format(YELLOW, WHITE, RED, GREEN, END)
|
||||
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)
|
||||
|
||||
canBreak = False
|
||||
while not canBreak:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue