Files

3.4 KiB

Guide

1. Install

git clone <repo> && cd form-intake
cp config.example.json config.json     # edit: your lanes, your email
python form_intake.py --config config.json probe

Python 3.8+. No pip install, no venv.

2. Lanes (egress budget)

config.json → lanes is a list of proxy URLs; null means "direct".

"lanes": [null, "http://user:pass@203.0.113.10:8888", "socks5h://127.0.0.1:1080"],
"lane_quota": 3,
"lane_window": 620

lane_quota / lane_window must match the server's ceiling (3 per ~600 s per subnet). Raising them does not create capacity — it only buys you 429s. Lanes that sit in the same /64 as another lane do not add capacity either; verify with a plain curl https://api.ipify.org per lane before trusting the pool.

3. Submit

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

Each attempt appends one JSONL row: ts, lane, email, org, tier, ok, code, body. report prints the attempt/accepted/code breakdown.

4. Mail fallback

When /api/contact answers 503 (their mailer is down), the site's own error text tells you to write to the intake mailbox. Put SMTP creds in config.json:

"smtp": {"host": "smtp.gmail.com", "port": 587, "user": "you@example.com", "pass": "app-password"},
"mail_to": "hello@example.com"

or export SMTP_HOST / SMTP_PORT / SMTP_USER / SMTP_PASS.

python mail_wave.py --n 20 --pause 25 60

Use an app password, not the account password, and keep the pause generous: mailbox providers rate-limit per account and per recipient domain.

5. Dashboard

python dashboard.py --port 8765
# http://127.0.0.1:8765

Tabs: overview (live counters, code breakdown), jobs (start/stop contact, waitlist, mail with a target), log (tail of the JSONL), config (edit and save config.json). It binds 127.0.0.1 and never leaves the machine.

6. Pitfalls

  1. 400 Invalid UUID — the form validates requestId before anything else.
  2. 429 even with fresh IPv6 — the limiter counts the subnet, not the address. Different providers, not different addresses.
  3. 503 could not be sent — their transactional mail. Nothing client-side fixes it; retry later or use the mail fallback.
  4. csrf_failed — the cookie from /api/csrf must be sent back with the POST. Reuse one session per submission (the runner already does).
  5. Honeypot — website must exist and be empty; omitting the key and sending junk both differ from the intended path.
  6. 200 but no mail — copySent:false means the copy failed; the entry is still stored. Do not resubmit the same person on that basis.
  7. Watching a lane — curl --socks5-hostname 127.0.0.1:1080 https://api.ipify.org must print a different address per provider, otherwise your "pool" is one IP.
  8. Windows console — scripts set sys.stdout.reconfigure(encoding="utf-8"); without it Cyrillic output raises UnicodeEncodeError in cp866 terminals.
  9. Dashboard from another machine — don't. It has no auth; it is a local panel for a local worker.

7. Withdrawing

  • POST /api/contact has no delete route: a submitted application stays.
  • Waiting-list entries cannot be withdrawn either.
  • So: submit only what you would defend in a support thread.