one-command starter for beginners, free socks proxy pool from iishko, iishko gateway shim + channel sql

This commit is contained in:
eni
2026-11-11 21:09:22 +02:00
parent a676a4a0cf
commit 4b07939e0c
9 changed files with 900 additions and 16 deletions
+70 -16
View File
@@ -14,7 +14,7 @@ Output: netlify_bank.jsonl (email, password, token, user_id, site_id, ts)
"""
import argparse, json, os, random, re, string, time, imaplib, email as email_lib, sys
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
from proxy_helpers import ensure_chrome, rotate_zte, egress_ip, ZTE_PROXY
from proxy_helpers import ensure_chrome, rotate_zte, egress_ip, ZTE_PROXY, kill_all_chrome
from mailbox import MailboxPool, Mailbox
import captcha as capmod
@@ -253,18 +253,14 @@ def browser_alive(port: int) -> bool:
def restart_browser(port: int, profile: str = None, proxy: str = None):
"""Kill chrome bound to this profile/port and start a fresh one."""
import psutil
for pr in psutil.process_iter(['pid', 'name', 'cmdline']):
try:
cl = ' '.join(pr.info.get('cmdline') or [])
if pr.info['name'] and 'chrome' in pr.info['name'].lower() and (
f'--remote-debugging-port={port}' in cl or (profile and profile in cl)):
pr.kill()
except Exception:
pass
time.sleep(4)
return ensure_chrome(port, profile, proxy)
"""Kill ALL chrome trees (zombies pile up otherwise) and start a fresh one."""
kill_all_chrome()
time.sleep(3)
ok = ensure_chrome(port, profile, proxy)
if not ok:
time.sleep(3)
ok = ensure_chrome(port, profile, proxy)
return ok
def main():
global MAILS, BANK
@@ -276,6 +272,7 @@ def main():
ap.add_argument('--rotate', action='store_true', help='rotate ZTE mobile IP before each account')
ap.add_argument('--profile', default='', help='Chrome user-data-dir')
ap.add_argument('--mails', default='', help='mailbox pool file(s), comma separated: email:password lines')
ap.add_argument('--proxies', default='', help="'auto' = free pool from iishko, or path to a file with one proxy per line")
ap.add_argument('--captcha', default='auto', help='auto|off|2captcha|capmonster|rucaptcha')
ap.add_argument('--captcha-key', dest='captcha_key', default='', help='solver API key')
ap.add_argument('--captcha-kind', dest='captcha_kind', default='recaptcha_v2_enterprise',
@@ -300,6 +297,21 @@ def main():
if not pool:
print('[!] no fresh emails in pool'); return
ppool = None
if args.proxies:
try:
if args.proxies == 'auto':
from proxy_source import ProxyPool
ppool = ProxyPool(limit=60, check=10)
else:
from proxy_source import ProxyPool as _PP
lines = [l.strip() for l in open(args.proxies, encoding='utf-8') if l.strip()]
ppool = _PP.__new__(_PP)
ppool.verbose, ppool.items, ppool.used, ppool.source = True, lines, 0, 'file'
print(f'[i] proxy pool: {len(ppool)} proxies ({ppool.source})')
except Exception as e:
print('[!] proxy pool failed:', str(e)[:120])
from playwright.sync_api import sync_playwright
port = args.port
if not ensure_chrome(port, args.profile or None, args.proxy or None):
@@ -315,7 +327,10 @@ def main():
page = pg; break
if page is None:
page = ctx.new_page()
page.goto('https://app.netlify.com/signup/email', timeout=45000, wait_until='domcontentloaded')
try:
page.goto('https://app.netlify.com/signup/email', timeout=45000, wait_until='domcontentloaded')
except Exception as e0:
print('[i] initial page open skipped:', str(e0)[:70])
page.set_default_timeout(45000)
for i in range(args.count):
@@ -332,6 +347,19 @@ def main():
break
ctx = ctx2 or ctx
page = ctx.new_page()
if ppool is not None:
px = ppool.take()
if px:
print(f' [proxy] {px}')
restart_browser(args.port, args.profile or None, px)
try:
page.close()
except Exception:
pass
_b = p.chromium.connect_over_cdp(f'http://127.0.0.1:{args.port}')
ctx = _b.contexts[0] if _b.contexts else _b.new_context()
page = ctx.new_page()
page.set_default_timeout(45000)
if args.rotate and i:
newip = rotate_zte()
print(f' [rotate] new egress: {newip or "fail"}')
@@ -339,9 +367,35 @@ def main():
email_addr, mail_pass = mb.addr, mb.password
password = gen_pass()
print(f'\n[{i+1}/{args.count}] {email_addr}')
goto_ok = False
for attempt in range(3):
try:
page.goto('https://app.netlify.com/signup/email', timeout=45000, wait_until='domcontentloaded')
goto_ok = True
break
except Exception as ge:
msg = str(ge)
print(f' [goto] attempt {attempt+1} failed: {msg[:70]}')
if ppool is not None and ('TUNNEL' in msg or 'PROXY' in msg or 'ERR_' in msg):
px = ppool.take()
if px:
print(f' [proxy] switch -> {px}')
restart_browser(args.port, args.profile or None, px)
try:
page.close()
except Exception:
pass
_b = p.chromium.connect_over_cdp(f'http://127.0.0.1:{args.port}')
ctx = _b.contexts[0] if _b.contexts else _b.new_context()
page = ctx.new_page()
page.set_default_timeout(45000)
continue
break
if not goto_ok:
print(' [x] could not open signup page')
continue
time.sleep(3)
try:
page.goto('https://app.netlify.com/signup/email', timeout=45000, wait_until='domcontentloaded')
time.sleep(3)
r = do_signup(page, email_addr, password)
print(' signup:', r)
if not r['ok']: