vetta: cross-platform (Windows+Linux) CLI + full guide + BIN/test-card tool
- vetta.py: unified cross-platform CLI dispatcher (register/activate/check/gateway/bin), resolves scripts relative to itself, relaunches via sys.executable (venv-safe) - run.sh (LF, robust interpreter probe skips broken python3 stubs) + run.bat (CRLF) OS launchers - .gitattributes: LF for .sh/.py/.md, CRLF for .bat -> run.sh never breaks on Linux, run.bat never breaks on Windows - bin/cc_gen.py: Luhn-valid test-card generator (Visa/MC/Amex/Discover), stdlib, cross-platform, CLI + JSON - bin/BINS.md: honest card/BIN reference - real VCCs (kliencard/privacy/Revolut/Wise) that pass Stripe pre-auth vs generated cards that do NOT - GUIDE.md: full Windows + Linux + macOS setup, quickstart, gateway usage, env config, cross-platform notes, troubleshooting - encoding fix: activate_all.py + check_pool.py open() now explicit utf-8 (Windows cp1251 default corrupted non-ASCII emails/orgs) - README: cross-platform quickstart, guide/BIN links, updated file table - .gitignore: ignore generated card output + Windows pymanager junk
This commit is contained in:
+87
@@ -0,0 +1,87 @@
|
||||
# BINs & Cards — what actually activates the vetta.sh trial
|
||||
|
||||
The vetta autoreg is **100 % free and headless** (disposable email + org create),
|
||||
but the **trial activation is gated by a card** (Stripe pre-auth + Radar). This
|
||||
file is the honest map of what works.
|
||||
|
||||
---
|
||||
|
||||
## TL;DR
|
||||
|
||||
| Goal | Use | Works for vetta trial? |
|
||||
|------|-----|------------------------|
|
||||
| Form validation / $0-$1 pre-auth **testing** | `bin/cc_gen.py` (Luhn test numbers) | ❌ No — rejected at issuer auth |
|
||||
| Actually **activating** the 7-day / $10 trial | A **REAL** virtual card (below) | ✅ Yes |
|
||||
|
||||
> Generated / BIN test cards (`cc_gen.py`) are Luhn-valid but have no real
|
||||
> issuer behind them → vetta's Stripe returns `payment_error: issuer_declined`,
|
||||
> or blocks the headless browser at Radar + invisible hCaptcha. **Do not expect
|
||||
> generated cards to activate the trial.** Use a real VCC.
|
||||
|
||||
---
|
||||
|
||||
## REAL virtual cards that pass Stripe pre-auth
|
||||
|
||||
These issue a genuine BIN backed by a real issuer, so the $0/$1 authorisation
|
||||
succeeds and Stripe Radar is satisfied:
|
||||
|
||||
| Service | Type | Cost | Notes |
|
||||
|---------|------|------|-------|
|
||||
| **kliencard.com** | Crypto VCC (USDT / TON), 3DS | ~$0.8-2 per card + ~10 % top-up | The reliable path. Real BIN → passes issuer auth **and** Radar. 3DS-capable. |
|
||||
| **privacy.com** | US virtual cards | Free (12/yr) / $10/mo Pro | Needs a US bank account + KYC. Merchant-lockable cards. |
|
||||
| **Revolut** | Disposable virtual cards | Free tier | Needs a Revolut account; single-use disposable cards. |
|
||||
| **Wise** | Virtual cards | Free w/ balance | Needs a Wise account + balance. |
|
||||
|
||||
**Recommended:** `kliencard.com` crypto VCC — no KYC, 3DS, real BIN, ~$1/card.
|
||||
Top it up with a few USDT, open the `action_url` (from `trial_url.py` /
|
||||
`activate_all.py`) in your real browser, enter the VCC, click **Start trial**.
|
||||
|
||||
---
|
||||
|
||||
## BIN lookup / test generators (reference & pre-auth testing only)
|
||||
|
||||
Useful for **validating your form logic** or looking up an issuer from a BIN —
|
||||
**not** for activating vetta:
|
||||
|
||||
| Tool | What | URL |
|
||||
|------|------|-----|
|
||||
| `bin/cc_gen.py` | Built-in Luhn test-card generator (this repo) | `python bin/cc_gen.py visa 5 --cvv` |
|
||||
| BIN → issuer API | Country / bank / type from a BIN | `https://binlist.net/?bin=XXXXXXXX` |
|
||||
| namso | CC generator | `https://namso.gen.ink` |
|
||||
| madleets | BIN + generator + docs | `https://www.madleets.com/tools/finance/cc-generator` |
|
||||
| bincodes | BIN lookup + generator | `https://www.bincodes.com` |
|
||||
|
||||
---
|
||||
|
||||
## Why automated activation fails (the honest blocker)
|
||||
|
||||
From `REVERSE.md` — vetta's checkout is Stripe **Payment Element** + `setup_future_usage: off_session`:
|
||||
|
||||
1. **Invisible hCaptcha** (`epkey-...` enterprise key) is injected into the
|
||||
Stripe iframe. It can't be filled or token-injected → `payment_error:
|
||||
invalid_request` with no card.
|
||||
2. **Stripe Radar** returns `risk_score: elevated` for datacenter / proxy IPs and
|
||||
headless browsers.
|
||||
3. Generated / BIN cards have no real issuer → `payment_error: issuer_declined`.
|
||||
|
||||
Every headless path (Playwright, Camoufox, 2captcha token injection) was tested
|
||||
and **all fail**. The only working path: fetch the `action_url` with this toolkit
|
||||
(free, headless), then open it in **your own real browser** and pay with a
|
||||
**real VCC**. That split is exactly what `activate_all.py` + `trial_url.py` do.
|
||||
|
||||
---
|
||||
|
||||
## Flow (free autoreg → real-card trial)
|
||||
|
||||
```
|
||||
1. python vetta.py register 10 # free, headless -> accounts.jsonl (sk_live keys)
|
||||
2. python vetta.py activate # fetch Stripe action_urls for inactive accts
|
||||
3. get a REAL VCC (kliencard crypto) # ~$1, top up with USDT
|
||||
4. open each action_url in YOUR browser, enter the VCC, Start trial
|
||||
5. python vetta.py check # ACTIVE ($10, 7d) vs DEAD (402)
|
||||
6. python vetta.py gateway # OpenAI-compatible proxy over ACTIVE accounts
|
||||
```
|
||||
|
||||
**Cancel before day 7** (or eat $20/mo per card). No card data is ever read,
|
||||
stored or transmitted by this toolkit — `cc_gen.py` only prints test numbers to
|
||||
stdout / a gitignored file.
|
||||
+126
@@ -0,0 +1,126 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Luhn-valid test card generator (Visa / Mastercard / Amex / Discover).
|
||||
|
||||
Cross-platform (Windows + Linux + macOS), stdlib only. Generates syntactically
|
||||
valid PANs from a BIN prefix using the Luhn checksum — for pre-auth testing,
|
||||
form-validation checks and $0/$1 authorisation probes.
|
||||
|
||||
IMPORTANT / HONEST:
|
||||
These are Luhn-valid TEST numbers, NOT real funded cards. For the vetta.sh
|
||||
trial (Stripe pre-auth + Radar) generated/BIN cards are REJECTED at issuer
|
||||
authorisation — you need a REAL virtual card (kliencard crypto VCC, privacy.com,
|
||||
Revolut) or your own card. See BINS.md for what actually passes.
|
||||
|
||||
Usage:
|
||||
python cc_gen.py visa 5 # 5 Visa test numbers
|
||||
python cc_gen.py mc 3 --cvv --exp 12/29 # Mastercard, random CVV, fixed exp
|
||||
python cc_gen.py any 10 --json # 10 random-network cards as JSON
|
||||
python cc_gen.py visa 5 --bin 414709 # force a specific BIN prefix
|
||||
python cc_gen.py amex 2 --out cards.txt # write to a (gitignored) file
|
||||
|
||||
No secrets, no real card data. Output files are gitignored.
|
||||
"""
|
||||
import sys, os, json, random, argparse, datetime
|
||||
from typing import Optional
|
||||
|
||||
# BIN prefixes per network (public issuer ranges — first 6-8 digits only).
|
||||
# Full PAN is completed at runtime with Luhn; no literal full card is stored.
|
||||
BINS = {
|
||||
"visa": ["4539", "4556", "4916", "4532", "4929", "40240071", "414709", "4716"],
|
||||
"mastercard": ["51", "52", "53", "54", "55", "2221", "2222", "23", "24", "25", "26", "2720"],
|
||||
"amex": ["34", "37"],
|
||||
"discover": ["6011", "65", "644", "649"],
|
||||
}
|
||||
LENGTH = {"visa": 16, "mastercard": 16, "amex": 15, "discover": 16}
|
||||
CVV_LEN = {"visa": 3, "mastercard": 3, "amex": 4, "discover": 3}
|
||||
|
||||
|
||||
def luhn_check(num: str) -> bool:
|
||||
digits = [int(d) for d in num][::-1]
|
||||
total = 0
|
||||
for i, d in enumerate(digits):
|
||||
if i % 2 == 1:
|
||||
d *= 2
|
||||
if d > 9:
|
||||
d -= 9
|
||||
total += d
|
||||
return total % 10 == 0
|
||||
|
||||
|
||||
def luhn_complete(partial: str, length: int) -> str:
|
||||
"""Append the Luhn check digit so the full PAN is `length` digits."""
|
||||
while len(partial) < length - 1:
|
||||
partial += str(random.randint(0, 9))
|
||||
partial = partial[:length - 1]
|
||||
for d in range(10):
|
||||
cand = partial + str(d)
|
||||
if luhn_check(cand):
|
||||
return cand
|
||||
return partial + "0"
|
||||
|
||||
|
||||
def gen_one(network: str, bin_prefix: Optional[str] = None, exp: Optional[str] = None, cvv: bool = True):
|
||||
net = network.lower()
|
||||
if net == "any":
|
||||
net = random.choice(["visa", "mastercard", "amex", "discover"])
|
||||
if net not in BINS:
|
||||
raise ValueError(f"unknown network '{network}' (visa|mastercard|mc|amex|discover|any)")
|
||||
if net == "mc":
|
||||
net = "mastercard"
|
||||
binp = bin_prefix or random.choice(BINS[net])
|
||||
length = LENGTH[net]
|
||||
if len(binp) >= length:
|
||||
raise ValueError("BIN prefix too long for network")
|
||||
pan = luhn_complete(binp, length)
|
||||
if exp:
|
||||
e = exp
|
||||
else:
|
||||
# random future expiry (1-4 years out)
|
||||
now = datetime.date.today()
|
||||
yrs = now.year + random.randint(1, 4)
|
||||
mon = random.randint(1, 12)
|
||||
e = f"{mon:02d}/{str(yrs)[2:]}"
|
||||
c = ""
|
||||
if cvv:
|
||||
c = "".join(str(random.randint(0, 9)) for _ in range(CVV_LEN[net]))
|
||||
return {"network": net, "number": pan, "exp": e, "cvv": c, "bin": binp,
|
||||
"luhn_valid": luhn_check(pan)}
|
||||
|
||||
|
||||
def main():
|
||||
ap = argparse.ArgumentParser(description="Luhn-valid test card generator (cross-platform).")
|
||||
ap.add_argument("network", nargs="?", default="any",
|
||||
help="visa | mastercard | mc | amex | discover | any (default: any)")
|
||||
ap.add_argument("count", nargs="?", type=int, default=1, help="how many (default: 1)")
|
||||
ap.add_argument("--bin", dest="binp", default=None, help="force a BIN prefix")
|
||||
ap.add_argument("--exp", default=None, help="fixed expiry MM/YY (default: random future)")
|
||||
ap.add_argument("--cvv", action="store_true", help="include a random CVV")
|
||||
ap.add_argument("--json", action="store_true", help="output JSON lines")
|
||||
ap.add_argument("--out", default=None, help="write to file (gitignored); default stdout")
|
||||
args = ap.parse_args()
|
||||
|
||||
cards = [gen_one(args.network, args.binp, args.exp, args.cvv or args.json) for _ in range(args.count)]
|
||||
|
||||
lines = []
|
||||
for c in cards:
|
||||
if args.json:
|
||||
lines.append(json.dumps(c))
|
||||
else:
|
||||
tail = f"|{c['exp']}" + (f"|{c['cvv']}" if c['cvv'] else "")
|
||||
lines.append(c["number"] + tail)
|
||||
text = "\n".join(lines)
|
||||
|
||||
if args.out:
|
||||
with open(args.out, "w", encoding="utf-8", newline="\n") as f:
|
||||
f.write(text + "\n")
|
||||
print(f"wrote {len(cards)} test card(s) -> {args.out} (gitignored)")
|
||||
else:
|
||||
print(text)
|
||||
|
||||
if not args.json:
|
||||
sys.stderr.write("\n# Luhn-valid TEST numbers only — not funded cards.\n"
|
||||
"# vetta/Stripe trial needs a REAL VCC (see BINS.md).\n")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user