diff --git a/.gitignore b/.gitignore
index 8900fd4..9ddce52 100644
--- a/.gitignore
+++ b/.gitignore
@@ -15,3 +15,9 @@ probe3.log
probe2.log
out/
probe_state.json
+dashboard/gw_key.txt
+dashboard/gw.log
+dashboard/gw.pid
+dashboard/dash_run.log
+dashboard/imported_bank.jsonl
+data/
diff --git a/README.md b/README.md
index 161f34a..272e064 100644
--- a/README.md
+++ b/README.md
@@ -26,6 +26,24 @@ gmail = $0 for alias farms because of the inbox dedupe).
Turnstile sitekey (public, in page HTML): `0x4AAAAAAFVJ1qUhtZ_qG-N7`.
`/auth/email/start` now requires `captcha_token` — the old "zero captcha" flow below is historical.
+**Proven paying doors (live, Oct 15):** own catch-all domains behind ForwardEmail → Gmail IMAP OTP
+(`treg_catchall.py`): distinct local-parts each get their own $1 (27/27, then 6/6 in one wave;
+7th+ hit the 30-start/15min IP budget → 429). Probe verdict: **141 ACCEPTED / 5 BLOCKED of 146 domains**
+(`domains.json`) — the blocklist is tiny; almost any mailbox family pays if you control the OTP.
+
+## Dashboard (control plane)
+
+`dashboard/` — logicc-style dark UI, stdlib-only (`python dashboard/dashboard.py`, default `:8750`):
+
+- env: `TREG_DATA` (dir with `*.jsonl` banks, `*.log` waves and wave scripts), `TREG_DASH_PORT`, `TREG_DASH_HOST`, `TREG_PYTHON`
+- auto-discovers banks/logs (no hardcoded names), masks emails/tokens
+- panels: per-door stats (orgs/paid/$), masked bank browser, wave start/stop (catchall · voidash · outlook), log tail, live balance probe, gateway start/stop/token-import, mail-doors verdict matrix
+- `treg_gw.py` — optional OpenAI-compatible gateway (`:8751`, `X-GW-Key`, rotates org tokens)
+
+```bash
+TREG_DATA=/path/to/treg_test python dashboard/dashboard.py # http://127.0.0.1:8750
+```
+
## How it works (full protocol, reverse-engineered)
```
diff --git a/dashboard/dashboard.py b/dashboard/dashboard.py
new file mode 100644
index 0000000..2e88a9c
--- /dev/null
+++ b/dashboard/dashboard.py
@@ -0,0 +1,406 @@
+#!/usr/bin/env python3
+"""TREG FARM — control plane (logicc-style dark UI). Stdlib only (+psutil optional).
+
+Env:
+ TREG_DATA dir with banks/logs/wave scripts [default: ./data next to repo]
+ TREG_DASH_PORT listen port [default: 8750]
+ TREG_DASH_HOST listen host [default: 127.0.0.1]
+
+Endpoints:
+ GET / UI (index.html)
+ GET /api/stats bank totals + running loops
+ GET /api/bank?door=X&limit=N masked bank rows
+ GET /api/log?f=X&n=100 log tail
+ GET /api/domains mail-door verdict matrix (domains.json)
+ GET /api/probe live balance probe with last org token
+ GET /api/gw gateway status
+ POST /api/wave {door,action,count} start/stop reg waves
+ POST /api/gw/start|stop|import
+"""
+import glob
+import json
+import os
+import subprocess
+import sys
+from datetime import datetime, timezone
+from http.server import BaseHTTPRequestHandler, ThreadingHTTPServer
+from urllib.parse import urlparse, parse_qs
+
+HERE = os.path.dirname(os.path.abspath(__file__))
+REPO = os.path.dirname(HERE)
+TREG = os.environ.get("TREG_DATA") or os.path.join(REPO, "data")
+PORT = int(os.environ.get("TREG_DASH_PORT", "8750"))
+HOST = os.environ.get("TREG_DASH_HOST", "127.0.0.1")
+PY = os.environ.get("TREG_PYTHON", sys.executable)
+
+os.makedirs(TREG, exist_ok=True)
+
+# waves: door -> (script in TREG, default count)
+WAVES = {
+ "catchall": ("treg_catchall.py", 10),
+ "voidash": ("treg_voidash.py", 10),
+ "outlook": ("treg_outlook.py", 10),
+}
+PROC_MARKS = {
+ "catchall": "treg_catchall.py",
+ "voidash": "treg_voidash.py",
+ "outlook": "treg_outlook.py",
+ "probe": "domain_probe3.py",
+ "gh_wave": "gh_oauth_reg.py",
+}
+
+
+def mask_email(e):
+ if not e or "@" not in e:
+ return e or ""
+ l, d = e.split("@", 1)
+ return (l[:3] if len(l) > 3 else l[:1]) + "***@" + d
+
+
+def mask_tok(t):
+ if not t:
+ return ""
+ t = str(t)
+ return t[:8] + "..." + t[-4:] if len(t) > 16 else "***"
+
+
+def read_bank(path, limit=100000):
+ rows = []
+ try:
+ with open(path, encoding="utf-8", errors="ignore") as f:
+ for l in f:
+ l = l.strip()
+ if not l:
+ continue
+ try:
+ rows.append(json.loads(l))
+ except Exception:
+ pass
+ except FileNotFoundError:
+ pass
+ return rows[-limit:]
+
+
+def find_banks():
+ """Auto-discover bank jsonl files in TREG_DATA (name -> path)."""
+ out = {}
+ for p in sorted(glob.glob(os.path.join(TREG, "*.jsonl"))):
+ stem = os.path.basename(p)[:-6]
+ stem = stem.replace("treg_", "").replace("_bank", "").replace("_accounts", "")
+ out[stem] = p
+ return out
+
+
+def find_logs():
+ """Auto-discover logs in TREG_DATA + repo root."""
+ out = {}
+ for d in (TREG, REPO):
+ for p in sorted(glob.glob(os.path.join(d, "*.log"))):
+ out[os.path.basename(p)] = p
+ return out
+
+
+def _tok(r):
+ return r.get("org_token") or r.get("token") or ""
+
+
+def door_stats():
+ out = {}
+ total_orgs = total_paid = 0
+ total_usd = 0.0
+ for door, path in find_banks().items():
+ rows = read_bank(path)
+ orgs = [r for r in rows if _tok(r)]
+ paid = [r for r in orgs if int(r.get("balance_micro") or 0) > 0]
+ usd = sum(int(r.get("balance_micro") or 0) for r in paid) / 1e6
+ stages = {}
+ for r in rows:
+ if not _tok(r):
+ s = r.get("stage", "?")
+ stages[s] = stages.get(s, 0) + 1
+ last_ts = rows[-1].get("ts", "") if rows else ""
+ out[door] = {"total": len(rows), "orgs": len(orgs), "paid": len(paid),
+ "usd": round(usd, 2), "fails": stages, "last": last_ts}
+ total_orgs += len(orgs)
+ total_paid += len(paid)
+ total_usd += usd
+ out["_totals"] = {"orgs": total_orgs, "paid": total_paid, "usd": round(total_usd, 2)}
+ return out
+
+
+def _procs():
+ try:
+ import psutil
+ for p in psutil.process_iter(["pid", "cmdline"]):
+ if p.info["pid"] == os.getpid():
+ continue
+ try:
+ yield p, " ".join(os.path.basename(a) for a in (p.info["cmdline"] or []))
+ except Exception:
+ pass
+ except ImportError:
+ pass
+
+
+def running_loops():
+ res = {k: False for k in PROC_MARKS}
+ for _p, base in _procs():
+ for k, mark in PROC_MARKS.items():
+ if mark in base:
+ res[k] = True
+ return res
+
+
+def tail_log(path, n=100):
+ try:
+ with open(path, "rb") as f:
+ f.seek(0, 2)
+ sz = f.tell()
+ f.seek(max(0, sz - 200000))
+ data = f.read().decode("utf-8", "ignore")
+ lines = [l for l in data.splitlines() if l.strip()]
+ return "\n".join(lines[-n:])
+ except FileNotFoundError:
+ return "(no log)"
+
+
+def wave_action(door, action, count=None):
+ if door not in WAVES:
+ return {"ok": False, "err": "unknown door (have: %s)" % ",".join(WAVES)}
+ script, dcount = WAVES[door]
+ spath = os.path.join(TREG, script)
+ if action == "start":
+ if not os.path.exists(spath):
+ return {"ok": False, "err": "script not found: %s (set TREG_DATA)" % spath}
+ if running_loops().get(door):
+ return {"ok": False, "err": "already running"}
+ env = dict(os.environ)
+ env.update({"PYTHONPATH": "", "PYTHONIOENCODING": "utf-8"})
+ env.setdefault("HOME", os.path.expanduser("~"))
+ env.setdefault("USERPROFILE", os.path.expanduser("~"))
+ if os.name == "nt":
+ env.setdefault("PROCESSOR_ARCHITECTURE", "AMD64")
+ cmd = [PY, "-u", script, str(count or dcount)]
+ lf = open(os.path.join(TREG, "wave_%s.log" % door), "ab")
+ flags = 0x00000008 | 0x00000200 if os.name == "nt" else 0
+ if os.name == "nt":
+ flags |= 0x01000000
+ p = subprocess.Popen(cmd, cwd=TREG, env=env, creationflags=flags,
+ stdout=lf, stderr=lf, stdin=subprocess.DEVNULL)
+ return {"ok": True, "pid": p.pid, "log": "wave_%s.log" % door}
+ elif action == "stop":
+ killed = 0
+ mark = PROC_MARKS.get(door, WAVES[door][0])
+ for p, base in _procs():
+ try:
+ if mark in base:
+ p.kill()
+ killed += 1
+ except Exception:
+ pass
+ return {"ok": True, "killed": killed}
+ return {"ok": False, "err": "bad action"}
+
+
+def domains_matrix():
+ for cand in (os.path.join(REPO, "domains.json"), os.path.join(TREG, "domains.json")):
+ if os.path.exists(cand):
+ try:
+ return json.load(open(cand, encoding="utf-8"))
+ except Exception as e:
+ return {"err": str(e)[:100]}
+ return {"err": "domains.json not found (run build_domains_json.py)"}
+
+
+def api_probe():
+ out = {"balance": None, "note": ""}
+ banks = find_banks()
+ rows = []
+ for key in ("catchall", "voidash", "realmail"):
+ for name, path in banks.items():
+ if key in name:
+ rows = read_bank(path)
+ break
+ if rows:
+ break
+ if not rows:
+ for path in banks.values():
+ rows = read_bank(path)
+ if rows:
+ break
+ tok = oid = None
+ for r in reversed(rows):
+ if _tok(r):
+ tok, oid = _tok(r), r.get("org_id")
+ break
+ if not tok:
+ out["note"] = "no org token in banks"
+ return out
+ try:
+ import urllib.request
+ req = urllib.request.Request(
+ "https://treg.to/orgs/%s/balance?limit=2" % oid,
+ headers={"X-Treg-Token": tok, "X-Treg-Key-Protocol": "1"})
+ with urllib.request.urlopen(req, timeout=20) as resp:
+ out["balance"] = json.loads(resp.read().decode())
+ out["balance"]["token_masked"] = mask_tok(tok)
+ except Exception as e:
+ out["note"] = "probe err: %s" % str(e)[:120]
+ return out
+
+
+GW_PID = os.path.join(HERE, "gw.pid")
+
+
+def gw_running():
+ try:
+ pid = int(open(GW_PID).read().strip())
+ import psutil
+ return psutil.pid_exists(pid) and psutil.Process(pid).status() != "zombie"
+ except Exception:
+ return False
+
+
+def gw_start():
+ if gw_running():
+ return {"ok": True, "note": "already running"}
+ env = dict(os.environ)
+ env.update({"PYTHONPATH": "", "PYTHONIOENCODING": "utf-8"})
+ lf = open(os.path.join(HERE, "gw.log"), "ab")
+ flags = (0x00000008 | 0x00000200 | 0x01000000) if os.name == "nt" else 0
+ p = subprocess.Popen([PY, os.path.join(HERE, "treg_gw.py")], cwd=HERE, env=env,
+ creationflags=flags, stdout=lf, stderr=lf, stdin=subprocess.DEVNULL)
+ with open(GW_PID, "w") as f:
+ f.write(str(p.pid))
+ return {"ok": True, "pid": p.pid}
+
+
+def gw_stop():
+ try:
+ import psutil
+ pid = int(open(GW_PID).read().strip())
+ psutil.Process(pid).kill()
+ os.remove(GW_PID)
+ return {"ok": True, "killed": pid}
+ except Exception as e:
+ return {"ok": False, "err": str(e)[:100]}
+
+
+def gw_import(tok):
+ import urllib.request, urllib.error
+ tok = (tok or "").strip()
+ if len(tok) < 20:
+ return {"ok": False, "err": "token too short"}
+ req = urllib.request.Request("https://treg.to/orgs",
+ headers={"X-Treg-Token": tok, "X-Treg-Key-Protocol": "1"})
+ try:
+ with urllib.request.urlopen(req, timeout=20) as resp:
+ d = json.loads(resp.read().decode())
+ orgs = d if isinstance(d, list) else d.get("orgs", d.get("items", []))
+ org = orgs[0] if orgs else {}
+ oid = org.get("org_id") or org.get("id")
+ usd = None
+ if oid:
+ req2 = urllib.request.Request("https://treg.to/orgs/%s/balance?limit=1" % oid,
+ headers={"X-Treg-Token": tok, "X-Treg-Key-Protocol": "1"})
+ with urllib.request.urlopen(req2, timeout=20) as resp2:
+ b = json.loads(resp2.read().decode())
+ usd = round(int(b.get("balance_micro") or 0) / 1e6, 4)
+ rec = {"org_token": tok, "org_id": oid, "org": org.get("slug") or org.get("name"),
+ "door": "imported", "ts": datetime.now(timezone.utc).isoformat(),
+ "balance_micro": int((usd or 0) * 1e6)}
+ with open(os.path.join(TREG, "imported_bank.jsonl"), "a", encoding="utf-8") as f:
+ f.write(json.dumps(rec) + "\n")
+ return {"ok": True, "org": rec["org"], "usd": usd}
+ except urllib.error.HTTPError as e:
+ return {"ok": False, "err": "treg said %s" % e.code}
+ except Exception as e:
+ return {"ok": False, "err": str(e)[:120]}
+
+
+class H(BaseHTTPRequestHandler):
+ def log_message(self, *a):
+ pass
+
+ def _send(self, code, body, ctype="application/json; charset=utf-8"):
+ b = body if isinstance(body, bytes) else json.dumps(body, ensure_ascii=False).encode()
+ self.send_response(code)
+ self.send_header("Content-Type", ctype)
+ self.send_header("Content-Length", str(len(b)))
+ self.send_header("Access-Control-Allow-Origin", "*")
+ self.end_headers()
+ self.wfile.write(b)
+
+ def do_GET(self):
+ u = urlparse(self.path)
+ q = parse_qs(u.query)
+ if u.path == "/":
+ try:
+ with open(os.path.join(HERE, "index.html"), "rb") as f:
+ self._send(200, f.read(), "text/html; charset=utf-8")
+ except FileNotFoundError:
+ self._send(404, {"err": "index.html missing"})
+ elif u.path == "/api/stats":
+ self._send(200, {"doors": door_stats(), "loops": running_loops(),
+ "data_dir": TREG})
+ elif u.path == "/api/bank":
+ door = (q.get("door") or [""])[0]
+ limit = int((q.get("limit") or ["200"])[0])
+ banks = find_banks()
+ path = banks.get(door, "")
+ if not path:
+ for name, p in banks.items():
+ if door and door in name:
+ path = p
+ break
+ rows = read_bank(path, limit)[-limit:][::-1]
+ safe = []
+ for r in rows:
+ safe.append({"email": mask_email(r.get("email", "")),
+ "door": r.get("door", door), "domain": r.get("domain", ""),
+ "org": r.get("org", ""), "org_id": r.get("org_id", ""),
+ "token": mask_tok(_tok(r)),
+ "bal_usd": round(int(r.get("balance_micro") or 0) / 1e6, 4),
+ "stage": r.get("stage", "OK"), "err": str(r.get("err", ""))[:80],
+ "ts": r.get("ts", "")})
+ self._send(200, {"rows": safe, "count": len(safe), "doors": sorted(banks)})
+ elif u.path == "/api/log":
+ f = (q.get("f") or [""])[0]
+ logs = find_logs()
+ path = logs.get(f, "")
+ if not path:
+ self._send(200, {"text": "(no log) available: %s" % ", ".join(sorted(logs))},
+ "text/plain; charset=utf-8")
+ return
+ self._send(200, {"text": tail_log(path, int((q.get("n") or ["100"])[0]))},
+ "text/plain; charset=utf-8")
+ elif u.path == "/api/domains":
+ self._send(200, domains_matrix())
+ elif u.path == "/api/probe":
+ self._send(200, api_probe())
+ elif u.path == "/api/gw":
+ self._send(200, {"running": gw_running()})
+ else:
+ self._send(404, {"err": "not found"})
+
+ def do_POST(self):
+ u = urlparse(self.path)
+ n = int(self.headers.get("Content-Length") or 0)
+ body = json.loads(self.rfile.read(n) or b"{}")
+ if u.path == "/api/wave":
+ self._send(200, wave_action(body.get("door", ""), body.get("action", ""),
+ body.get("count")))
+ elif u.path == "/api/gw/start":
+ self._send(200, gw_start())
+ elif u.path == "/api/gw/stop":
+ self._send(200, gw_stop())
+ elif u.path == "/api/gw/import":
+ self._send(200, gw_import(body.get("token", "")))
+ else:
+ self._send(404, {"err": "not found"})
+
+
+if __name__ == "__main__":
+ srv = ThreadingHTTPServer((HOST, PORT), H)
+ print("TREG DASH on http://%s:%d | data=%s" % (HOST, PORT, TREG), flush=True)
+ srv.serve_forever()
diff --git a/dashboard/index.html b/dashboard/index.html
new file mode 100644
index 0000000..ee39738
--- /dev/null
+++ b/dashboard/index.html
@@ -0,0 +1,383 @@
+
+
+
+
+
+
+
+ TREG FARM — Control plane
+
+
+
+
+
+
+
+
+
+
+
TREG FARM
+
control plane — treg.to autoreg & gateway
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
| Дверь | Записей | Оргов | Paid | $ | Последняя | Ошибки |
+
+
+
+
+
+
+
+
| Email | Org | ID | Token | $ | Stage | Когда |
+
+
+
+
+
+
+
+
+
+
catchall
+ ?
+
+
+
voidash
+ ?
+
+
+
+
+
+
+
(выбери лог)
+
+
+
+
+
+
+
+
+
+
?
+
+
+
URL: http://127.0.0.1:8751
+
Ключ: —
+
Пул: — · живых: —
+
+
+
+
+
+
+
примеры запросов:
+ POST /gw/img {"prompt":"..."}
+ POST /gw/video {"prompt":"..."}
+ GET /call/<endpoint>?param=... — все 113 платформ каталога treg
+
+
+
+
+
+
+
+
+
+
+ Проверено на свежем catchall-орге:
+ replicate.image-gen.flux-schnell → 201, $0.012
+ x.x.search-news → нужен X-credential (connections)
+ баланс: GET /orgs/{id}/balance?limit=N
+
+
+
+
+
+
+
+
+
+
diff --git a/dashboard/treg_gw.py b/dashboard/treg_gw.py
new file mode 100644
index 0000000..1ff39a0
--- /dev/null
+++ b/dashboard/treg_gw.py
@@ -0,0 +1,211 @@
+# TREG GATEWAY — local OpenAI-style proxy over treg.to org-token bank.
+# Rotates bank tokens, quarantines dead ones, hot-reloads banks every 60s.
+# Port 8751. Local key: gw_key.txt (auto-generated).
+import json, os, random, re, threading, time, glob, sys
+from http.server import BaseHTTPRequestHandler, ThreadingHTTPServer
+from urllib.parse import urlparse, parse_qs
+import urllib.request, urllib.error
+
+BASE = os.path.dirname(os.path.abspath(__file__))
+REPO = os.path.dirname(BASE)
+TREG = os.environ.get("TREG_DATA") or os.path.join(REPO, "data")
+PORT = int(os.environ.get("TREG_GW_PORT", "8751"))
+GW_KEY_FILE = os.path.join(BASE, "gw_key.txt")
+IMPORTED = os.path.join(BASE, "imported_bank.jsonl")
+
+
+def _banks():
+ """Auto-discover bank jsonl files (env TREG_DATA). Imported bank last."""
+ return sorted(glob.glob(os.path.join(TREG, "*.jsonl"))) + [IMPORTED]
+
+
+BANKS = _banks()
+UPSTREAM = "https://treg.to"
+
+_lock = threading.Lock()
+_pool = [] # [{token, org_id, src, fails, quarantined}]
+_idx = 0
+_last_load = 0.0
+
+
+def gw_key():
+ if os.path.exists(GW_KEY_FILE):
+ return open(GW_KEY_FILE).read().strip()
+ k = "treg-gw-" + "".join(random.choice("abcdef0123456789") for _ in range(24))
+ with open(GW_KEY_FILE, "w") as f:
+ f.write(k)
+ return k
+
+
+def load_pool():
+ global _pool, _last_load
+ seen = set()
+ pool = []
+ for path in _banks():
+ try:
+ for l in open(path, encoding="utf-8", errors="ignore"):
+ l = l.strip()
+ if not l:
+ continue
+ try:
+ r = json.loads(l)
+ except Exception:
+ # raw token line in imported file
+ if re.match(r"^[A-Za-z0-9_\-\.]{20,}$", l):
+ r = {"org_token": l}
+ else:
+ continue
+ tok = r.get("org_token") or r.get("token")
+ if not tok or tok in seen:
+ continue
+ seen.add(tok)
+ pool.append({"token": tok, "org_id": r.get("org_id"),
+ "src": os.path.basename(path), "fails": 0, "q": False})
+ except FileNotFoundError:
+ pass
+ with _lock:
+ _pool[:] = pool
+ _last_load = time.time()
+
+
+def reload_thread():
+ while True:
+ time.sleep(60)
+ try:
+ load_pool()
+ except Exception:
+ pass
+
+
+def next_tok():
+ global _idx
+ with _lock:
+ live = [p for p in _pool if not p["q"]]
+ if not live:
+ return None
+ p = live[_idx % len(live)]
+ _idx += 1
+ return p
+
+
+def quarantine(p):
+ with _lock:
+ p["fails"] += 1
+ if p["fails"] >= 2:
+ p["q"] = True
+
+
+def upstream(method, path, tok, body=None, params=None, timeout=120):
+ url = UPSTREAM + path
+ if params:
+ from urllib.parse import urlencode
+ url += "?" + urlencode(params)
+ data = json.dumps(body).encode() if body is not None else None
+ req = urllib.request.Request(url, data=data, method=method)
+ req.add_header("X-Treg-Token", tok)
+ req.add_header("X-Treg-Key-Protocol", "1")
+ if data:
+ req.add_header("Content-Type", "application/json")
+ try:
+ with urllib.request.urlopen(req, timeout=timeout) as resp:
+ return resp.status, resp.read()
+ except urllib.error.HTTPError as e:
+ return e.code, e.read()
+ except Exception as e:
+ return 599, json.dumps({"error": str(e)[:200]}).encode()
+
+
+class H(BaseHTTPRequestHandler):
+ def log_message(self, *a):
+ pass
+
+ def _send(self, code, body, ctype="application/json; charset=utf-8"):
+ b = body if isinstance(body, bytes) else json.dumps(body, ensure_ascii=False).encode()
+ self.send_response(code)
+ self.send_header("Content-Type", ctype)
+ self.send_header("Content-Length", str(len(b)))
+ self.send_header("Access-Control-Allow-Origin", "*")
+ self.end_headers()
+ self.wfile.write(b)
+
+ def _auth(self):
+ k = self.headers.get("Authorization", "").replace("Bearer ", "") or self.headers.get("X-GW-Key", "")
+ return k == gw_key()
+
+ def _proxy(self, method):
+ if not self._auth():
+ return self._send(401, {"error": "bad gw key"})
+ u = urlparse(self.path)
+ n = int(self.headers.get("Content-Length") or 0)
+ body = json.loads(self.rfile.read(n)) if n else None
+ params = {k: v[0] for k, v in parse_qs(u.query).items()}
+ tries = 0
+ while tries < 6:
+ p = next_tok()
+ if not p:
+ return self._send(503, {"error": "pool empty / all quarantined"})
+ st, raw = upstream(method, u.path, p["token"], body, params)
+ if st in (401, 402, 403):
+ quarantine(p)
+ tries += 1
+ continue
+ self._send(st, raw)
+ return
+ self._send(503, {"error": "no live tokens after 6 tries"})
+
+ def do_GET(self):
+ u = urlparse(self.path)
+ if u.path == "/gw/status":
+ if not self._auth():
+ return self._send(401, {"error": "bad gw key"})
+ with _lock:
+ live = sum(1 for p in _pool if not p["q"])
+ return self._send(200, {"pool": len(_pool), "live": live,
+ "quarantined": len(_pool) - live,
+ "key": gw_key(), "port": PORT})
+ if u.path.startswith("/call/"):
+ return self._proxy("GET")
+ self._send(404, {"error": "not found"})
+
+ def do_POST(self):
+ u = urlparse(self.path)
+ if u.path == "/gw/img":
+ if not self._auth():
+ return self._send(401, {"error": "bad gw key"})
+ n = int(self.headers.get("Content-Length") or 0)
+ body = json.loads(self.rfile.read(n) or b"{}")
+ return self._forward("/call/replicate.image-gen.flux-schnell",
+ {"prompt": body.get("prompt", ""), **{k: v for k, v in body.items() if k != "prompt"}})
+ if u.path == "/gw/video":
+ if not self._auth():
+ return self._send(401, {"error": "bad gw key"})
+ n = int(self.headers.get("Content-Length") or 0)
+ body = json.loads(self.rfile.read(n) or b"{}")
+ return self._forward("/call/minimax.video-gen.from_text",
+ {"prompt": body.get("prompt", ""), **{k: v for k, v in body.items() if k != "prompt"}})
+ if u.path.startswith("/call/"):
+ return self._proxy("POST")
+ self._send(404, {"error": "not found"})
+
+ def _forward(self, path, body):
+ tries = 0
+ while tries < 6:
+ p = next_tok()
+ if not p:
+ return self._send(503, {"error": "pool empty"})
+ st, raw = upstream("POST", path, p["token"], body)
+ if st in (401, 402, 403):
+ quarantine(p)
+ tries += 1
+ continue
+ self._send(st, raw)
+ return
+ self._send(503, {"error": "no live tokens"})
+
+
+if __name__ == "__main__":
+ load_pool()
+ threading.Thread(target=reload_thread, daemon=True).start()
+ srv = ThreadingHTTPServer(("127.0.0.1", PORT), H)
+ print("TREG GW on http://127.0.0.1:%d key=%s pool=%d" % (PORT, gw_key(), len(_pool)), flush=True)
+ srv.serve_forever()
diff --git a/domains.json b/domains.json
index 8b0c80f..ef69205 100644
--- a/domains.json
+++ b/domains.json
@@ -1,59 +1,91 @@
{
- "generated": "2026-10-15 17:42:57",
+ "generated": "2026-10-15 18:31:59",
"source": "treg.to /auth/email/start probe (domain_probe3.py, TokenFactory PASS tokens)",
- "total": 82,
- "accepted_count": 80,
- "blocked_count": 2,
+ "total": 146,
+ "accepted_count": 141,
+ "blocked_count": 5,
"accepted": [
"126.com",
+ "139.com",
"163.com",
+ "189.cn",
+ "abv.bg",
+ "adinet.com.uy",
"alice.it",
+ "aliyun.com",
"amorki.pl",
+ "ancel.com.uy",
"aol.com",
"aon.at",
"atlas.sk",
"azet.sk",
"bk.ru",
"bluewin.ch",
+ "bol.com.br",
"buziaczek.pl",
"centrum.cz",
+ "citromail.hu",
+ "claro.net.ar",
+ "clix.pt",
"cock.li",
+ "daum.net",
"delfi.lt",
"disroot.org",
"elude.in",
"email.cz",
"email.ua",
+ "entel.cl",
"fastmail.com",
+ "fibertel.com.ar",
+ "foxmail.com",
+ "free.fr",
+ "freemail.hu",
+ "globo.com",
"gmail.com",
"gmx.at",
"gmx.ch",
"gmx.com",
"gmx.de",
+ "gmx.net",
+ "hanmail.net",
"hispeed.ch",
"hot.ee",
"hotmail.com",
+ "hotmail.com.ar",
"hushmail.com",
"i.ua",
"icloud.com",
+ "ig.com.br",
+ "in.gr",
"inbox.lv",
"inbox.ru",
"interia.pl",
+ "laposte.net",
"lavabit.com",
"libero.it",
"list.ru",
"live.com",
+ "mail.bg",
"mail.com",
"mail.ee",
"mail.lv",
"mail.ru",
+ "mail.ru.com",
"mailbox.org",
"mailfence.com",
"me.com",
"meta.ua",
+ "meta.ua.com",
+ "myabv.com",
+ "mynet.com",
+ "nate.com",
+ "naver.com",
"o2.pl",
"one.lt",
"onet.pl",
"op.pl",
+ "orange.fr",
+ "otenet.gr",
"outlook.com",
"pm.me",
"poczta.fm",
@@ -62,11 +94,25 @@
"proton.me",
"protonmail.com",
"qq.com",
+ "r7.com",
"rambler.ru",
+ "rediffmail.com",
"runbox.com",
+ "sapo.pt",
+ "scarlet.be",
"seznam.cz",
+ "sfr.fr",
+ "sify.com",
+ "sina.cn",
+ "sina.com",
+ "sohu.com",
"startmail.com",
+ "sunrise.ch",
+ "superonline.com",
"t-online.de",
+ "telenet.be",
+ "telia.com",
+ "terra.com.br",
"tin.it",
"tiscali.it",
"tlen.pl",
@@ -75,20 +121,38 @@
"tutanota.de",
"ua.fm",
"ukr.net",
+ "ukrpost.ua",
+ "uol.com.br",
+ "vipmail.hu",
"virgilio.it",
"voidash.bond",
"vp.pl",
+ "vsnl.com",
+ "wanadoo.fr",
"web.de",
+ "web.nl",
+ "wo.cn",
"wp.pl",
+ "yahoo.co.uk",
"yahoo.com",
+ "yahoo.de",
+ "yahoo.es",
+ "yahoo.fr",
+ "yahoo.it",
"yandex.com",
"yandex.ru",
+ "yeah.net",
+ "ziggo.nl",
+ "zipmail.com.br",
"zoho.com",
"zoznam.sk"
],
"blocked": [
+ "guerrillamail.com",
"mail.tm",
- "tempmail.lol"
+ "mailinator.com",
+ "tempmail.lol",
+ "yopmail.com"
],
"other": {},
"domains": {
@@ -96,18 +160,42 @@
"verdict": "ACCEPTED",
"ts": "10-15 17:07:42"
},
+ "139.com": {
+ "verdict": "ACCEPTED",
+ "ts": "10-15 18:06:03"
+ },
"163.com": {
"verdict": "ACCEPTED",
"ts": "10-15 17:07:07"
},
+ "189.cn": {
+ "verdict": "ACCEPTED",
+ "ts": "10-15 18:06:37"
+ },
+ "abv.bg": {
+ "verdict": "ACCEPTED",
+ "ts": "10-15 17:49:04"
+ },
+ "adinet.com.uy": {
+ "verdict": "ACCEPTED",
+ "ts": "10-15 18:23:28"
+ },
"alice.it": {
"verdict": "ACCEPTED",
"ts": "10-15 17:42:42"
},
+ "aliyun.com": {
+ "verdict": "ACCEPTED",
+ "ts": "10-15 18:08:21"
+ },
"amorki.pl": {
"verdict": "ACCEPTED",
"ts": "10-15 17:15:49"
},
+ "ancel.com.uy": {
+ "verdict": "ACCEPTED",
+ "ts": "10-15 18:24:02"
+ },
"aol.com": {
"verdict": "ACCEPTED",
"ts": "10-15 17:03:35"
@@ -131,7 +219,11 @@
},
"bluewin.ch": {
"verdict": "ACCEPTED",
- "ts": "10-15 17:35:44"
+ "ts": "10-15 18:15:19"
+ },
+ "bol.com.br": {
+ "verdict": "ACCEPTED",
+ "ts": "10-15 18:17:40"
},
"buziaczek.pl": {
"verdict": "ACCEPTED",
@@ -141,10 +233,26 @@
"verdict": "ACCEPTED",
"ts": "10-15 17:21:03"
},
+ "citromail.hu": {
+ "verdict": "ACCEPTED",
+ "ts": "10-15 17:47:55"
+ },
+ "claro.net.ar": {
+ "verdict": "ACCEPTED",
+ "ts": "10-15 18:21:44"
+ },
+ "clix.pt": {
+ "verdict": "ACCEPTED",
+ "ts": "10-15 17:57:46"
+ },
"cock.li": {
"verdict": "ACCEPTED",
"ts": "10-15 16:58:51"
},
+ "daum.net": {
+ "verdict": "ACCEPTED",
+ "ts": "10-15 18:02:35"
+ },
"delfi.lt": {
"verdict": "ACCEPTED",
"ts": "10-15 17:38:38"
@@ -165,10 +273,34 @@
"verdict": "ACCEPTED",
"ts": "10-15 17:16:23"
},
+ "entel.cl": {
+ "verdict": "ACCEPTED",
+ "ts": "10-15 18:24:37"
+ },
"fastmail.com": {
"verdict": "ACCEPTED",
"ts": "10-15 17:11:11"
},
+ "fibertel.com.ar": {
+ "verdict": "ACCEPTED",
+ "ts": "10-15 18:22:19"
+ },
+ "foxmail.com": {
+ "verdict": "ACCEPTED",
+ "ts": "10-15 18:07:47"
+ },
+ "free.fr": {
+ "verdict": "ACCEPTED",
+ "ts": "10-15 17:44:27"
+ },
+ "freemail.hu": {
+ "verdict": "ACCEPTED",
+ "ts": "10-15 17:47:20"
+ },
+ "globo.com": {
+ "verdict": "ACCEPTED",
+ "ts": "10-15 18:18:49"
+ },
"gmail.com": {
"verdict": "ACCEPTED",
"note": "$0 promo_inbox dedup",
@@ -176,11 +308,11 @@
},
"gmx.at": {
"verdict": "ACCEPTED",
- "ts": "10-15 17:34:00"
+ "ts": "10-15 18:12:58"
},
"gmx.ch": {
"verdict": "ACCEPTED",
- "ts": "10-15 17:34:34"
+ "ts": "10-15 18:13:33"
},
"gmx.com": {
"verdict": "ACCEPTED",
@@ -189,9 +321,21 @@
"gmx.de": {
"verdict": "ACCEPTED"
},
+ "gmx.net": {
+ "verdict": "ACCEPTED",
+ "ts": "10-15 18:14:08"
+ },
+ "guerrillamail.com": {
+ "verdict": "BLOCKED",
+ "ts": "10-15 18:00:18"
+ },
+ "hanmail.net": {
+ "verdict": "ACCEPTED",
+ "ts": "10-15 18:03:10"
+ },
"hispeed.ch": {
"verdict": "ACCEPTED",
- "ts": "10-15 17:36:18"
+ "ts": "10-15 18:16:30"
},
"hot.ee": {
"verdict": "ACCEPTED",
@@ -202,6 +346,10 @@
"ts": "10-15 17:01:52",
"reg_path": "outlook-autoreg"
},
+ "hotmail.com.ar": {
+ "verdict": "ACCEPTED",
+ "ts": "10-15 18:22:53"
+ },
"hushmail.com": {
"verdict": "ACCEPTED",
"ts": "10-15 17:00:08"
@@ -213,6 +361,14 @@
"verdict": "ACCEPTED",
"ts": "10-15 17:03:00"
},
+ "ig.com.br": {
+ "verdict": "ACCEPTED",
+ "ts": "10-15 18:20:00"
+ },
+ "in.gr": {
+ "verdict": "ACCEPTED",
+ "ts": "10-15 17:46:11"
+ },
"inbox.lv": {
"verdict": "ACCEPTED",
"ts": "10-15 17:36:53"
@@ -224,6 +380,10 @@
"interia.pl": {
"verdict": "ACCEPTED"
},
+ "laposte.net": {
+ "verdict": "ACCEPTED",
+ "ts": "10-15 17:43:52"
+ },
"lavabit.com": {
"verdict": "ACCEPTED",
"ts": "10-15 16:59:32"
@@ -241,6 +401,10 @@
"ts": "10-15 17:10:02",
"reg_path": "outlook-autoreg"
},
+ "mail.bg": {
+ "verdict": "ACCEPTED",
+ "ts": "10-15 17:49:39"
+ },
"mail.com": {
"verdict": "ACCEPTED",
"ts": "10-15 17:04:10"
@@ -257,6 +421,10 @@
"verdict": "ACCEPTED",
"reg_path": "mailru-signup"
},
+ "mail.ru.com": {
+ "verdict": "ACCEPTED",
+ "ts": "10-15 18:11:14"
+ },
"mail.tm": {
"verdict": "BLOCKED",
"reg_path": "blocklisted"
@@ -269,6 +437,10 @@
"verdict": "ACCEPTED",
"ts": "10-15 16:55:19"
},
+ "mailinator.com": {
+ "verdict": "BLOCKED",
+ "ts": "10-15 18:00:52"
+ },
"me.com": {
"verdict": "ACCEPTED",
"ts": "10-15 17:10:37"
@@ -276,6 +448,26 @@
"meta.ua": {
"verdict": "ACCEPTED"
},
+ "meta.ua.com": {
+ "verdict": "ACCEPTED",
+ "ts": "10-15 18:12:24"
+ },
+ "myabv.com": {
+ "verdict": "ACCEPTED",
+ "ts": "10-15 17:50:13"
+ },
+ "mynet.com": {
+ "verdict": "ACCEPTED",
+ "ts": "10-15 17:58:20"
+ },
+ "nate.com": {
+ "verdict": "ACCEPTED",
+ "ts": "10-15 18:03:44"
+ },
+ "naver.com": {
+ "verdict": "ACCEPTED",
+ "ts": "10-15 18:02:01"
+ },
"o2.pl": {
"verdict": "ACCEPTED",
"reg_path": "wp-onelogin"
@@ -292,6 +484,14 @@
"verdict": "ACCEPTED",
"ts": "10-15 17:13:30"
},
+ "orange.fr": {
+ "verdict": "ACCEPTED",
+ "ts": "10-15 17:43:17"
+ },
+ "otenet.gr": {
+ "verdict": "ACCEPTED",
+ "ts": "10-15 17:46:46"
+ },
"outlook.com": {
"verdict": "ACCEPTED",
"ts": "10-15 17:01:17",
@@ -329,31 +529,87 @@
"verdict": "ACCEPTED",
"ts": "10-15 17:06:31"
},
+ "r7.com": {
+ "verdict": "ACCEPTED",
+ "ts": "10-15 18:20:35"
+ },
"rambler.ru": {
"verdict": "ACCEPTED",
"ts": "10-15 17:18:42"
},
+ "rediffmail.com": {
+ "verdict": "ACCEPTED",
+ "ts": "10-15 18:09:30"
+ },
"runbox.com": {
"verdict": "ACCEPTED",
"ts": "10-15 17:11:46"
},
+ "sapo.pt": {
+ "verdict": "ACCEPTED",
+ "ts": "10-15 17:56:35"
+ },
+ "scarlet.be": {
+ "verdict": "ACCEPTED",
+ "ts": "10-15 17:56:01"
+ },
"seznam.cz": {
"verdict": "ACCEPTED",
"ts": "10-15 17:19:53"
},
+ "sfr.fr": {
+ "verdict": "ACCEPTED",
+ "ts": "10-15 17:45:36"
+ },
+ "sify.com": {
+ "verdict": "ACCEPTED",
+ "ts": "10-15 18:10:05"
+ },
+ "sina.cn": {
+ "verdict": "ACCEPTED",
+ "ts": "10-15 18:04:54"
+ },
+ "sina.com": {
+ "verdict": "ACCEPTED",
+ "ts": "10-15 18:04:19"
+ },
+ "sohu.com": {
+ "verdict": "ACCEPTED",
+ "ts": "10-15 18:05:28"
+ },
"startmail.com": {
"verdict": "ACCEPTED",
"ts": "10-15 16:55:55"
},
+ "sunrise.ch": {
+ "verdict": "ACCEPTED",
+ "ts": "10-15 18:15:54"
+ },
+ "superonline.com": {
+ "verdict": "ACCEPTED",
+ "ts": "10-15 17:59:44"
+ },
"t-online.de": {
"verdict": "ACCEPTED",
"ts": "10-15 17:08:16",
"reg_path": "accepted-but-$0-observed"
},
+ "telenet.be": {
+ "verdict": "ACCEPTED",
+ "ts": "10-15 17:55:27"
+ },
+ "telia.com": {
+ "verdict": "ACCEPTED",
+ "ts": "10-15 17:53:40"
+ },
"tempmail.lol": {
"verdict": "BLOCKED",
"reg_path": "blocklisted"
},
+ "terra.com.br": {
+ "verdict": "ACCEPTED",
+ "ts": "10-15 18:18:15"
+ },
"tin.it": {
"verdict": "ACCEPTED",
"ts": "10-15 17:41:31"
@@ -386,6 +642,18 @@
"ukr.net": {
"verdict": "ACCEPTED"
},
+ "ukrpost.ua": {
+ "verdict": "ACCEPTED",
+ "ts": "10-15 18:11:50"
+ },
+ "uol.com.br": {
+ "verdict": "ACCEPTED",
+ "ts": "10-15 18:17:05"
+ },
+ "vipmail.hu": {
+ "verdict": "ACCEPTED",
+ "ts": "10-15 17:48:29"
+ },
"virgilio.it": {
"verdict": "ACCEPTED",
"ts": "10-15 17:40:22"
@@ -398,17 +666,53 @@
"verdict": "ACCEPTED",
"ts": "10-15 17:14:05"
},
+ "vsnl.com": {
+ "verdict": "ACCEPTED",
+ "ts": "10-15 18:10:39"
+ },
+ "wanadoo.fr": {
+ "verdict": "ACCEPTED",
+ "ts": "10-15 17:45:02"
+ },
"web.de": {
"verdict": "ACCEPTED"
},
+ "web.nl": {
+ "verdict": "ACCEPTED",
+ "ts": "10-15 17:54:17"
+ },
+ "wo.cn": {
+ "verdict": "ACCEPTED",
+ "ts": "10-15 18:07:12"
+ },
"wp.pl": {
"verdict": "ACCEPTED",
"reg_path": "wp-onelogin"
},
+ "yahoo.co.uk": {
+ "verdict": "ACCEPTED",
+ "ts": "10-15 17:51:56"
+ },
"yahoo.com": {
"verdict": "ACCEPTED",
"ts": "10-15 17:02:26"
},
+ "yahoo.de": {
+ "verdict": "ACCEPTED",
+ "ts": "10-15 17:51:22"
+ },
+ "yahoo.es": {
+ "verdict": "ACCEPTED",
+ "ts": "10-15 17:53:06"
+ },
+ "yahoo.fr": {
+ "verdict": "ACCEPTED",
+ "ts": "10-15 17:50:48"
+ },
+ "yahoo.it": {
+ "verdict": "ACCEPTED",
+ "ts": "10-15 17:52:31"
+ },
"yandex.com": {
"verdict": "ACCEPTED",
"ts": "10-15 17:09:27"
@@ -417,6 +721,22 @@
"verdict": "ACCEPTED",
"ts": "10-15 17:18:07"
},
+ "yeah.net": {
+ "verdict": "ACCEPTED",
+ "ts": "10-15 18:08:55"
+ },
+ "yopmail.com": {
+ "verdict": "BLOCKED",
+ "ts": "10-15 18:01:26"
+ },
+ "ziggo.nl": {
+ "verdict": "ACCEPTED",
+ "ts": "10-15 17:54:52"
+ },
+ "zipmail.com.br": {
+ "verdict": "ACCEPTED",
+ "ts": "10-15 18:21:09"
+ },
"zoho.com": {
"verdict": "ACCEPTED",
"ts": "10-15 17:05:20"