Update Starpost exploit promo flow
This commit is contained in:
1 parent
e112480339
commit
29c864990a
4 files changed
+260
-102
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user