- 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
73 lines
2.4 KiB
Python
73 lines
2.4 KiB
Python
#!/usr/bin/env python3
|
|
"""vetta — unified cross-platform CLI for the vetta.sh toolkit.
|
|
|
|
One entry point that works identically on Windows, Linux and macOS. It resolves
|
|
every sub-script relative to THIS file (so you can run it from any directory)
|
|
and launches them with the same interpreter that runs vetta.py (respects your
|
|
venv / pyenv / system python).
|
|
|
|
Commands:
|
|
vetta register [COUNT] [START] Mass autoreg -> accounts.jsonl (free, headless)
|
|
vetta activate Fetch Stripe trial action_urls for inactive accts
|
|
vetta trial-url [POOL] [IDX] Fetch one fresh trial action_url
|
|
vetta check Pool status: ACTIVE ($10 trial) vs DEAD (402)
|
|
vetta gateway OpenAI-compatible proxy on 127.0.0.1:8700
|
|
vetta bin [NET] [COUNT] [opts] Luhn test-card generator (see bin/cc_gen.py)
|
|
vetta help This help
|
|
|
|
Environment (all optional):
|
|
VETTA_POOL accounts file (default: ./accounts.jsonl)
|
|
VETTA_PW farm password (default: VettaFarm2026x)
|
|
PORT gateway port (default: 8700)
|
|
GW_KEY gateway access key (default: off)
|
|
|
|
Examples:
|
|
python vetta.py register 10
|
|
python vetta.py bin visa 5 --cvv
|
|
PORT=9000 python vetta.py gateway
|
|
"""
|
|
import os, sys, subprocess
|
|
|
|
REPO = os.path.dirname(os.path.abspath(__file__))
|
|
PY = sys.executable or "python3"
|
|
|
|
# command -> (relative script path, passthrough args?)
|
|
COMMANDS = {
|
|
"register": ("autoreg.py", True),
|
|
"activate": ("activate_all.py", True),
|
|
"trial-url": ("trial_url.py", True),
|
|
"check": ("check_pool.py", True),
|
|
"gateway": ("gateway.py", True),
|
|
"bin": (os.path.join("bin", "cc_gen.py"), True),
|
|
}
|
|
|
|
|
|
def _usage():
|
|
print((__doc__ or "vetta CLI").strip())
|
|
|
|
|
|
def main(argv):
|
|
if not argv or argv[0] in ("-h", "--help", "help"):
|
|
_usage()
|
|
return 0
|
|
cmd = argv[0]
|
|
rest = argv[1:]
|
|
if cmd not in COMMANDS:
|
|
print(f"unknown command: {cmd}\n", file=sys.stderr)
|
|
_usage()
|
|
return 2
|
|
script, _ = COMMANDS[cmd]
|
|
path = os.path.join(REPO, script)
|
|
if not os.path.exists(path):
|
|
print(f"missing script: {path}", file=sys.stderr)
|
|
return 2
|
|
# launch with the same interpreter; inherit env + stdio (cross-platform)
|
|
try:
|
|
return subprocess.call([PY, path] + rest, cwd=REPO)
|
|
except KeyboardInterrupt:
|
|
return 130
|
|
|
|
|
|
if __name__ == "__main__":
|
|
sys.exit(main(sys.argv[1:]))
|