Created
February 1, 2022 19:06
-
-
Save MayankPandey01/c292b4631ea5a693f817f8053a80ffc4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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