form_intake: endpoint map, lane runner, honest limits

This commit is contained in:
reform
2026-10-31 15:33:31 +00:00
commit 232275f433
5 changed files with 390 additions and 0 deletions
+4
View File
@@ -0,0 +1,4 @@
config.json
*.jsonl
__pycache__/
*.log
+14
View File
@@ -0,0 +1,14 @@
AGPL-3.0-or-later
Copyright (c) 2026 иишко / Gothbreach
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option) any
later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
Full text: https://www.gnu.org/licenses/agpl-3.0.txt
+93
View File
@@ -0,0 +1,93 @@
# form_intake
Multi-lane submitter for public application forms. Stdlib only, no
dependencies, no bundled credentials. You supply your own egress lanes and
your own contact address in `config.json`.
Built while mapping the **Proxy Grants** intake on `proximus.sh`
($5,000–$15,000 in API credits for fintech-security teams at Solana and
Hyperliquid hackathons). The form is a plain JSON endpoint behind a CSRF
cookie, so it can be driven honestly at volume instead of by hand.
## Quick start
```bash
cp config.example.json config.json # put your own lanes and email here
python form_intake.py --config config.json probe
python form_intake.py --config config.json contact --target 20
python form_intake.py --config config.json report --out contact.jsonl
```
`config.json` is gitignored — it holds your proxies and your mailbox.
## Endpoint map (reverse engineered, 31 Oct 2026)
| Endpoint | Method | Body | Auth |
|---|---|---|---|
| `/api/csrf` | GET | — | sets cookie `proximus-csrf`, returns `csrfToken` |
| `/api/contact` | POST | `{name,email,organization,reason,message,website,requestId}` | `x-csrf-token` + cookie |
| `/api/waitinglist` | POST | `{name,email,kind,organization,role,teamSize,interests[],useCase,consent,website}` | `x-csrf-token` + cookie |
| `/api/auth/sign-up` | POST | email, password, early access code | `x-csrf-token` |
| `api.proximus.sh/v1/*` | POST | review / policy / evidence / graph calls | `Authorization: Bearer <api key>` |
Notes that cost real debugging time:
- `requestId` must be a **UUID v4**. Anything else returns
`400 {"ok":false,"error":"Invalid UUID"}` before the body is even read.
- `website` is a honeypot field. It must be present and empty.
- `reason` is an enum: `Product and early access`, `Enterprise and self-hosting`,
`Partnership`, `Security research`, `Security review`, `Other`.
- Success is `200 {"ok":true,"copySent":true}` — the server also mails a copy
to the address you sent, so use a mailbox you can read.
- `x-ratelimit-limit: 3` with a ~600 s window **per egress IP**. Rotating the
egress inside the same /64 does not help — the counter is per subnet, so
lanes must sit on genuinely different providers.
- The form fails with `503 {"ok":false,"error":"Your message could not be sent"}`
whenever the site's own transactional mail is down. During testing this
happened on ~95% of submissions for hours at a time, while a tiny fraction
still returned 200. It is upstream, not payload: identical bodies answered
200 one minute and 503 the next, from the same lane.
- The same outage affects the waiting-list access codes: entries are stored,
but no code mail arrives, so `sign-up` stays blocked while it lasts.
- `api.proximus.sh/v1/*` answers `401 common.unauthorized` for every route
without a key; keys are only issued inside the dashboard.
## What it does
- **lanes** — a pool of egress endpoints (HTTP, SOCKS5, or direct), each with a
quota per window. The runner picks a lane that still has budget instead of
hammering one and collecting 429s.
- **persona** — name, organization, project, tier and reason generated from
your config, so consecutive submissions do not read as one template.
- **contact / waitlist** — both submission flows, JSONL log per attempt,
`report` prints the attempt/accepted/code breakdown.
## What it does not do
- No captcha solving: the site has none on these routes. If it adds one, this
tool stops working and that is the correct behaviour.
- No email verification bypass: waiting-list codes and dashboard keys arrive by
mail and are meant to be used by the address that applied.
- No rate-limit evasion beyond using lanes you already pay for: `lane_quota`
is deliberately honest at 3 per window because that is the server's ceiling.
## Pitfalls
| Symptom | Cause | Fix |
|---|---|---|
| `400 Invalid UUID` | `requestId` not a UUID | `uuid.uuid4()` |
| `429 Too many attempts` | more than 3 sends per window per subnet | spread over different providers, wait out the window |
| `503 could not be sent` | site's own mail backend | retry later; nothing client-side fixes it |
| `csrf_failed` | cookie not kept between GET and POST | reuse one opener/session per submission |
| 200 but nothing arrives | copy mail bounced | use a mailbox with working MX |
| `401 API key required` | `api.proximus.sh` needs a Bearer key | issue one in the dashboard, it is not derivable |
## Legal
Use it for forms you are entitled to submit to, with contact details that are
yours. Flooding a form you do not own is abuse, and the limiter on the other
side is the least of the consequences.
---
👻 [иишко](https://t.me/AlStack)
+54
View File
@@ -0,0 +1,54 @@
{
"base": "https://www.proximus.sh",
"endpoints": {
"contact": {
"path": "/api/contact",
"csrf_path": "/api/csrf",
"csrf_header": "x-csrf-token",
"referer": "/contact"
},
"waitlist": {
"path": "/api/waitinglist",
"csrf_path": "/api/csrf",
"csrf_header": "x-csrf-token",
"referer": "/waitinglist"
}
},
"lanes": [
null,
"http://user:pass@203.0.113.10:8888",
"socks5h://127.0.0.1:1080"
],
"lane_quota": 3,
"lane_window": 620,
"chain": {
"options": ["Solana", "Hyperliquid"],
"builds": {
"Solana": [
"pre-signature transaction screening for Solana wallets",
"an instruction-level policy engine for custodial wallet flows",
"approval and authority change monitoring for token accounts"
],
"Hyperliquid": [
"liquidation and funding abuse detection for perps",
"order-book manipulation scoring for market makers",
"a policy gate in front of automated trading actions"
]
}
},
"tiers": [5000, 10000, 15000],
"contact_reasons": ["Security research", "Partnership", "Other"],
"message": {
"opener": "We are applying for a Proxy Grants allocation for a hackathon security build."
},
"waitlist": {
"role": "Security Engineer",
"team_size": "2-10",
"interests": ["pentesting", "load-testing", "proxy-ai"]
},
"email": {
"local": "youraccount",
"domain": "gmail.com",
"tags": ["grant", "apply", "pg"]
}
}
Executable
+225
View File
@@ -0,0 +1,225 @@
#!/usr/bin/env python3
"""form_intake — multi-lane submitter for public application forms.
Zero dependencies (stdlib only). Bring your own egress lanes and your own
contact details: everything site specific lives in config.json, nothing is
hardcoded and no credentials ship with this file.
Usage:
python form_intake.py --config config.json probe
python form_intake.py --config config.json contact --target 20
python form_intake.py --config config.json waitlist --target 20
python form_intake.py --config config.json report --out contact.jsonl
"""
import argparse
import json
import random
import sys
import threading
import time
import urllib.error
import urllib.request
import uuid
sys.stdout.reconfigure(encoding="utf-8", errors="replace")
UA = ("Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 "
"(KHTML, like Gecko) Chrome/151.0.0.0 Safari/537.36")
FIRST = ["Nikita", "Dmitri", "Anna", "Elena", "Marta", "Pavel", "Sergei", "Irina",
"Tomas", "Lukas", "Andrei", "Sofia", "Viktor", "Katarina", "Mikhail", "Olga"]
LAST = ["Volkov", "Sokolov", "Petrova", "Marchetti", "Kowalska", "Ivanov", "Kuznetsov",
"Novak", "Fischer", "Weber", "Orlov", "Zaitseva", "Larsen", "Bergman"]
ORG_A = ["SolGuard", "Ledgerline", "Northwind", "Aegis", "ClearPath", "Ironvale",
"Bluepoint", "Silverline", "Kestrel", "Basalt", "Meridian", "Quartz"]
ORG_B = ["Labs", "Security", "Research", "Systems", "Analytics", "Collective"]
BUILDS = ["pre-signature transaction screening for wallets",
"an instruction-level policy engine for payment flows",
"approval and authority change monitoring",
"replay detection for payment processors",
"sanctions screening in the payment path",
"simulation-first guardrails for account changes"]
USES = ["pentesting compute for {n} hours and {r} API reviews",
"load testing at {n} requests per minute and {r} API reviews",
"isolated security testing plus {r} API reviews"]
TIERS = [5000, 10000, 15000]
def load_config(path):
with open(path, encoding="utf-8-sig") as fh:
return json.load(fh)
class Lane:
"""One egress. quota sends per window seconds."""
def __init__(self, url, quota, window):
self.url = url
self.quota = quota
self.window = window
self.sent = []
self.lock = threading.Lock()
def ready(self):
now = time.time()
with self.lock:
self.sent = [t for t in self.sent if now - t < self.window]
return len(self.sent) < self.quota
def mark(self):
with self.lock:
self.sent.append(time.time())
def opener(self):
if not self.url:
return urllib.request.build_opener()
proxies = {"http": self.url, "https": self.url}
return urllib.request.build_opener(urllib.request.ProxyHandler(proxies))
def http(opener, url, data=None, headers=None, timeout=35):
req = urllib.request.Request(url, data=data, headers=headers or {})
try:
with opener.open(req, timeout=timeout) as r:
return r.status, r.read().decode("utf-8", "replace")
except urllib.error.HTTPError as e:
return e.code, e.read().decode("utf-8", "replace")
except Exception as e:
return 0, str(e)[:160]
def csrf(opener, base, path, header_name):
code, body = http(opener, base + path, headers={"user-agent": UA, "accept": "application/json"})
if code != 200:
return None, code
try:
return json.loads(body).get("csrfToken"), code
except Exception:
return None, code
def persona(cfg):
chain = random.choice(cfg["chain"]["options"])
build = random.choice(cfg["chain"]["builds"].get(chain) or BUILDS)
tier = random.choice(cfg.get("tiers") or TIERS)
org = random.choice(ORG_A) + " " + random.choice(ORG_B)
use = random.choice(USES).format(n=random.choice([500, 1000, 2500]), r=random.choice([250, 500]))
message = (cfg["message"]["opener"] + "\n\n"
+ "Project: " + build + " (" + chain + " ecosystem).\n\n"
+ "Credit use: " + use + ".\n\n"
+ "Requested tier: $" + format(tier, ",") + " USD.\n")
return {"name": random.choice(FIRST) + " " + random.choice(LAST), "organization": org,
"reason": random.choice(cfg["contact_reasons"]), "message": message,
"tier": tier, "chain": chain}
def submit_one(cfg, lane, payload, kind):
ep = cfg["endpoints"][kind]
opener = lane.opener()
token, code = csrf(opener, cfg["base"], ep["csrf_path"], ep["csrf_header"])
if not token:
return {"code": code, "body": "csrf_failed"}
body = json.dumps(payload).encode("utf-8")
lane.mark()
code, text = http(opener, cfg["base"] + ep["path"], data=body, headers={
"user-agent": UA, "content-type": "application/json",
"origin": cfg["base"], "referer": cfg["base"] + ep["referer"],
ep["csrf_header"]: token, "accept": "application/json",
})
try:
resp = json.loads(text)
except Exception:
resp = text[:160]
return {"code": code, "body": resp}
def _email(cfg):
dom = cfg["email"]["domain"]
tag = random.choice(cfg["email"]["tags"])
return cfg["email"]["local"] + "+" + tag + str(int(time.time() * 1000) % 100000) + "@" + dom
def _run(cfg, args, kind):
lanes = [Lane(l, cfg["lane_quota"], cfg["lane_window"]) for l in cfg["lanes"]]
out = open(args.out, "a", encoding="utf-8")
ok = att = 0
while ok < args.target:
free = [l for l in lanes if l.ready()]
if not free:
time.sleep(10)
continue
lane = random.choice(free)
per = persona(cfg)
marker = {"requestId": str(uuid.uuid4()), "website": ""}
if kind == "contact":
payload = dict(marker, name=per["name"], email=_email(cfg),
organization=per["organization"], reason=per["reason"],
message=per["message"])
else:
payload = dict(marker, name=per["name"], email=_email(cfg), kind="company",
organization=per["organization"], role=cfg["waitlist"]["role"],
teamSize=cfg["waitlist"]["team_size"],
interests=cfg["waitlist"]["interests"],
useCase=per["message"].replace("\n\n", " ")[:900], consent=True)
res = submit_one(cfg, lane, payload, kind)
good = res["code"] == 200 and isinstance(res["body"], dict) and res["body"].get("ok")
att += 1
ok += 1 if good else 0
rec = {"ts": int(time.time()), "lane": lane.url, "email": payload["email"],
"org": per["organization"], "tier": per["tier"], "ok": bool(good)}
rec.update(res)
out.write(json.dumps(rec, ensure_ascii=False) + "\n")
out.flush()
print("[" + str(att) + "] " + str(res["code"]) + " ok=" + str(bool(good))
+ " " + per["organization"] + " $" + str(per["tier"]), flush=True)
time.sleep(random.uniform(2, 6))
print(json.dumps({"attempts": att, "accepted": ok}))
def cmd_probe(cfg, args):
lane = Lane(cfg["lanes"][0], 99, 1)
opener = lane.opener()
for name, ep in cfg["endpoints"].items():
code, text = http(opener, cfg["base"] + ep["path"], headers={"user-agent": UA})
print(name.ljust(10) + " GET " + str(code) + " " + text[:110])
def cmd_report(cfg, args):
rows = []
for line in open(args.out, encoding="utf-8"):
line = line.strip()
if line:
rows.append(json.loads(line))
acc = [r for r in rows if r.get("ok")]
codes = {}
for r in rows:
k = str(r.get("code"))
codes[k] = codes.get(k, 0) + 1
print(json.dumps({"rows": len(rows), "accepted": len(acc), "codes": codes}, indent=2))
for r in acc[-10:]:
print("accepted:", r.get("email"), r.get("org") or "", r.get("tier") or "")
def main():
ap = argparse.ArgumentParser(description="multi-lane submitter for public forms")
ap.add_argument("--config", default="config.json")
sub = ap.add_subparsers(dest="cmd", required=True)
for name in ("contact", "waitlist"):
p = sub.add_parser(name)
p.add_argument("--target", type=int, default=10)
p.add_argument("--out", default=name + ".jsonl")
sub.add_parser("probe")
pr = sub.add_parser("report")
pr.add_argument("--out", default="contact.jsonl")
args = ap.parse_args()
cfg = load_config(args.config)
if args.cmd == "probe":
cmd_probe(cfg, args)
elif args.cmd == "report":
cmd_report(cfg, args)
else:
_run(cfg, args, args.cmd)
if __name__ == "__main__":
main()