Update Starpost exploit promo flow

This commit is contained in:
shira committed 2026-10-25 12:16:23 +03:00
1 parent e112480339
commit 29c864990a
4 files changed
+260 -102

No files matched your search

+10
View File
@@ -162,6 +162,16 @@ def obtain_credit(target: str, cookie: str, deadline: float) -> None:
)
if status != 200:
raise ValueError(f"promo endpoint returned HTTP {status}")
status, _, _, _ = get_json(
target,
"POST",
"/api/promo/invalidate",
deadline,
payload={"code": code},
cookie=cookie,
)
if status != 200:
raise ValueError(f"promo invalidation returned HTTP {status}")
def buy_product(target: str, product_id: int, cookie: str, deadline: float) -> int: