Hack Forums
[Python] python brute force - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [Python] python brute force (/showthread.php?tid=5888007)



python brute force - @Dexter - Sep 24, 2018

Need someone to provide me a script for something rather simple hmu


RE: python brute force - michalmonday - Sep 24, 2018

https://stackoverflow.com/questions/11747254/python-brute-force-algorithm


RE: python brute force - lowfatcheeze - Sep 26, 2018

For p in password:
if p == password:
print('Nice...')
else:
pass


RE: python brute force - Hackoo - Sep 29, 2018

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 



RE: python brute force - kookur - Sep 30, 2018

https://www.youtube.com/watch?v=j-Bc2EbwLCI

This dude has more vids you can check out :)