Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Python 

python brute force

Need someone to provide me a script for something rather simple hmu
https://stackoverflow.com/questions/1174...-algorithm
For p in password:
if p == password:
print('Nice...')
else:
pass
You can try something like this code from here :

PHP Code

<?php 
import string
, itertools
password 
= input("Enter password: ")
#password="abc"
characters = string.printable
def iter_all_strings
():
 
   length = 1
    while True
:
 
       for s in itertools.product(characters, repeat=length):
 
           yield "".join(s)
 
       length +=1

for s in iter_all_strings():
 
   print(s)
 
   if s == password:
 
       print('Password is {}'.format(s))
 
       break 
https://www.youtube.com/watch?v=j-Bc2EbwLCI

This dude has more vids you can check out :)


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Python] by Bass_ReevesAug 20, 2023 01:44 AM 9 630 Aug 20, 2023 01:44 AM
Last Post: Lucky4L
[Python] by airpline1Mar 18, 2020 01:20 PM 8 1,156 Mar 18, 2020 01:20 PM
Last Post: JKHA
[C#] by MathianDec 28, 2018 03:59 AM 9 424 Dec 28, 2018 03:59 AM
Last Post: Mathian