Skip to content

Instantly share code, notes, and snippets.

@MayankPandey01
Created February 1, 2022 19:06
Show Gist options
  • Save MayankPandey01/c292b4631ea5a693f817f8053a80ffc4 to your computer and use it in GitHub Desktop.
Save MayankPandey01/c292b4631ea5a693f817f8053a80ffc4 to your computer and use it in GitHub Desktop.
def brute(myList,url):
start=time.perf_counter()
for lists in myList:
threads.append(Thread(target=worker,args=(lists,url),daemon=True))
for thread in threads:
try:
thread.start()
except KeyboardInterrupt:
print("\nReceived Keyboard Interrupt , Terminating threads\n")
sys.exit()
for thread in threads:
try:
thread.join()
except KeyboardInterrupt:
print("\nReceived Keyboard Interrupt , Terminating threads\n")
sys.exit()
finish=time.perf_counter()
print(f"\n\n\t\t Checked {total_len} Directories in {round(finish-start,2)} Seconds\n")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment