RU README (AlStack style) + local web dashboard (task buttons, live log, /dl whitelist, pinned gw port 8700)

This commit is contained in:
gothbreach
2026-10-14 13:27:16 +03:00
parent f049a2636d
commit 2b5cfbd66b
3 changed files with 399 additions and 85 deletions
+112 -85
View File
@@ -1,121 +1,148 @@
👻 **[иишко — канал про AI-инструменты и связки](https://t.me/AlStack)**
# vetta-toolkit
Reverse-engineering + mass-autoreg toolkit for **Vetta / Naive** (`vetta.sh`),
an AI-API aggregator (merchant Relixir, Inc.). The frontend advertises ~457
models, but the live `/v1/models` catalogue (verified 2026-10-13, paginated)
contains **369 models, all text/chat** — the image/video proxy routes return
`404 no route` and image/video model IDs are `unknown model`. One
OpenAI-compatible proxy key for everything that actually works.
Тулкит для **Vetta / Naive** (`vetta.sh`) — AI-API агрегатора (merchant Relixir, Inc.):
массовый авторег, локальный OpenAI-совместимый гейтвей с ротацией ключей,
помощник активации триала и BIN-справочник.
**Cross-platform (Windows · Linux · macOS)** — one CLI (`vetta.py` / `run.sh` /
`run.bat`), stdlib-only except the optional trial helpers (Playwright).
Фронтенд рекламирует ~457 моделей, но живой каталог `/v1/models` (проверено
14.10.2026, с пагинацией) — **369 моделей, все text/chat**. Image/video роуты
отдают `404 no route`. Один OpenAI-совместимый ключ `sk_live_...` на всё, что
реально работает.
📖 **[GUIDE.md](GUIDE.md)** — full Windows + Linux setup & usage ·
**[bin/BINS.md](bin/BINS.md)** — cards/BINs: what actually activates the trial ·
**[REVERSE.md](REVERSE.md)** — protocol notes.
**Кросс-платформенно (Windows · Linux · macOS)** — один CLI (`vetta.py` /
`run.sh` / `run.bat`) + веб-дашборд (`dashboard.py`). Всё на стандартной
библиотеке, кроме опциональных помощников триала (Playwright).
> Educational / security-research use. Registering accounts and reading a public
> API is fine; **pay for what you use** and cancel trials before they bill.
> Contains **no real card data and no captcha bypass**; `bin/cc_gen.py` generates
> Luhn **test** numbers for pre-auth/form testing only (generated cards do NOT
> activate the trial — see `bin/BINS.md`).
📖 **[GUIDE.md](GUIDE.md)** — полная установка и использование (Win + Linux) ·
**[bin/BINS.md](bin/BINS.md)** — карты/BIN: что ДЕЙСТВИТЕЛЬНО активирует триал ·
**[REVERSE.md](REVERSE.md)** — протокол API глазами реверса.
## What's inside
> ⚠️ **Честно, до установки:**
> - Авторег — бесплатный и headless, работает из коробки.
> - Свежий аккаунт = **пустышка**: баланс `$0`, прокси отвечает `402
> subscription_required`, пока не активирован триал ($10 / 7 дней, Stripe).
> - **Сгенерированные/BIN-карты триал НЕ активируют** — Stripe issuer-auth +
> Radar отбивают их на pre-auth. Нужна реальная карта (своя или VCC с 3DS).
> - Полностью автоматической активации НЕТ: hCaptcha (HUMAN Security) внутри
> Stripe игнорирует синтетические клики. `auto_trial.py` делает всё, кроме
> одной галки hCaptcha, которую ставишь сам.
> - В репе нет реальных карточных данных и captcha-bypass. `bin/cc_gen.py` —
> только Luhn-**тест**-номера для проверки форм/pre-auth.
> - Образовательные / security-research цели. **Плати за то, чем пользуешься**,
> отменяй триал до списания (после 7 дней — $20/мес).
| File | Purpose |
|------|---------|
| `vetta.py` | **Unified cross-platform CLI** — start here (`vetta register/activate/check/gateway/bin`) |
| `run.sh` / `run.bat` | OS launchers (Linux/macOS · Windows) |
| `autoreg.py` | Mass registration: disposable inbox → register → confirm → session → org → `sk_live` key, appended to `accounts.jsonl` |
| `activate_all.py` | Batch-generate Stripe trial `action_url`s for every INACTIVE account → `action_urls.txt` (manual activation helper) |
| `check_pool.py` | Status check: balance + subscription per account → ACTIVE vs DEAD (no-card / 402) |
| `gateway.py` | Local OpenAI-compatible gateway (`127.0.0.1:8700`) that rotates the pool's `sk_live` keys against vetta's proxy |
| `trial_url.py` | One-off: fetch a fresh Stripe checkout `action_url` for a single account index |
| `auto_trial.py` | Semi-auto activation: real Chrome (CDP) fills card + billing address + submits; you only tick the hCaptcha box once |
| `bin/cc_gen.py` | Luhn **test**-card generator (Visa/MC/Amex/Discover) for pre-auth/form testing |
| `bin/BINS.md` | Real VCCs + BIN reference — what actually activates the trial |
| `GUIDE.md` | Full cross-platform guide (Windows + Linux setup, usage, troubleshooting) |
| `REVERSE.md` | Full API map, schemas, auth flow, trial mechanics, honest blocker notes |
| `requirements.txt` | Python deps |
## Что внутри
## Setup
| Файл | Назначение |
|------|-----------|
| `dashboard.py` | **Веб-дашборд (127.0.0.1:8710)** — все задачи кнопками, живой лог, скачивание пула. Старт отсюда, если не любишь CLI |
| `vetta.py` | Единый CLI: `register / activate / check / gateway / bin` |
| `run.sh` / `run.bat` | Лаунчеры Linux/macOS · Windows |
| `autoreg.py` | Масс-рег: временный inbox → register → confirm → session → org → ключ `sk_live` в `accounts.jsonl` |
| `activate_all.py` | Пакетно генерит Stripe `action_url` для всех НЕактивных аккаунтов → `action_urls.txt` |
| `trial_url.py` | Разово: свежий `action_url` для одного аккаунта по индексу |
| `auto_trial.py` | Полу-авто активация: настоящий Chrome (CDP) заполняет карту + billing + сабмитит; ты только ставишь галку hCaptcha ОДИН раз |
| `check_pool.py` | Статус пула: баланс + подписка по каждому аккаунту → ACTIVE vs DEAD |
| `gateway.py` | Локальный OpenAI-compat гейтвей (`127.0.0.1:8700`): ротация `sk_live` ключей, карантин `402`, backoff `429` |
| `bin/cc_gen.py` | Генератор Luhn-**тест**-карт (Visa/MC/Amex/Discover) для form/pre-auth тестов |
| `bin/BINS.md` | Реальные VCC + BIN-референс: что действительно активирует триал |
| `GUIDE.md` | Полный гайд Windows + Linux (установка, использование, траблшутинг) |
| `REVERSE.md` | Карта API, схемы, auth-флоу, механика триала, честные блокеры |
| `requirements.txt` | Python-зависимости (опциональные помощники) |
## Быстрый старт
```bash
pip install -r requirements.txt
git clone https://github.com/gbonnet65923/vetta-toolkit
cd vetta-toolkit
pip install -r requirements.txt # опционально: autoreg/gateway работают без зависимостей
```
Python 3.10+. `autoreg.py` and `gateway.py` are stdlib-only (no deps needed to
run them); `requirements.txt` lists optional helpers.
Python 3.10+.
## 1. Register accounts
**Вариант 1 — дашборд (проще всего):**
```bash
python autoreg.py 5 # register 5 accounts -> accounts.jsonl
python dashboard.py # открой http://127.0.0.1:8710
```
Кнопки: «Зарегать N аккаунтов», «Проверить пул», «Запустить гейтвей»,
«Trial-ссылки», «BIN: тест-карты». Живой лог каждой задачи в окне, пул
скачивается одной кнопкой.
**Вариант 2 — CLI:**
```bash
python vetta.py register 5 # Win: run.bat register 5 | Linux: ./run.sh register 5
python vetta.py check
python vetta.py gateway
```
## 1. Авторег (бесплатно, headless)
```bash
python autoreg.py 5 # 5 аккаунтов -> accounts.jsonl (~30-40с/акк)
VETTA_PW=MyFarmPass123 python autoreg.py 10
```
Each account (~30s) yields an org `api_key.secret` = `sk_live_...` (the master
Bearer). Records land in `accounts.jsonl` (gitignored).
Каждый аккаунт даёт org `api_key.secret` = `sk_live_...` (мастер-Bearer для
`/v1/models`, `/v1/credits`, `/v1/proxy/*`). Записи попадают в `accounts.jsonl`
(в .gitignore).
## 2. Activate the trial (your own card, manual)
## 2. Активация триала (своя карта, вручную)
Fresh accounts are **empty shells**: balance `$0`, proxy → `402
subscription_required`. The $10 / 7-day trial must be activated through Stripe.
Свежие аккаунты — пустышки (`$0`, прокси → `402`). Триал $10/7 дней
активируется только через Stripe реальной картой:
Automated browsers get blocked by Stripe's invisible hCaptcha + Radar (see
`REVERSE.md`), and generated/BIN cards don't pass issuer auth — so activation is
**manual, with your own card**:
1. Get checkout URL(s):
1. Собери checkout-ссылки:
```bash
python trial_url.py accounts.jsonl 0 # single account by index
python activate_all.py # batch: every INACTIVE account -> action_urls.txt
python trial_url.py accounts.jsonl 0 # одна ссылка по индексу
python activate_all.py # пакетно: все НЕактивные -> action_urls.txt
```
2. Open the printed `action_url` in a **real browser** (phone/PC).
3. Enter **your own** card + matching billing country, click *Start trial*,
tick the hCaptcha if it appears.
4. $0 today; **cancel before day 7** or it bills $20/mo.
5. Verify what's live:
2. Открой `action_url` в настоящем браузере (телефон/ПК).
3. Введи СВОЮ карту + совпадающий billing-адрес, *Start trial*, галка hCaptcha.
4. Сегодня $0; **отмени до 7-го дня**, иначе $20/мес.
5. Проверь, что живо:
```bash
python check_pool.py # ACTIVE vs DEAD (no-card / 402)
python check_pool.py # ACTIVE vs DEAD (без карты / 402)
```
Activate one account at a time — many subscriptions on a single card can get it
flagged. There is **no fully automated activation**: hCaptcha/Radar defeat every
headless browser and token-injection attempt (documented in `REVERSE.md`).
Активируй по одному аккаунту на карту — много подписок на одной карте ловят
флаг. Авто-активации «в ноль кликов» не существует: hCaptcha/Radar бьют любой
headless и token-injection (детали в `REVERSE.md`).
## 2b. Semi-auto: `auto_trial.py` (everything except one click)
### 2b. Полу-авто: `auto_trial.py` (всё, кроме одного клика)
Automates the boring 95%: opens the checkout in a **real Chrome** (CDP), fills
email + your card + full billing address, picks the region, submits, then waits
while you tick the visible hCaptcha box **once** — synthetic CDP clicks on that
box are silently ignored (HUMAN Security layer inside Stripe), verified
2026-10-13. After your click the payment completes by itself and the script
verifies balance/subscription via the API.
Открывает чекаут в настоящем Chrome (CDP), сам заполняет email + карту +
billing + регион, сабмитит — и ждёт, пока ты поставишь видимую галку hCaptcha
**один раз** (синтетические CDP-клики по ней молча игнорируются — слой HUMAN
Security внутри Stripe, проверено 13.10.2026). После клика платёж доходит сам,
скрипт проверяет баланс/подписку через API.
```bash
# 1. dedicated Chrome with CDP (fresh profile dir; don't touch your daily browser)
# 1. отдельный Chrome с CDP (свежий профиль; НЕ твой ежедневный браузер)
"C:\Program Files\Google\Chrome\Application\chrome.exe" --remote-debugging-port=9333 ^
--user-data-dir=C:\chrome_trial --no-first-run about:blank
# 2. your card in card.json (gitignored): {"pan":"...","exp":"08/30","cvv":"...","name":"..."}
# 2. твоя карта в card.json (в .gitignore): {"pan":"...","exp":"08/30","cvv":"...","name":"..."}
# 3. run: target = index into action_urls.txt (from activate_all.py) or a JSON file
python auto_trial.py 0 # first inactive account
python auto_trial.py 0 9333 300 # explicit port + human wait seconds
# 3. запуск: цель = индекс в action_urls.txt (после activate_all.py)
python auto_trial.py 0
python auto_trial.py 0 9333 300 # явный порт + секунды ожидания человека
```
The card never leaves your machine: read from local JSON → typed into Stripe's
own form → masked in logs → never stored. Result lands in
`auto_trial_result.json` (gitignored).
Карта не покидает твою машину: локальный JSON → форма Stripe → маска в логах →
не хранится. Результат в `auto_trial_result.json` (в .gitignore).
## 3. Use the gateway
## 3. Гейтвей
```bash
python gateway.py # 127.0.0.1:8700
```
Then point any OpenAI client at it:
Любой OpenAI-клиент подключается к нему:
```bash
curl http://127.0.0.1:8700/v1/chat/completions \
@@ -123,17 +150,17 @@ curl http://127.0.0.1:8700/v1/chat/completions \
-d '{"model":"openai/gpt-6.1-sol-pro","messages":[{"role":"user","content":"hi"}]}'
```
The gateway round-robins the pool, auto-quarantines `402` (no-trial) accounts,
and backs off on `429`. Only trial-activated accounts serve traffic.
Гейтвей round-robin'ит пул, авто-карантинит `402` (без триала), backoff на
`429`. Трафик обслуживают только активированные аккаунты.
## Notes / gotchas
## Заметки / грабли
- `/v1/auth/session` returns **201**, not 200.
- New users have no org → scoped calls `403` until `POST /v1/organizations`.
- `api_key.secret` (`sk_live_...`) is the master key, **not** the session token.
- Heavy `urllib` probing from one IP can trigger Cloudflare `1010`; back off or
fetch the `action_url` from a browser same-origin context.
- `/v1/auth/session` возвращает **201**, не 200.
- У нового юзера нет org → scoped-вызовы `403`, пока не сделаешь `POST /v1/organizations`.
- `api_key.secret` (`sk_live_...`) — мастер-ключ, НЕ session-токен.
- Тяжёлый `urllib`-пробинг с одного IP ловит Cloudflare `1010` — backoff, либо
доставай `action_url` из браузерного same-origin контекста.
---
👻 [**иишко**](https://t.me/AlStack)
👻 [**иишко**](https://t.me/AlStack) — канал: AI-инструменты, связки, раздачи.