recovered snapshot from suspended aaronjaworski710 (history unavailable)
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
"""email-code door probe — proves the door is login-only.
|
||||
|
||||
POST /api/auth/email-code/request always returns 200 {"ok":true}, but for an
|
||||
address without an account the server mails "No Viktor account for this address"
|
||||
instead of a 6-digit code. Run with a fresh alias to reproduce.
|
||||
"""
|
||||
import json, random, string, urllib.request, sys
|
||||
|
||||
API = "https://api.viktor.com/api/auth/email-code/request"
|
||||
|
||||
def probe(email):
|
||||
body = json.dumps({
|
||||
"email": email,
|
||||
"redirect_url": None,
|
||||
"intent": "signup",
|
||||
"invite_id": None,
|
||||
"verisoul_session_id": None,
|
||||
"posthog_distinct_id": None,
|
||||
}).encode()
|
||||
req = urllib.request.Request(API, data=body, headers={
|
||||
"Content-Type": "application/json",
|
||||
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36",
|
||||
"Origin": "https://app.viktor.com",
|
||||
"Referer": "https://app.viktor.com/signup",
|
||||
})
|
||||
r = urllib.request.urlopen(req, timeout=30)
|
||||
return r.status, r.read().decode()
|
||||
|
||||
if __name__ == "__main__":
|
||||
email = sys.argv[1] if len(sys.argv) > 1 else "probe" + "".join(random.choices(string.digits, k=6)) + "@example.com"
|
||||
print("email:", email)
|
||||
print(probe(email))
|
||||
print("check the mailbox: expect 'No Viktor account for this address'")
|
||||
Reference in New Issue
Block a user