fashizzlepop wrote:I'm sure you would know better than me as you are an active member in this community. Chya, right....
Pssh. Here at HTS we evaluate merit post-by-post.
...Sometimes.
fashizzlepop wrote:I'm sure you would know better than me as you are an active member in this community. Chya, right....
I'm sure you would know better than me as you are an active member in this community. Chya, right....
...if this guy doesn't even know how to run a program, chances are he didn't do much "fixing up".
@OP What you have there is 30+ lines of code that you could have written in 4 or 5 lines.
Try this and let me know how long it lakes to output "I win".
- Code: Select all
import sys
import itertools
choices = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ123456789_$&#@ "
for length in range(0,20):
for entry in itertools.product(choices,repeat = length):
password = ''.join(entry)
print password
if password == 'PassWord_5&':
print 'I win'
sys.exit(0)
#!/usr/bin/env python
import itertools
def passes(size, pool):
for p in itertools.product(pool, repeat=size):
yield "".join(p)
def range_passes(minSize, maxSize, pool):
num = (maxSize - minSize) + 1
pws = []
for i in range(num):
pws.append(passes(minSize + i, pool))
for P in pws:
for pw in P:
yield pw
if __name__ == '__main__':
import string
from optparse import OptionParser
dPool = string.ascii_letters + string.digits
parser = OptionParser()
parser.add_option("-s", "--start", dest="minSize", type="int", default=2,
help="Minimum password size")
parser.add_option("-e", "--end", dest="maxSize", type="int", default=3,
help="Maximum password size")
parser.add_option("-p", "--pool", dest="pool", default=dPool,
help="Characters to generate passwords from")
(options, args) = parser.parse_args()
for pw in range_passes(options.minSize, options.maxSize, options.pool):
print(pw)
spencer12 wrote:what
is that a brute forcer?!!!
there are two things
1. You don't know what is brute forcing
2. You don't know programming
it just returns some strings!!!
mojo1948 wrote:@OP What you have there is 30+ lines of code that you could have written in 4 or 5 lines.
Try this and let me know how long it lakes to output "I win".
- Code: Select all
import sys
import itertools
choices = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ123456789_$&#@ "
for length in range(0,20):
for entry in itertools.product(choices,repeat = length):
password = ''.join(entry)
print password
if password == 'PassWord_5&':
print 'I win'
sys.exit(0)
Muskelmann098 wrote:... and here's my best guess:
You will need to obtain the hash of a password from one of the users of the website first. This is because a bruteforcer will normally create billions of strings that take a long time to generate by itself, and that will take an eternity to type into a form and click 'submit'.
Users browsing this forum: No registered users and 0 guests