mirror of
https://github.com/k4m4/kickthemout.git
synced 2024-11-22 13:04:25 +01:00
Merge branch 'master' of https://github.com/k4m4/kickthemout
This commit is contained in:
commit
db431c16f0
@ -131,16 +131,14 @@ def kicksomeoff():
|
|||||||
while not canBreak:
|
while not canBreak:
|
||||||
try:
|
try:
|
||||||
choice = raw_input("\nChoose devices to target(comma-separated): ")
|
choice = raw_input("\nChoose devices to target(comma-separated): ")
|
||||||
canBreak = True
|
if ',' in choice:
|
||||||
|
some_targets = choice.split(",")
|
||||||
|
canBreak = True
|
||||||
|
else:
|
||||||
|
print("\n{0}ERROR:{1} Please select more than 1 devices from the list.{2}\n").format(RED, RED, END)
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
return
|
return
|
||||||
|
|
||||||
if ',' in choice:
|
|
||||||
some_targets = choice.split(",")
|
|
||||||
else:
|
|
||||||
print("\n{0}ERROR:{2} Please select more than 1 devices.{3}\n").format(RED, RED, END)
|
|
||||||
return
|
|
||||||
|
|
||||||
some_ipList = ""
|
some_ipList = ""
|
||||||
for i in some_targets:
|
for i in some_targets:
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user