Crack password with python

preview_player
Показать описание
#shorts
#python
#javascrpit
#joke
#laugh
#fun
#programming
Рекомендации по теме
Комментарии
Автор

First of all 99% of the time passwords are hashed so you cannot crack based on stored password length.... Second, choosing a random combination it's not a good idea cause you will eventually check one combination more than one time. You should, then, iterate over all possible combinations instead of picking random ones on and on... Last but not least, brute force attacks have a complexity O(2^n) which means its runtime increases exponentially as the password length increases... In summary, I'm sorry but that algorythm won't crack any real password.

bloxio
Автор

ill just put an uppercase letter and it wont ever crack it

neo_uwuowo
Автор

if you don't know passowrd len how will you decide it😂😂 its not real scenario bro

dakshbhardwaj
Автор

CODE: import itertools
import string
import time

def
chars = string.ascii_lowercase + string.ascii_uppercase + string.digits
length = 1
while True:
for attempt in itertools.product(chars, repeat=length):
guess = ''.join(attempt)
print(f"Trying: {guess}")
if guess == target_password:
return guess
length += 1

if __name__ == "__main__":
target = "password123"
print("Starting brute-force...")
start_time = time.time()
result = brute_force(target)
print(f"Password cracked: {result}")
print(f"Time taken: {time.time() - start_time} seconds")

BlueCubezzLegoShow
visit shbcf.ru