Added whitelist option to the menu

This commit is contained in:
hamperfait 2018-09-07 19:40:49 +02:00
parent 981993f32a
commit 1030949257

View file

@ -89,6 +89,8 @@ def optionBanner():
sleep(0.2) sleep(0.2)
print('\t{}[{}3{}]{} Kick ALL Off'.format(YELLOW, RED, YELLOW, WHITE)) print('\t{}[{}3{}]{} Kick ALL Off'.format(YELLOW, RED, YELLOW, WHITE))
sleep(0.2) sleep(0.2)
print('\t{}[{}4{}]{} Kick ALL BUT SOME Off (whitelist)'.format(YELLOW, RED, YELLOW, WHITE))
sleep(0.2)
print('\n\t{}[{}E{}]{} Exit KickThemOut\n'.format(YELLOW, RED, YELLOW, WHITE)) print('\n\t{}[{}E{}]{} Exit KickThemOut\n'.format(YELLOW, RED, YELLOW, WHITE))
@ -587,9 +589,7 @@ def kickwhitelistoff():
except KeyboardInterrupt: except KeyboardInterrupt:
shutdown() shutdown()
print(someTargets)
someTargets = [x for x in range(0, len(onlineIPs)) if x not in list(map(int, someTargets))] someTargets = [x for x in range(0, len(onlineIPs)) if x not in list(map(int, someTargets))]
print(someTargets)
someIPList = "" someIPList = ""
for i in someTargets: for i in someTargets:
try: try: