gname toolkit: autoreg + slider reverse + free eu.cc domain claim + CF/catch-all/Zoho mail guide
This commit is contained in:
@@ -0,0 +1,81 @@
|
|||||||
|
# gname-eucc-toolkit
|
||||||
|
|
||||||
|
Free `.eu.cc` domain farm on [gname.com](https://www.gname.com/) + full mail stack: Cloudflare DNS, catch-all Email Routing, corporate mailboxes, OTP automation for autoregs.
|
||||||
|
|
||||||
|
**What you get:**
|
||||||
|
- $0 domains: every gname account receives **3 full-discount .eu.cc vouchers** (registration AND renewal at $0)
|
||||||
|
- Custom slider captcha `GnSliderVerify` fully reversed (not supported by any solver service)
|
||||||
|
- One domain = unlimited mailboxes via Cloudflare Email Routing catch-all
|
||||||
|
- Corporate mail on your domain via Zoho Forever Free
|
||||||
|
|
||||||
|
## Files
|
||||||
|
|
||||||
|
| File | Purpose |
|
||||||
|
|---|---|
|
||||||
|
| `gname_reg.py` | Autoreg: Playwright headless Chromium, solves the embedded + popup sliders, reads the email code via IMAP, logs into the dashboard. ~90s/account |
|
||||||
|
| `domain_claim.py` | Claims a free .eu.cc with a voucher, appends result to `data/eucc_domains.jsonl` |
|
||||||
|
| `mfa_bind.py` | Binds TOTP MFA on the account (keeps the farm accounts recoverable) |
|
||||||
|
| `gsv_deob_v2.py`, `gsv_deob2.py` | Deobfuscators for the site's slider JS (7574 transitive aliases removed) |
|
||||||
|
| `gsv_deob2.js` | The readable deobfuscated slider code |
|
||||||
|
| `gsv_keynames.json`, `gsv_strings.json` | String/key maps used by the deobfuscators |
|
||||||
|
|
||||||
|
## Environment (never hardcode credentials)
|
||||||
|
|
||||||
|
```
|
||||||
|
GM_EMAIL=yourbox@gmail.com # Gmail that receives dot-variant mail
|
||||||
|
GM_APPPW=******** # Gmail app password (IMAP)
|
||||||
|
GNAME_PW_PREFIX=Any # prefix for generated account passwords
|
||||||
|
TONLINE_POOL=data/tonline_pool.txt # optional: email:pass pool (used when no arg given)
|
||||||
|
GNAME_HOME=./data # state dir (cookies, accounts, domains jsonl)
|
||||||
|
```
|
||||||
|
|
||||||
|
Run:
|
||||||
|
|
||||||
|
```
|
||||||
|
pip install playwright && playwright install chromium
|
||||||
|
python gname_reg.py your.name@gmail.com # or omit arg to pull from TONLINE_POOL
|
||||||
|
python domain_claim.py
|
||||||
|
python mfa_bind.py
|
||||||
|
```
|
||||||
|
|
||||||
|
## How the slider bypass works
|
||||||
|
|
||||||
|
1. Site draws a 400px track but the client clamps the required distance to `width - barWidth` from a **config value of 360px**. Undershooting by even 2px triggers a silent reset with zero POST requests (that's why naive solvers "see nothing").
|
||||||
|
2. Payload `details` is AES-CBC encrypted: `{m: trajectory points (hex), st, et, f: GnClientJS fingerprint, d, t, t2}` → response token is 40 hex chars, valid 300s.
|
||||||
|
3. Server gates: duration 10ms–30s, 3–1000 points, must "reach" the clamped distance.
|
||||||
|
4. Solution: drag with **+40px overshoot** and 4 saturate wiggles before mouseup. Both sliders: embedded (`lx=register`, field `re_yzm`) and popup (`lx=reg`, `#pop-txyz`) before `send_email`.
|
||||||
|
|
||||||
|
## Full setup: domain → Cloudflare → mail
|
||||||
|
|
||||||
|
### 1. Get the domain
|
||||||
|
Register (autoreg above) → dashboard → claim a free .eu.cc with a voucher (`domain_claim.py`). Registry limits: no 2–3 letter names, no brand terms; everything else passes. 3 accounts from one Gmail (dot-variants don't collide) = **9 free domains**.
|
||||||
|
|
||||||
|
### 2. Cloudflare zone + DNS
|
||||||
|
- `eu.cc` is on the **Public Suffix List** (line 16098), so Cloudflare accepts `yourname.eu.cc` as a zone on the Free plan.
|
||||||
|
- Cloudflare → Add Site → your domain → Free plan → copy the two assigned NS.
|
||||||
|
- gname → Domain Management → **Modify DNS** → replace NS with Cloudflare's (same via their API `/api/domain/dns`).
|
||||||
|
- Propagation: minutes to a few hours. Cloudflare now serves your DNS (A/AAAA/MX/TXT).
|
||||||
|
|
||||||
|
### 3. Catch-all mail (OTP engine)
|
||||||
|
- Cloudflare → **Email Routing** → Enable (free). CF auto-creates the MX + SPF TXT records.
|
||||||
|
- Add your Gmail as destination address, confirm it.
|
||||||
|
- Turn on **Catch-all address** → every mailbox `*@yourdomain.eu.cc` now lands in your Gmail.
|
||||||
|
- Read codes over Gmail IMAP with an app password — that's what `gname_reg.py`'s `imap_code()` pattern does. Unlimited unique emails, no temp-mail services, no plus-alias canonicalization problems.
|
||||||
|
|
||||||
|
### 4. Corporate mail on the domain (real mailboxes)
|
||||||
|
- **Zoho Mail Forever Free**: 5 users, 5GB each, single custom domain, web + mobile apps. Free, but **IMAP/POP/ActiveSync are NOT included** on the free tier (web/app access only).
|
||||||
|
- Setup: Zoho Mail → add domain → verify with a TXT record in Cloudflare DNS → point MX to Zoho's records (replace CF Email Routing MX for those users, or keep catch-all on a subdomain) → add SPF/DKIM TXT in Cloudflare.
|
||||||
|
- Result: `you@yourdomain.eu.cc` corporate mailbox for forms, support, banking-style signups; catch-all on the same domain feeds the OTP automation.
|
||||||
|
|
||||||
|
### Combined topology (what we run)
|
||||||
|
```
|
||||||
|
yourname.eu.cc (gname, $0, renewed $0)
|
||||||
|
└── NS → Cloudflare (free zone, PSL-backed)
|
||||||
|
├── Email Routing catch-all → Gmail → IMAP → autoreg OTP
|
||||||
|
├── A/AAAA records → any host/VPS
|
||||||
|
└── MX → Zoho Forever Free (5 corporate mailboxes, web/app)
|
||||||
|
```
|
||||||
|
|
||||||
|
## Disclaimer
|
||||||
|
|
||||||
|
For security research and automation of your own accounts/infrastructure. Obey each service's ToS and local law.
|
||||||
+241
@@ -0,0 +1,241 @@
|
|||||||
|
# Gname fill inline contact template -> agree -> Pay Now -> order (stage 11)
|
||||||
|
import sys, os, json, time, random, re
|
||||||
|
from playwright.sync_api import sync_playwright
|
||||||
|
|
||||||
|
BASE = os.environ.get("GNAME_HOME", os.path.join(os.path.dirname(os.path.abspath(__file__)), "data"))
|
||||||
|
COOKIES_F = os.path.join(BASE, "gname_cookies.json")
|
||||||
|
BANK_F = os.path.join(BASE, "eucc_domains.jsonl")
|
||||||
|
MODE = sys.argv[1] if len(sys.argv) > 1 else "fill" # fill = stop before PayNow; pay = full
|
||||||
|
|
||||||
|
C = {"first": "Sergiy", "last": "Melnyk", "country": "Ukraine", "prov": "Kyiv", "city": "Kyiv",
|
||||||
|
"addr": "Khreshchatyk Street 22, apt 14", "areacode": "380", "phone": "992936096", "zip": "01001"}
|
||||||
|
|
||||||
|
with sync_playwright() as pw:
|
||||||
|
try:
|
||||||
|
browser = pw.chromium.launch(headless=True, args=["--disable-blink-features=AutomationControlled", "--no-sandbox"])
|
||||||
|
except Exception:
|
||||||
|
cand = [d for d in os.listdir(r"C:/Users/User/AppData/Local/ms-playwright") if d.startswith("chromium-1")]
|
||||||
|
exe = os.path.join(r"C:/Users/User/AppData/Local/ms-playwright", sorted(cand)[-1], "chrome-win", "chrome.exe")
|
||||||
|
browser = pw.chromium.launch(headless=True, executable_path=exe, args=["--disable-blink-features=AutomationControlled"])
|
||||||
|
ctx = browser.new_context(viewport={"width": 1366, "height": 900}, locale="en-US", timezone_id="Europe/Kiev",
|
||||||
|
user_agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/154.0.0.0 Safari/537.36")
|
||||||
|
ctx.add_cookies(json.load(open(COOKIES_F)))
|
||||||
|
page = ctx.new_page()
|
||||||
|
netlog = []
|
||||||
|
def on_resp(r):
|
||||||
|
u = r.url
|
||||||
|
if "gname.com/request/" in u and not any(k in u for k in ("chaym", "login_status", "get_xygx", "get_cps", "get_yhq")):
|
||||||
|
try:
|
||||||
|
b = r.text()[:900]
|
||||||
|
netlog.append({"url": u, "status": r.status, "body": b})
|
||||||
|
print("NET", r.status, u.split("gname.com")[-1][:60], b[:300].replace("\n", " "), flush=True)
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
page.on("response", on_resp)
|
||||||
|
|
||||||
|
page.goto("https://www.gname.com/user_gwc", wait_until="domcontentloaded", timeout=60000)
|
||||||
|
time.sleep(4)
|
||||||
|
# select all
|
||||||
|
page.evaluate("""() => {
|
||||||
|
const els = [...document.querySelectorAll('*')].filter(e=>e.offsetParent!==null && [...e.childNodes].some(n=>n.nodeType===3 && /select all/i.test(n.textContent)));
|
||||||
|
const host = els[els.length-1];
|
||||||
|
const scope = host.closest('div,li,tr') || host.parentElement;
|
||||||
|
const r = host.getBoundingClientRect();
|
||||||
|
const icons = [...scope.querySelectorAll('input,i,span,em,label')].filter(e=>{const b=e.getBoundingClientRect(); return b.width>0 && b.right <= r.left+2;});
|
||||||
|
const t = icons.length ? icons[icons.length-1].getBoundingClientRect() : {x:r.left-28,y:r.y,width:28,height:r.height};
|
||||||
|
window.__selbox = {x:t.x+t.width/2, y:t.y+t.height/2};
|
||||||
|
}""")
|
||||||
|
sb = page.evaluate("() => window.__selbox")
|
||||||
|
page.mouse.click(sb["x"], sb["y"])
|
||||||
|
time.sleep(1.5)
|
||||||
|
print("COUNTER:", page.evaluate("() => {const m=document.body.innerText.match(/(\\d+) in total, (\\d+) selected/); return m?m[0]:'?';}"), flush=True)
|
||||||
|
page.evaluate("""() => {
|
||||||
|
const els=[...document.querySelectorAll('a,button,input,div,span')].filter(e=>e.offsetParent!==null);
|
||||||
|
const cand=els.filter(e=>/^submit$/i.test(((e.innerText||e.value||'')).trim()));
|
||||||
|
cand[cand.length-1].click();
|
||||||
|
}""")
|
||||||
|
try:
|
||||||
|
page.wait_for_url("**/user_gwc/pay*", timeout=25000)
|
||||||
|
page.wait_for_load_state("domcontentloaded", timeout=20000)
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
time.sleep(4)
|
||||||
|
print("URL PAY:", page.url, flush=True)
|
||||||
|
|
||||||
|
# agreement checkbox FIRST (coordinate click after scroll into view)
|
||||||
|
page.evaluate("""() => {
|
||||||
|
const els = [...document.querySelectorAll('*')].filter(e=>e.offsetParent!==null && [...e.childNodes].some(n=>n.nodeType===3 && /I have read and agree/i.test(n.textContent)));
|
||||||
|
const host = els[els.length-1];
|
||||||
|
host.scrollIntoView({block:'center'});
|
||||||
|
const r = host.getBoundingClientRect();
|
||||||
|
const scope = host.closest('div,li,tr') || host.parentElement;
|
||||||
|
const icons = [...scope.querySelectorAll('input,i,span,em,label')].filter(e=>{const b=e.getBoundingClientRect(); return b.width>0 && b.right <= r.left+2;});
|
||||||
|
const t = icons.length ? icons[icons.length-1].getBoundingClientRect() : {x:r.left-28,y:r.y,width:28,height:r.height};
|
||||||
|
window.__agbox = {x:t.x+t.width/2, y:t.y+t.height/2};
|
||||||
|
}""")
|
||||||
|
time.sleep(1)
|
||||||
|
ab = page.evaluate("() => window.__agbox")
|
||||||
|
page.mouse.click(ab["x"], ab["y"])
|
||||||
|
time.sleep(1)
|
||||||
|
agchk = page.evaluate("""() => [...document.querySelectorAll('input[type=checkbox]')].filter(c=>c.checked).map(c=>c.name||'?')""")
|
||||||
|
print("AGREED:", json.dumps(agchk), flush=True)
|
||||||
|
|
||||||
|
# click Pay Now — template form only renders after it (with agreement checked)
|
||||||
|
page.evaluate("""() => {
|
||||||
|
const els=[...document.querySelectorAll('a,button,div,span,input')].filter(e=>e.offsetParent!==null);
|
||||||
|
const cand=els.filter(e=>/^pay now$/i.test(((e.innerText||e.value||'')).trim()));
|
||||||
|
if (cand.length) cand[cand.length-1].click();
|
||||||
|
}""")
|
||||||
|
try:
|
||||||
|
page.wait_for_selector("input[name=xing]", timeout=15000)
|
||||||
|
print("FORM VISIBLE", flush=True)
|
||||||
|
except Exception:
|
||||||
|
print("FORM NOT APPEARED", flush=True)
|
||||||
|
toast = page.evaluate("""() => {
|
||||||
|
const ts=[...document.querySelectorAll('[class*=toast],[class*=tips],[class*=msg],.layui-layer-content')].filter(e=>e.offsetParent!==null).map(e=>(e.innerText||'').trim().slice(0,120));
|
||||||
|
return ts.filter(t=>t).slice(0,5);
|
||||||
|
}""")
|
||||||
|
print("TOASTS:", json.dumps(toast, ensure_ascii=False), flush=True)
|
||||||
|
time.sleep(1.5)
|
||||||
|
|
||||||
|
def fill_field(sel, val, click_dropdown_kw=None):
|
||||||
|
try:
|
||||||
|
el = page.query_selector(sel)
|
||||||
|
if not el:
|
||||||
|
print("MISS:", sel, flush=True)
|
||||||
|
return False
|
||||||
|
el.scroll_into_view_if_needed()
|
||||||
|
el.click()
|
||||||
|
el.fill(val)
|
||||||
|
time.sleep(0.7)
|
||||||
|
if click_dropdown_kw:
|
||||||
|
# click suggestion containing kw
|
||||||
|
r = page.evaluate("""(kw) => {
|
||||||
|
const items=[...document.querySelectorAll('li,div[class*=item],div[class*=option],dd')].filter(e=>e.offsetParent!==null && (e.innerText||'').trim().toLowerCase().includes(kw.toLowerCase()) && (e.innerText||'').trim().length<60);
|
||||||
|
if(!items.length) return 'noitems';
|
||||||
|
items[items.length-1].click();
|
||||||
|
return 'clicked:'+items[items.length-1].innerText.trim().slice(0,40);
|
||||||
|
}""", click_dropdown_kw)
|
||||||
|
print("DROPDOWN %s: %s" % (sel, r), flush=True)
|
||||||
|
time.sleep(1)
|
||||||
|
return True
|
||||||
|
except Exception as e:
|
||||||
|
print("FILL ERR %s: %s" % (sel, str(e)[:70]), flush=True)
|
||||||
|
return False
|
||||||
|
|
||||||
|
fill_field("input[name=xing]", C["first"])
|
||||||
|
fill_field("input[name=ming]", C["last"])
|
||||||
|
fill_field("input[placeholder='Country/Region']", C["country"], click_dropdown_kw="Ukraine")
|
||||||
|
fill_field("input[name=sheng]", C["prov"], click_dropdown_kw="Kyiv")
|
||||||
|
fill_field("input[name=shi]", C["city"], click_dropdown_kw="Kyiv")
|
||||||
|
fill_field("input[name=gn_bczl_dzxx]", C["addr"])
|
||||||
|
fill_field("input[placeholder='Area Code']", C["areacode"], click_dropdown_kw="380")
|
||||||
|
fill_field("input[name=gn_wszl_phone]", C["phone"])
|
||||||
|
fill_field("input[name=yzbm]", C["zip"])
|
||||||
|
# dump filled state
|
||||||
|
vals = page.evaluate("""() => [...document.querySelectorAll('input[type=text]')].filter(i=>i.offsetParent!==null).map(i=>({n:i.name,ph:i.placeholder,v:i.value}))""")
|
||||||
|
print("VALS:", json.dumps(vals, ensure_ascii=False), flush=True)
|
||||||
|
page.screenshot(path=os.path.join(BASE, "eucc11_filled.png"), full_page=True)
|
||||||
|
|
||||||
|
# agreement already checked before Pay Now; just verify
|
||||||
|
agchk = page.evaluate("""() => [...document.querySelectorAll('input[type=checkbox]')].filter(c=>c.checked).map(c=>c.name||'?')""")
|
||||||
|
print("CHECKED:", json.dumps(agchk), flush=True)
|
||||||
|
allbtns = page.evaluate("""() => [...document.querySelectorAll('a,button,div,span,input')].filter(e=>e.offsetParent!==null).map(e=>((e.innerText||e.value||'')).trim()).filter(t=>t && t.length<30 && /save|confirm|submit|ok|determine|pay|buy|order|next/i.test(t))""")
|
||||||
|
print("BTNS NEAR:", json.dumps(sorted(set(allbtns))), flush=True)
|
||||||
|
if MODE == "pay":
|
||||||
|
# 1) form-level submit (Save/Confirm/Submit/Determine/OK), NOT Pay Now
|
||||||
|
r1 = page.evaluate("""() => {
|
||||||
|
const els=[...document.querySelectorAll('a,button,div,span,input')].filter(e=>e.offsetParent!==null);
|
||||||
|
const cand=els.filter(e=>/^(save|confirm|submit|determine|ok)$/i.test(((e.innerText||e.value||'')).trim()));
|
||||||
|
if(!cand.length) return 'none';
|
||||||
|
cand[cand.length-1].click();
|
||||||
|
return 'clicked:'+((cand[cand.length-1].innerText||cand[cand.length-1].value)||'').trim();
|
||||||
|
}""")
|
||||||
|
print("FORM SUBMIT:", r1, flush=True)
|
||||||
|
time.sleep(4)
|
||||||
|
# modal chain after Submit: Confirm -> Payment Confirm (layui popups). Click .layui-layer-btn0 (Confirm) each time.
|
||||||
|
for mtry in range(4):
|
||||||
|
vis = page.locator(".layui-layer:visible")
|
||||||
|
n = vis.count()
|
||||||
|
if n == 0:
|
||||||
|
break
|
||||||
|
txts = []
|
||||||
|
for i in range(n):
|
||||||
|
try:
|
||||||
|
txts.append(vis.nth(i).inner_text()[:150].replace("\n", " | "))
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
print("LAYUI MODALS(%d): %s" % (n, " ;; ".join(txts)), flush=True)
|
||||||
|
clicked = False
|
||||||
|
try:
|
||||||
|
btn = page.locator(".layui-layer-btn0:visible").last
|
||||||
|
if btn.count():
|
||||||
|
btn.click(timeout=4000)
|
||||||
|
clicked = True
|
||||||
|
except Exception as e:
|
||||||
|
print("BTN0 ERR:", str(e)[:60], flush=True)
|
||||||
|
print("LAYUI CONFIRM CLICK:", clicked, flush=True)
|
||||||
|
time.sleep(4)
|
||||||
|
# 2) slider if demanded
|
||||||
|
try:
|
||||||
|
nb = page.evaluate("() => [...document.querySelectorAll('.gn-slide-bar')].filter(b=>b.offsetParent!==null).length")
|
||||||
|
except Exception:
|
||||||
|
nb = 0
|
||||||
|
print("SLIDER BARS:", nb, flush=True)
|
||||||
|
# 3) Pay Now again if still on pay page
|
||||||
|
try:
|
||||||
|
still = "user_gwc/pay" in page.url and page.query_selector("input[name=xing]") is not None
|
||||||
|
except Exception:
|
||||||
|
still = False
|
||||||
|
print("STILL ON FORM:", still, flush=True)
|
||||||
|
r2 = page.evaluate("""() => {
|
||||||
|
const els=[...document.querySelectorAll('a,button,div,span,input')].filter(e=>e.offsetParent!==null);
|
||||||
|
const cand=els.filter(e=>/^pay now$/i.test(((e.innerText||e.value||'')).trim()));
|
||||||
|
if(!cand.length) return 'none';
|
||||||
|
cand[cand.length-1].click(); return 'clicked';
|
||||||
|
}""")
|
||||||
|
print("PAYNOW2:", r2, flush=True)
|
||||||
|
time.sleep(3)
|
||||||
|
# handle Warm Tips / confirm modal (real layui popups only)
|
||||||
|
for mtry in range(3):
|
||||||
|
vis = page.locator(".layui-layer:visible")
|
||||||
|
n = vis.count()
|
||||||
|
if n == 0:
|
||||||
|
break
|
||||||
|
txts = []
|
||||||
|
for i in range(n):
|
||||||
|
try:
|
||||||
|
txts.append(vis.nth(i).inner_text()[:200].replace("\n", " | "))
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
print("MODAL%d:" % mtry, " ;; ".join(txts), flush=True)
|
||||||
|
try:
|
||||||
|
btn = page.locator(".layui-layer-btn0:visible").last
|
||||||
|
if btn.count():
|
||||||
|
btn.click(timeout=4000)
|
||||||
|
print("MODAL CLICK: btn0", flush=True)
|
||||||
|
except Exception as e:
|
||||||
|
print("MODAL CLICK ERR:", str(e)[:60], flush=True)
|
||||||
|
time.sleep(4)
|
||||||
|
for _ in range(8):
|
||||||
|
time.sleep(3)
|
||||||
|
try:
|
||||||
|
nb = page.evaluate("() => [...document.querySelectorAll('.gn-slide-bar')].filter(b=>b.offsetParent!==null).length")
|
||||||
|
u = page.url
|
||||||
|
except Exception:
|
||||||
|
nb, u = 0, "?"
|
||||||
|
if nb:
|
||||||
|
print("SLIDER AT PAY2", flush=True)
|
||||||
|
break
|
||||||
|
if "user_gwc" not in u:
|
||||||
|
break
|
||||||
|
print("URL FINAL:", page.url, flush=True)
|
||||||
|
try:
|
||||||
|
bf = page.locator("body").inner_text()
|
||||||
|
print("FINAL BODY:", bf[:1200].replace("\n", " | "), flush=True)
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
page.screenshot(path=os.path.join(BASE, "eucc11_result.png"), full_page=True)
|
||||||
|
json.dump(netlog[-80:], open(os.path.join(BASE, "eucc_netlog11.json"), "w"), indent=1)
|
||||||
|
json.dump(ctx.cookies(), open(COOKIES_F, "w"))
|
||||||
|
browser.close()
|
||||||
+343
@@ -0,0 +1,343 @@
|
|||||||
|
# Gname.com autoreg: playwright chromium + trusted slider drag + IMAP code
|
||||||
|
import sys, os, re, json, time, random, string, imaplib, email as eml
|
||||||
|
from playwright.sync_api import sync_playwright
|
||||||
|
|
||||||
|
BASE = os.environ.get("GNAME_HOME", os.path.join(os.path.dirname(os.path.abspath(__file__)), "data"))
|
||||||
|
os.makedirs(BASE, exist_ok=True)
|
||||||
|
# credentials come from environment only (never hardcode)
|
||||||
|
GM = os.environ["GM_EMAIL"] # Gmail address that receives dot-variant mail
|
||||||
|
GP = os.environ["GM_APPPW"] # Gmail app password for IMAP
|
||||||
|
|
||||||
|
def dot_variant(local="yourname", domain="gmail.com"):
|
||||||
|
# random 1-2 dots inserted -> same Gmail inbox, unique for site
|
||||||
|
idxs = sorted(random.sample(range(1, len(local)), random.choice([1, 2])))
|
||||||
|
out = ""
|
||||||
|
for i, ch in enumerate(local):
|
||||||
|
if i in idxs:
|
||||||
|
out += "."
|
||||||
|
out += ch
|
||||||
|
return out + "@" + domain
|
||||||
|
|
||||||
|
def canon(addr):
|
||||||
|
addr = addr.lower().strip().strip("<>")
|
||||||
|
lp, _, dm = addr.partition("@")
|
||||||
|
lp = lp.split("+")[0].replace(".", "")
|
||||||
|
return lp + "@" + dm
|
||||||
|
|
||||||
|
POOL_F = os.environ.get("TONLINE_POOL", os.path.join(BASE, "tonline_pool.txt"))
|
||||||
|
USED_F = os.path.join(BASE, "tonline_used.txt")
|
||||||
|
def next_tonline():
|
||||||
|
used = set()
|
||||||
|
if os.path.exists(USED_F):
|
||||||
|
used = set(x.strip().lower() for x in open(USED_F) if x.strip())
|
||||||
|
for ln in open(POOL_F, encoding="utf-8", errors="ignore"):
|
||||||
|
ln = ln.strip()
|
||||||
|
if not ln or ln.startswith("#") or ":" not in ln:
|
||||||
|
continue
|
||||||
|
e, p = ln.split(":", 1)
|
||||||
|
e = e.strip().lower()
|
||||||
|
# canonical only: dash-aliases (-NNNN@) dead for delivery
|
||||||
|
if "-" in e.split("@")[0] or e in used:
|
||||||
|
continue
|
||||||
|
with open(USED_F, "a") as f:
|
||||||
|
f.write(e + "\n")
|
||||||
|
return e, p.strip()
|
||||||
|
return None, None
|
||||||
|
|
||||||
|
EMAIL = sys.argv[1] if len(sys.argv) > 1 else None
|
||||||
|
TONLINE_PW = None
|
||||||
|
if EMAIL is None:
|
||||||
|
EMAIL, TONLINE_PW = next_tonline()
|
||||||
|
if not EMAIL:
|
||||||
|
print("POOL EXHAUSTED", flush=True)
|
||||||
|
sys.exit(3)
|
||||||
|
IS_TONLINE = EMAIL.endswith("t-online.de")
|
||||||
|
PASSWORD = os.environ.get("GNAME_PW_PREFIX", "Gn") + "".join(random.choices(string.ascii_letters + string.digits, k=12)) + "a1!"
|
||||||
|
STATE = {"email": EMAIL, "password": PASSWORD, "stage": "start"}
|
||||||
|
def save():
|
||||||
|
json.dump(STATE, open(os.path.join(BASE, "gname_state.json"), "w"), indent=1)
|
||||||
|
save()
|
||||||
|
|
||||||
|
def log(*a):
|
||||||
|
print(*a, flush=True)
|
||||||
|
|
||||||
|
def imap_code(wait=240):
|
||||||
|
t0 = time.time()
|
||||||
|
while time.time() - t0 < wait:
|
||||||
|
try:
|
||||||
|
if IS_TONLINE:
|
||||||
|
m = imaplib.IMAP4_SSL("secureimap.t-online.de", 993)
|
||||||
|
m.login(EMAIL, TONLINE_PW)
|
||||||
|
typ, cnt = m.select("INBOX")
|
||||||
|
n = int(cnt[0]) if cnt and cnt[0] else 0
|
||||||
|
ids = [str(i) for i in range(max(1, n - 29), n + 1)] if n else []
|
||||||
|
else:
|
||||||
|
m = imaplib.IMAP4_SSL("imap.gmail.com")
|
||||||
|
m.login(GM, GP)
|
||||||
|
m.select("INBOX")
|
||||||
|
since = time.strftime("%d-%b-%Y", time.localtime(time.time() - 86400))
|
||||||
|
typ, data = m.search(None, '(SINCE %s)' % since)
|
||||||
|
ids = data[0].split()[-40:]
|
||||||
|
for i in reversed(ids):
|
||||||
|
typ, md = m.fetch(i, "(RFC822)")
|
||||||
|
raw = md[0][1]
|
||||||
|
msg = eml.message_from_bytes(raw)
|
||||||
|
to = (msg.get("To", "") + " " + msg.get("X-Gmail-Original-To", "") + " " + msg.get("Delivered-To", "")).lower()
|
||||||
|
frm = (msg.get("From", "") or "").lower()
|
||||||
|
addrs = re.findall(r"[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+", to)
|
||||||
|
if IS_TONLINE:
|
||||||
|
hit = any(a.lower() == EMAIL.lower() for a in addrs) or not addrs
|
||||||
|
else:
|
||||||
|
hit = any(canon(a) == canon(EMAIL) for a in addrs)
|
||||||
|
if ("gname" in frm or "gname" in (msg.get("Subject", "") or "").lower()) and hit:
|
||||||
|
body = ""
|
||||||
|
if msg.is_multipart():
|
||||||
|
for p in msg.walk():
|
||||||
|
if p.get_content_type() == "text/plain":
|
||||||
|
body = p.get_payload(decode=True).decode("utf-8", "ignore")
|
||||||
|
break
|
||||||
|
else:
|
||||||
|
body = msg.get_payload(decode=True).decode("utf-8", "ignore")
|
||||||
|
body_html = ""
|
||||||
|
if msg.is_multipart():
|
||||||
|
for p in msg.walk():
|
||||||
|
if p.get_content_type() == "text/html":
|
||||||
|
body_html = p.get_payload(decode=True).decode("utf-8", "ignore")
|
||||||
|
mm = re.search(r"\b(\d{4,8})\b", body) or re.search(r"(?:code|验证码)[^\d]{0,40}(\d{4,8})", body_html, re.I) or re.search(r"\b(\d{6})\b", body_html)
|
||||||
|
m.logout()
|
||||||
|
if mm:
|
||||||
|
return mm.group(1)
|
||||||
|
m.logout()
|
||||||
|
except Exception as e:
|
||||||
|
log("imap err:", e)
|
||||||
|
time.sleep(6)
|
||||||
|
return None
|
||||||
|
|
||||||
|
def human_drag(page, sel_bar=".gn-slide-bar", sel_rail=".gn-slide-rail"):
|
||||||
|
rect = page.evaluate("""(sel) => {
|
||||||
|
const bars = [...document.querySelectorAll(sel[0])].filter(b => b.offsetParent !== null && b.getBoundingClientRect().width > 10);
|
||||||
|
const rails = [...document.querySelectorAll(sel[1])].filter(r => r.offsetParent !== null);
|
||||||
|
if (!bars.length) return null;
|
||||||
|
const b = bars[bars.length - 1].getBoundingClientRect();
|
||||||
|
const r = (rails[rails.length - 1] || bars[bars.length - 1]).getBoundingClientRect();
|
||||||
|
return {bx: b.x, by: b.y, bw: b.width, bh: b.height, rw: r.width};
|
||||||
|
}""", [sel_bar, sel_rail])
|
||||||
|
if not rect:
|
||||||
|
return "no-visible-bar"
|
||||||
|
dist = rect["rw"] - rect["bw"] + 40 # OVERSHOOT: widget clamps delta at config width; must saturate
|
||||||
|
x0 = rect["bx"] + rect["bw"] / 2
|
||||||
|
y0 = rect["by"] + rect["bh"] / 2
|
||||||
|
page.mouse.move(x0 + random.uniform(-3, 3), y0 + random.uniform(-4, 4))
|
||||||
|
time.sleep(random.uniform(0.08, 0.2))
|
||||||
|
page.mouse.move(x0, y0)
|
||||||
|
time.sleep(random.uniform(0.05, 0.12))
|
||||||
|
page.mouse.down()
|
||||||
|
time.sleep(random.uniform(0.1, 0.25))
|
||||||
|
steps = random.randint(24, 32)
|
||||||
|
for i in range(1, steps + 1):
|
||||||
|
p = i / steps
|
||||||
|
ease = 1 - (1 - p) ** 3
|
||||||
|
x = x0 + dist * ease + random.uniform(-1.2, 1.2)
|
||||||
|
y = y0 + random.uniform(-2.5, 2.5)
|
||||||
|
page.mouse.move(x, y)
|
||||||
|
time.sleep(random.uniform(0.014, 0.038))
|
||||||
|
for _ in range(4): # saturate past the end so clamped delta reaches max
|
||||||
|
page.mouse.move(x0 + dist + random.uniform(-2, 4), y0 + random.uniform(-2, 2))
|
||||||
|
time.sleep(0.05)
|
||||||
|
page.mouse.move(x0 + dist, y0)
|
||||||
|
time.sleep(random.uniform(0.08, 0.18))
|
||||||
|
page.mouse.up()
|
||||||
|
st = ""
|
||||||
|
for _ in range(10):
|
||||||
|
time.sleep(0.6)
|
||||||
|
st = page.evaluate("""() => {
|
||||||
|
try {
|
||||||
|
const a = window.GN_SLIDER_VERIFY ? window.GN_SLIDER_VERIFY.status : '';
|
||||||
|
const b = window.GN_SLIDER_VERIFY_LOGIN ? window.GN_SLIDER_VERIFY_LOGIN.status : '';
|
||||||
|
return a + '|' + b;
|
||||||
|
} catch(e){ return 'err'; }
|
||||||
|
}""")
|
||||||
|
if "success" in st or "error" in st or "fail" in st:
|
||||||
|
break
|
||||||
|
bx_after = page.evaluate("""(sel) => { const bars=[...document.querySelectorAll(sel)].filter(b=>b.offsetParent!==null); return bars.length? Math.round(bars[bars.length-1].getBoundingClientRect().x) : -1; }""", sel_bar)
|
||||||
|
return "dragged %.0fpx bar_after_x=%s widget_status=%s" % (dist, bx_after, st)
|
||||||
|
|
||||||
|
with sync_playwright() as pw:
|
||||||
|
try:
|
||||||
|
browser = pw.chromium.launch(headless=True, args=["--disable-blink-features=AutomationControlled", "--no-sandbox"])
|
||||||
|
except Exception as e:
|
||||||
|
log("launch err, retry explicit path:", str(e)[:200])
|
||||||
|
cand = [d for d in os.listdir(r"C:/Users/User/AppData/Local/ms-playwright") if d.startswith("chromium-1")]
|
||||||
|
exe = os.path.join(r"C:/Users/User/AppData/Local/ms-playwright", sorted(cand)[-1], "chrome-win", "chrome.exe")
|
||||||
|
browser = pw.chromium.launch(headless=True, executable_path=exe, args=["--disable-blink-features=AutomationControlled"])
|
||||||
|
ctx = browser.new_context(
|
||||||
|
viewport={"width": 1366, "height": 900},
|
||||||
|
locale="en-US",
|
||||||
|
timezone_id="Europe/Kiev",
|
||||||
|
user_agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/154.0.0.0 Safari/537.36",
|
||||||
|
)
|
||||||
|
page = ctx.new_page()
|
||||||
|
page.add_init_script("""
|
||||||
|
Object.defineProperty(navigator,'webdriver',{get:()=>undefined});
|
||||||
|
window.__EVTLOG = [];
|
||||||
|
(function(){
|
||||||
|
const oel = EventTarget.prototype.addEventListener;
|
||||||
|
EventTarget.prototype.addEventListener = function(t, f, o) {
|
||||||
|
try {
|
||||||
|
let d = 'unknown';
|
||||||
|
if (this === window) d = 'window';
|
||||||
|
else if (this === document) d = 'document';
|
||||||
|
else if (this.nodeType === 1) d = this.tagName + '.' + String(this.className && this.className.baseVal !== undefined ? this.className.baseVal : this.className).slice(0, 60);
|
||||||
|
if (['mousedown','mousemove','mouseup','touchstart','touchmove','touchend','pointerdown','pointermove','pointerup','click'].indexOf(t) >= 0)
|
||||||
|
window.__EVTLOG.push(d + ' :: ' + t);
|
||||||
|
} catch (e) {}
|
||||||
|
return oel.call(this, t, f, o);
|
||||||
|
};
|
||||||
|
})();
|
||||||
|
""")
|
||||||
|
reqlog = []
|
||||||
|
def on_resp(r):
|
||||||
|
if "/request/" in r.url:
|
||||||
|
try:
|
||||||
|
reqlog.append({"url": r.url, "status": r.status, "body": r.text()[:400]})
|
||||||
|
log("NET", r.status, r.url.split("gname.com")[-1][:60], r.text()[:150].replace("\n", " "))
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
page.on("response", on_resp)
|
||||||
|
page.goto("https://www.gname.com/register", wait_until="domcontentloaded", timeout=60000)
|
||||||
|
time.sleep(3)
|
||||||
|
log("title:", page.title())
|
||||||
|
STATE["stage"] = "page-loaded"
|
||||||
|
save()
|
||||||
|
|
||||||
|
# fill form
|
||||||
|
page.fill("input[name=re_yx]", EMAIL)
|
||||||
|
time.sleep(random.uniform(0.3, 0.7))
|
||||||
|
page.fill("input[name=re_mm]", PASSWORD)
|
||||||
|
time.sleep(random.uniform(0.3, 0.7))
|
||||||
|
page.fill("input[name=re_mm2]", PASSWORD)
|
||||||
|
ck = page.query_selector("input[name=re_ty]")
|
||||||
|
if ck and not ck.is_checked():
|
||||||
|
try:
|
||||||
|
ck.click(force=True)
|
||||||
|
except Exception:
|
||||||
|
page.evaluate("document.querySelector('input[name=re_ty]').click()")
|
||||||
|
log("form filled")
|
||||||
|
|
||||||
|
# embedded slider first?
|
||||||
|
rail = page.query_selector(".gn-slide-rail")
|
||||||
|
if rail and rail.is_visible():
|
||||||
|
log("embedded rail visible -> drag")
|
||||||
|
log(human_drag(page))
|
||||||
|
time.sleep(3)
|
||||||
|
yz = page.evaluate("() => (document.querySelector('input[name=re_yzm]')||{}).value || ''")
|
||||||
|
tip = page.evaluate("() => { const t=document.querySelector('.gn-slide-tip'); return t?t.innerText.trim():''; }")
|
||||||
|
log("re_yzm:", yz[:40], "tip:", tip[:60])
|
||||||
|
evt = page.evaluate("() => JSON.stringify([...new Set(window.__EVTLOG)])")
|
||||||
|
log("EVTLOG:", evt[:2200])
|
||||||
|
STATE["slider_embed"] = {"re_yzm": yz[:60], "tip": tip}
|
||||||
|
save()
|
||||||
|
page.screenshot(path=os.path.join(BASE, "step1_embed.png"))
|
||||||
|
|
||||||
|
# click Send Code
|
||||||
|
btn = page.query_selector('.login-yzm-btn[data-lx="reg"]') or page.query_selector(".login-yzm-btn")
|
||||||
|
if btn:
|
||||||
|
btn.click()
|
||||||
|
log("send-code clicked")
|
||||||
|
else:
|
||||||
|
page.evaluate("""() => { const els=[...document.querySelectorAll('div,span')].filter(e=>(e.innerText||'').trim()==='Send Code'); if(els.length) els[els.length-1].click(); }""")
|
||||||
|
log("send-code via text")
|
||||||
|
# popup slider may appear (server demands lx=reg slider for send_email)
|
||||||
|
for attempt in range(4):
|
||||||
|
time.sleep(3)
|
||||||
|
popup = page.evaluate("""() => {
|
||||||
|
const p = document.querySelector('#pop-txyz');
|
||||||
|
let pst = '';
|
||||||
|
try { pst = window.GN_SLIDER_VERIFY ? window.GN_SLIDER_VERIFY.status : ''; } catch(e){}
|
||||||
|
const rails = [...document.querySelectorAll('.gn-slide-rail')].filter(r => r.offsetParent !== null);
|
||||||
|
return {pop: !!(p && p.offsetParent !== null) || !!document.querySelector('#pop-txyz .gn-slide-bar'), pst: pst, n: rails.length};
|
||||||
|
}""")
|
||||||
|
yz = page.evaluate("() => (document.querySelector('input[name=re_yzm]')||{}).value || ''")
|
||||||
|
sent = any(e.get("body", "").find('"code":1') >= 0 and "send_email" in e["url"] for e in reqlog)
|
||||||
|
log("attempt", attempt, popup, "re_yzm:", yz[:20], "send_email ok:", sent)
|
||||||
|
if sent:
|
||||||
|
break
|
||||||
|
if popup.get("pop") and popup.get("pst") != "success":
|
||||||
|
try:
|
||||||
|
log("POPUP DRAG:", human_drag(page, sel_bar="#pop-txyz .gn-slide-bar", sel_rail="#pop-txyz .gn-slide-rail"))
|
||||||
|
time.sleep(4)
|
||||||
|
except Exception as e:
|
||||||
|
log("popup drag err:", e)
|
||||||
|
page.screenshot(path=os.path.join(BASE, "step2_send%d.png" % attempt))
|
||||||
|
STATE["stage"] = "send-code-done"
|
||||||
|
STATE["net"] = reqlog[-8:]
|
||||||
|
save()
|
||||||
|
|
||||||
|
# IMAP code
|
||||||
|
code = imap_code()
|
||||||
|
log("email code:", code)
|
||||||
|
if not code:
|
||||||
|
STATE["stage"] = "no-email-code"
|
||||||
|
save()
|
||||||
|
browser.close()
|
||||||
|
sys.exit(2)
|
||||||
|
filled = False
|
||||||
|
for fn in ("yx_yzm", "re_yzm", "eyzm"):
|
||||||
|
try:
|
||||||
|
el = page.query_selector("input[name=%s]" % fn)
|
||||||
|
if el:
|
||||||
|
el.fill(code)
|
||||||
|
log("code filled into", fn)
|
||||||
|
filled = True
|
||||||
|
break
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
if not filled:
|
||||||
|
log("WARN: no code field found")
|
||||||
|
|
||||||
|
# submit register
|
||||||
|
page.evaluate("""() => {
|
||||||
|
const b = document.querySelector('form.gm-form button.login-btn[type=submit]') ||
|
||||||
|
[...document.querySelectorAll('button,div.gm-btn,div[class*=btn],span')].filter(e => e.offsetParent !== null && /^(Register|Sign ?up|Create)/i.test((e.innerText||'').trim()))[0];
|
||||||
|
if (b) b.click();
|
||||||
|
}""")
|
||||||
|
# wait for navigation to dashboard (auto-login after successful reg)
|
||||||
|
reg_ok = False
|
||||||
|
uid = ""
|
||||||
|
for _ in range(20):
|
||||||
|
time.sleep(2)
|
||||||
|
try:
|
||||||
|
u = page.url
|
||||||
|
if "/register" not in u:
|
||||||
|
reg_ok = True
|
||||||
|
break
|
||||||
|
# sometimes dashboard content loads under same url; check for UID marker
|
||||||
|
uid_t = page.evaluate("() => { const m = document.body.innerText.match(/UID[:\\s]*(\\d{4,9})/); return m ? m[1] : ''; }")
|
||||||
|
if uid_t:
|
||||||
|
reg_ok = True
|
||||||
|
uid = uid_t
|
||||||
|
break
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
if reg_ok and not uid:
|
||||||
|
try:
|
||||||
|
uid = page.evaluate("() => { const m = document.body.innerText.match(/UID[:\\s]*(\\d{4,9})/); return m ? m[1] : ''; }") or ""
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
reg_resp = [e for e in reqlog if "p_reg" in e["url"] or "reg" in e["url"].split("/request/")[-1][:8]]
|
||||||
|
log("REG_OK:", reg_ok, "UID:", uid, "url:", page.url)
|
||||||
|
log("p_reg:", json.dumps([e for e in reqlog if "p_reg" in e["url"]])[:500])
|
||||||
|
STATE["stage"] = "registered" if reg_ok else "reg-submitted"
|
||||||
|
STATE["uid"] = uid
|
||||||
|
STATE["p_reg"] = reg_resp[-2:]
|
||||||
|
STATE["url"] = page.url
|
||||||
|
save()
|
||||||
|
if reg_ok:
|
||||||
|
rec = {"site": "gname.com", "email": EMAIL, "password": PASSWORD, "uid": uid,
|
||||||
|
"ts": time.strftime("%Y-%m-%d %H:%M:%S"), "url": page.url}
|
||||||
|
with open(os.path.join(BASE, "gname_accounts.jsonl"), "a", encoding="utf-8") as f:
|
||||||
|
f.write(json.dumps(rec) + "\n")
|
||||||
|
log("BANK APPENDED", EMAIL)
|
||||||
|
page.screenshot(path=os.path.join(BASE, "step3_result.png"), full_page=False)
|
||||||
|
browser.close()
|
||||||
|
log("DONE", STATE["stage"])
|
||||||
+27
@@ -0,0 +1,27 @@
|
|||||||
|
# Bulk de-obfuscate gsv.min.js using decoded string table
|
||||||
|
import json, re
|
||||||
|
|
||||||
|
t = {int(k): v for k, v in json.load(open('gsv_strings.json', encoding='utf-8')).items()}
|
||||||
|
h = open('gsv.min.js', encoding='utf-8', errors='ignore').read()
|
||||||
|
print('orig size:', len(h))
|
||||||
|
|
||||||
|
aliases = set(re.findall(r'var (_0x[0-9a-f]+)=a0_0x5f56', h))
|
||||||
|
aliases |= set(re.findall(r'(_0x[0-9a-f]+)=a0_0x5f56[;,]', h))
|
||||||
|
aliases.add('a0_0x5f56')
|
||||||
|
print('aliases:', len(aliases))
|
||||||
|
|
||||||
|
pat = re.compile(r'(' + '|'.join(re.escape(a) for a in aliases) + r')\((0x[0-9a-f]+)\)')
|
||||||
|
cnt = 0
|
||||||
|
def rep(m):
|
||||||
|
global cnt
|
||||||
|
idx = int(m.group(2), 16)
|
||||||
|
if idx in t:
|
||||||
|
cnt += 1
|
||||||
|
s = t[idx]
|
||||||
|
# encode as JS string literal safely
|
||||||
|
return json.dumps(s)
|
||||||
|
return m.group(0)
|
||||||
|
h2 = pat.sub(rep, h)
|
||||||
|
print('replaced:', cnt)
|
||||||
|
open('gsv_deob.js', 'w', encoding='utf-8').write(h2)
|
||||||
|
print('deob size:', len(h2))
|
||||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,52 @@
|
|||||||
|
# Pass 2: readable names for string-dict keys in gsv_deob.js
|
||||||
|
import re, json
|
||||||
|
|
||||||
|
h = open('gsv_deob.js', encoding='utf-8').read()
|
||||||
|
print('size:', len(h))
|
||||||
|
|
||||||
|
# entries: 'AbCdE':"literal" or 'AbCdE':'literal'
|
||||||
|
ent = re.compile(r"([\"'])([A-Za-z][A-Za-z0-9]{3,6})\1\s*:\s*([\"'])((?:[^\\\"']|\\.){1,60}?)\3")
|
||||||
|
names = {}
|
||||||
|
used = set()
|
||||||
|
def mangle(v):
|
||||||
|
s = re.sub(r'[^A-Za-z0-9]+', '_', v).strip('_')[:26]
|
||||||
|
if not s:
|
||||||
|
s = 'x'
|
||||||
|
if s[0].isdigit():
|
||||||
|
s = '_' + s
|
||||||
|
base = s
|
||||||
|
n = 2
|
||||||
|
while s in used:
|
||||||
|
s = base + str(n)
|
||||||
|
n += 1
|
||||||
|
used.add(s)
|
||||||
|
return 'S_' + s
|
||||||
|
|
||||||
|
count = 0
|
||||||
|
def rep_ent(m):
|
||||||
|
global count
|
||||||
|
q1, key, q2, val = m.group(1), m.group(2), m.group(3), m.group(4)
|
||||||
|
# only string-literal values (skip function entries which don't match this regex anyway)
|
||||||
|
if re.fullmatch(r'[A-Za-z][A-Za-z0-9]{3,6}', key):
|
||||||
|
nm = mangle(val)
|
||||||
|
names[key] = nm
|
||||||
|
count += 1
|
||||||
|
return f'{q1}{nm}{q1}:{q2}{val}{q2}'
|
||||||
|
return m.group(0)
|
||||||
|
|
||||||
|
h2 = ent.sub(rep_ent, h)
|
||||||
|
print('entries mapped:', count)
|
||||||
|
|
||||||
|
# replace usage sites DICT['KEY'] and DICT.KEY -> DICT.S_name
|
||||||
|
def rep_use(m):
|
||||||
|
key = m.group(2)
|
||||||
|
if key in names:
|
||||||
|
return m.group(1) + names[key] + m.group(3)
|
||||||
|
return m.group(0)
|
||||||
|
h3 = re.sub(r"(\[)(['\"])([A-Za-z][A-Za-z0-9]{3,6})\2(\])", lambda m: m.group(1) + m.group(2) + names.get(m.group(3), m.group(3)) + m.group(2) + m.group(4), h2)
|
||||||
|
n1 = sum(1 for _ in re.finditer(r"S_[A-Za-z0-9_]+", h3))
|
||||||
|
h4 = re.sub(r"\.([A-Za-z][A-Za-z0-9]{3,6})\b", lambda m: '.' + names[m.group(1)] if m.group(1) in names and not m.group(1).startswith('S_') else '.' + m.group(1), h3)
|
||||||
|
print('S_ refs total:', len(re.findall(r"S_", h4)))
|
||||||
|
open('gsv_deob2.js', 'w', encoding='utf-8').write(h4)
|
||||||
|
json.dump(names, open('gsv_keynames.json', 'w'), indent=0)
|
||||||
|
print('done, size:', len(h4))
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
# Pass1 v2: transitive decoder-alias resolution, bulk string replacement
|
||||||
|
import json, re, time
|
||||||
|
|
||||||
|
t = {int(k): v for k, v in json.load(open('gsv_strings.json', encoding='utf-8')).items()}
|
||||||
|
h = open('C:/Users/User/tmp/gsv.min.js', encoding='utf-8', errors='ignore').read()
|
||||||
|
print('orig:', len(h))
|
||||||
|
|
||||||
|
t0 = time.time()
|
||||||
|
aliases = {'a0_0x5f56'}
|
||||||
|
assign_re = re.compile(r'(_0x[0-9a-f]{4,8})\s*=\s*(' + '|'.join(re.escape(a) for a in list(aliases)) + r')(?![A-Za-z0-9_])')
|
||||||
|
for round_i in range(8):
|
||||||
|
before = len(aliases)
|
||||||
|
for m in assign_re.finditer(h):
|
||||||
|
aliases.add(m.group(1))
|
||||||
|
if len(aliases) == before:
|
||||||
|
break
|
||||||
|
assign_re = re.compile(r'(_0x[0-9a-f]{4,8})\s*=\s*(' + '|'.join(re.escape(a) for a in sorted(aliases, key=len, reverse=True)) + r')(?![A-Za-z0-9_])')
|
||||||
|
print('alias rounds done:', round_i, 'aliases:', len(aliases), 'in %.1fs' % (time.time() - t0))
|
||||||
|
|
||||||
|
pat = re.compile(r'\b(' + '|'.join(re.escape(a) for a in sorted(aliases, key=len, reverse=True)) + r')\((0x[0-9a-f]+)\)')
|
||||||
|
cnt = 0
|
||||||
|
def rep(m):
|
||||||
|
global cnt
|
||||||
|
idx = int(m.group(2), 16)
|
||||||
|
if idx in t:
|
||||||
|
cnt += 1
|
||||||
|
return json.dumps(t[idx])
|
||||||
|
return m.group(0)
|
||||||
|
h2 = pat.sub(rep, h)
|
||||||
|
print('replaced:', cnt)
|
||||||
|
open('gsv_deob.js', 'w', encoding='utf-8').write(h2)
|
||||||
|
print('deob:', len(h2), '%.1fs total' % (time.time() - t0))
|
||||||
@@ -0,0 +1,683 @@
|
|||||||
|
{
|
||||||
|
"jvfnl": "S_JLQBu",
|
||||||
|
"TgolD": "S_jTfVp",
|
||||||
|
"SFZxc": "S_nhMaq",
|
||||||
|
"VXfTz": "S_is_not_a_function",
|
||||||
|
"njSiZ": "S_YxCWz",
|
||||||
|
"ovtvg": "S_replace",
|
||||||
|
"brfkZ": "S__2_3_4_0_1",
|
||||||
|
"LdQPX": "S_replaceAll_does_not_allow_",
|
||||||
|
"EKuwd": "S_wPCNI",
|
||||||
|
"YbjfQ": "S_object",
|
||||||
|
"LbGNs": "S_unscopables",
|
||||||
|
"WrKqM": "S_qPznT",
|
||||||
|
"TFkyc": "S_x20is_x20not_x20an_x20obje",
|
||||||
|
"HZXBs": "S_bfVjJ",
|
||||||
|
"dwCMT": "S_species",
|
||||||
|
"NGeiG": "S_length",
|
||||||
|
"MqPdI": "S_Cannot_set_read_only_lengt",
|
||||||
|
"cZZyI": "S_ycUrN",
|
||||||
|
"ukCsb": "S_string",
|
||||||
|
"VQKSZ": "S_SCCUu",
|
||||||
|
"gfsMO": "S_mvrLx",
|
||||||
|
"xwlHg": "S_PTIlK",
|
||||||
|
"rSjpq": "S_eAfeO",
|
||||||
|
"yRfld": "S_TKzkO",
|
||||||
|
"CrVZj": "S_Function",
|
||||||
|
"TwaCu": "S_RSOtq",
|
||||||
|
"ZsdXR": "S_iterator",
|
||||||
|
"kSWqq": "S_iESrH",
|
||||||
|
"oRAbh": "S_Undefined",
|
||||||
|
"qVRpY": "S_Null",
|
||||||
|
"ajEyG": "S_Arguments",
|
||||||
|
"aIqFP": "S_Symbol",
|
||||||
|
"CaWbj": "S_name",
|
||||||
|
"UJRGN": "S_YlGGY",
|
||||||
|
"EKlna": "S_bqQcf",
|
||||||
|
"zaEGk": "S_toStringTag",
|
||||||
|
"mprrn": "S_vqFWy",
|
||||||
|
"ljjha": "S_wuCiQ",
|
||||||
|
"qKYvq": "S_zqpvP",
|
||||||
|
"JrnAv": "S_lBRuW",
|
||||||
|
"gvyPl": "S_RYsAH",
|
||||||
|
"vaAau": "S_default",
|
||||||
|
"jGlRy": "S_number",
|
||||||
|
"Jfhon": "S_Incorrect_hint",
|
||||||
|
"jpAuO": "S_KdSDi",
|
||||||
|
"EqCxk": "S_Cannot_delete_property",
|
||||||
|
"kFOcK": "S_symbol",
|
||||||
|
"ACGGG": "S_AdwGF",
|
||||||
|
"BrqnP": "S_UrbDH",
|
||||||
|
"jewJV": "S_lzOZo",
|
||||||
|
"PoKQY": "S_Maximum_allowed_index_exce",
|
||||||
|
"nulbI": "S_CTzPz",
|
||||||
|
"EXwzG": "S_OgisB",
|
||||||
|
"GAJIe": "S_span",
|
||||||
|
"DsBKE": "S_toPrimitive_must_return_a_",
|
||||||
|
"CKhcs": "S_QDQLd",
|
||||||
|
"fgYYx": "S_VSdzR",
|
||||||
|
"DmmRI": "S_undefined",
|
||||||
|
"oqxyr": "S_process",
|
||||||
|
"Trhsk": "S_qAUpN",
|
||||||
|
"wwHsC": "S_BQabI",
|
||||||
|
"ACYsm": "S_upTlr",
|
||||||
|
"wZzQr": "S_duRVJ",
|
||||||
|
"EHdDT": "S_jAzBp",
|
||||||
|
"VUUOE": "S_constructor",
|
||||||
|
"XsjCj": "S_hasOwnProperty",
|
||||||
|
"OeloI": "S_isPrototypeOf",
|
||||||
|
"YjHhL": "S_propertyIsEnumerable",
|
||||||
|
"NMtPR": "S_toLocaleString",
|
||||||
|
"VbJVB": "S_toString",
|
||||||
|
"Tarmm": "S_layer",
|
||||||
|
"wywjR": "S_String",
|
||||||
|
"dapet": "S_UHeQl",
|
||||||
|
"aaglo": "S_eTkKy",
|
||||||
|
"uaPZx": "S_sham",
|
||||||
|
"hnyCW": "S_kIbXq",
|
||||||
|
"CVbNs": "S_prototype",
|
||||||
|
"cLkUY": "S_EnQcd",
|
||||||
|
"xtWNW": "S_FYdew",
|
||||||
|
"ZHMnH": "S__3_4_2_0_1",
|
||||||
|
"DCmPV": "S_PqIQi",
|
||||||
|
"xmVxV": "S_symbol_detection",
|
||||||
|
"nPfhT": "S_split",
|
||||||
|
"uINNi": "S_HqzgJ",
|
||||||
|
"ISjCZ": "S_aaxFO",
|
||||||
|
"hSWZH": "S_bqcFG",
|
||||||
|
"gmJbc": "S_IQipS",
|
||||||
|
"pGHuL": "S_Request_failed",
|
||||||
|
"LYOyA": "S_yxhLV",
|
||||||
|
"CYskF": "S_sPikz",
|
||||||
|
"surET": "S_GqSLz",
|
||||||
|
"jcJBM": "S_flags",
|
||||||
|
"cODtY": "S_kQQiO",
|
||||||
|
"MxKat": "S_FMnvf",
|
||||||
|
"uNTVW": "S_KXxgJ",
|
||||||
|
"rfKcW": "S_ZMcXk",
|
||||||
|
"ncRRC": "S_Can_x27t_x20convert_x20obj",
|
||||||
|
"SeFIy": "S_SzeGh",
|
||||||
|
"rfETA": "S_LUBzt",
|
||||||
|
"ufWaW": "S_OnYgj",
|
||||||
|
"NoCpO": "S_iterator2",
|
||||||
|
"KaBzU": "S_is_not_iterable",
|
||||||
|
"RIEak": "S_ZEaHA",
|
||||||
|
"wKtgP": "S_IUbTa",
|
||||||
|
"ckwVm": "S_Number",
|
||||||
|
"XbGJG": "S_DoMaz",
|
||||||
|
"DQhxT": "S_bmOAf",
|
||||||
|
"RPONx": "S_pAKMp",
|
||||||
|
"mKPLP": "S_return_this",
|
||||||
|
"TWqoZ": "S_APgoP",
|
||||||
|
"NsMMQ": "S_KBRLS",
|
||||||
|
"VPpoH": "S_sbZiC",
|
||||||
|
"FCPWF": "S_ChsQA",
|
||||||
|
"xaKMi": "S_document",
|
||||||
|
"PZDpd": "S_documentElement",
|
||||||
|
"HJMYK": "S_pMLbt",
|
||||||
|
"eUHPQ": "S_vKqhB",
|
||||||
|
"Nluik": "S_FeODj",
|
||||||
|
"DdfTj": "S_VHuVr",
|
||||||
|
"fnhRX": "S_kyTqr",
|
||||||
|
"pbdaO": "S_Incompatible_receiver",
|
||||||
|
"yxYwx": "S_Object_x20already_x20initi",
|
||||||
|
"DUnsZ": "S_state",
|
||||||
|
"gnsan": "S_Array",
|
||||||
|
"zbWjp": "S_iutFF",
|
||||||
|
"dPxzS": "S_VVEkW",
|
||||||
|
"iiNqH": "S_function",
|
||||||
|
"pEsMg": "S_MlRvw",
|
||||||
|
"tIWRV": "S_lrPPa",
|
||||||
|
"ZMtGD": "S_required",
|
||||||
|
"QhGgE": "S_AsyncFunction",
|
||||||
|
"xCiHI": "S_AsyncGeneratorFunction",
|
||||||
|
"DViKI": "S_EaQEW",
|
||||||
|
"dsLVs": "S_VKhfK",
|
||||||
|
"TVBTv": "S_return",
|
||||||
|
"xKpJS": "S_lvHan",
|
||||||
|
"Ezytj": "S_Reflect",
|
||||||
|
"JwlPq": "S_construct",
|
||||||
|
"Hfnhy": "S_rwPuU",
|
||||||
|
"HKhEl": "S_shjqN",
|
||||||
|
"QgJwd": "S_liCjt",
|
||||||
|
"jddME": "S_nfqzI",
|
||||||
|
"CvDXd": "S_bUiPI",
|
||||||
|
"tiXbd": "S_MKbqX",
|
||||||
|
"UlJEf": "S_yrOkn",
|
||||||
|
"xDYTK": "S_GKBcR",
|
||||||
|
"REDuf": "S_RegExp",
|
||||||
|
"jpXBR": "S_RZbzP",
|
||||||
|
"HoRla": "S_sFaFh",
|
||||||
|
"RHqHf": "S_normal",
|
||||||
|
"FTEAt": "S_Bfoux",
|
||||||
|
"rLdWz": "S_imFFF",
|
||||||
|
"TOQro": "S_HWPEw",
|
||||||
|
"vRzNx": "S_throw",
|
||||||
|
"QUXyP": "S_wZVhB",
|
||||||
|
"FQJfY": "S_lNqjU",
|
||||||
|
"NDvpd": "S_ukUwx",
|
||||||
|
"Xetdn": "S_Object",
|
||||||
|
"Uwgqv": "S_GPHjQ",
|
||||||
|
"CQEZC": "S_x20Iterator",
|
||||||
|
"rloGi": "S_TqlyQ",
|
||||||
|
"ynata": "S__4_3_0_1_2",
|
||||||
|
"Mblnm": "S_SBHwq",
|
||||||
|
"ukbOH": "S_acrwU",
|
||||||
|
"lXohy": "S_iDeJw",
|
||||||
|
"TZUJx": "S_qgJYk",
|
||||||
|
"FFyDW": "S_PQhVz",
|
||||||
|
"DYYXi": "S_UegTv",
|
||||||
|
"nPqXg": "S_HEGsu",
|
||||||
|
"GlMcp": "S_jbdaZ",
|
||||||
|
"XEjor": "S_values",
|
||||||
|
"QIlPh": "S_Ovstm",
|
||||||
|
"ITGJj": "S_PcHAY",
|
||||||
|
"kGRZb": "S_JtliJ",
|
||||||
|
"rDFCD": "S_set",
|
||||||
|
"QBiBv": "S_arity",
|
||||||
|
"tlmdU": "S_source",
|
||||||
|
"txohD": "S_DfMeR",
|
||||||
|
"PwmuO": "S_qFCTg",
|
||||||
|
"zPXeG": "S_weawl",
|
||||||
|
"mIqRd": "S_TOtce",
|
||||||
|
"aafWa": "S_Bad_x20Promise_x20construc",
|
||||||
|
"klJVi": "S_OCJBG",
|
||||||
|
"hBzKX": "S_dttwy",
|
||||||
|
"XEsMu": "S_djehU",
|
||||||
|
"sOsZl": "S_oekYj",
|
||||||
|
"xwMdp": "S_abcdefghijklmnopqrst",
|
||||||
|
"LsQrF": "S_ClDCX",
|
||||||
|
"jXEmu": "S_wOEnn",
|
||||||
|
"VJtjJ": "S_is_not_a_constructor",
|
||||||
|
"oWXUy": "S_JvfLA",
|
||||||
|
"diutk": "S_iframe",
|
||||||
|
"wbGwN": "S_java",
|
||||||
|
"NgJUy": "S_document_F_Object",
|
||||||
|
"bZNTi": "S_oBcWl",
|
||||||
|
"JRfhg": "S_NcAEa",
|
||||||
|
"QjMzM": "S_kvAsp",
|
||||||
|
"hAKSn": "S_MaISB",
|
||||||
|
"KehfK": "S_qlNyO",
|
||||||
|
"rIdim": "S_Symbol2",
|
||||||
|
"EtPCw": "S_incQA",
|
||||||
|
"drpkv": "S_get",
|
||||||
|
"rgYFe": "S_value",
|
||||||
|
"tCidF": "S_muNgw",
|
||||||
|
"HJLFV": "S_GZnpF",
|
||||||
|
"xsujP": "S_enumerable",
|
||||||
|
"fxJWu": "S_configurable",
|
||||||
|
"TMoql": "S_writable",
|
||||||
|
"QmARb": "S__0123456789abcdef",
|
||||||
|
"Czuxm": "S_proto",
|
||||||
|
"yTNzi": "S_pKOQZ",
|
||||||
|
"pvuJl": "S_dQZrG",
|
||||||
|
"hpLMC": "S_FTcti",
|
||||||
|
"wKCLj": "S_HFgam",
|
||||||
|
"rCUMF": "S_vIWgu",
|
||||||
|
"SZBnk": "S_pkcSw",
|
||||||
|
"PavIR": "S_Window",
|
||||||
|
"TcIva": "S__0_4_2_1_3",
|
||||||
|
"LWkPA": "S_LDajH",
|
||||||
|
"sPOth": "S_eqLVH",
|
||||||
|
"qiSyz": "S_Aejoi",
|
||||||
|
"JqhSS": "S_PPGsm",
|
||||||
|
"myTCo": "S_QlNpj",
|
||||||
|
"FqObw": "S_otNnw",
|
||||||
|
"czoqi": "S_Symbol3",
|
||||||
|
"dJlDU": "S_object2",
|
||||||
|
"SFlHU": "S_rTZUm",
|
||||||
|
"aznkB": "S_lMIzB",
|
||||||
|
"TZrtW": "S__0_1_4_2_3",
|
||||||
|
"IPfHd": "S_WtRPr",
|
||||||
|
"tOScv": "S_zIWGm",
|
||||||
|
"eJMZW": "S_ownKeys",
|
||||||
|
"gxpgT": "S_SCEAG",
|
||||||
|
"UddfX": "S_JQJWG",
|
||||||
|
"sDoOZ": "S_eLPpm",
|
||||||
|
"KdOeN": "S_HZYqS",
|
||||||
|
"xdLaw": "S_rvPGx",
|
||||||
|
"puCFB": "S_vzDSM",
|
||||||
|
"wESAy": "S_Tpeju",
|
||||||
|
"RrtKr": "S_Promise",
|
||||||
|
"MUeLr": "S_mousemove",
|
||||||
|
"oJFNY": "S_EPelf",
|
||||||
|
"qzBUC": "S_WVdmf",
|
||||||
|
"JjyNE": "S_Unhandled_x20promise_x20re",
|
||||||
|
"cYEKS": "S_bERXg",
|
||||||
|
"NtKSZ": "S_dSwAW",
|
||||||
|
"Otfsw": "S_Cmxhh",
|
||||||
|
"pUIat": "S_rqPjf",
|
||||||
|
"UmbJX": "S_MPVrS",
|
||||||
|
"lFhgb": "S__0_1_3_2_4",
|
||||||
|
"ElbKE": "S_x",
|
||||||
|
"aUpyF": "S_x2",
|
||||||
|
"MBgvW": "S_abcd",
|
||||||
|
"yuXfE": "S_jPrcD",
|
||||||
|
"fROOz": "S_gvtPz",
|
||||||
|
"AHDqg": "S_pjiAJ",
|
||||||
|
"XrGCc": "S_a_c",
|
||||||
|
"xsTZU": "S_aOgnM",
|
||||||
|
"OCRtw": "S_SPYbe",
|
||||||
|
"FwkyN": "S_IWEJY",
|
||||||
|
"hvaBq": "S_mousedown",
|
||||||
|
"BfyCB": "S_failed",
|
||||||
|
"lsoMz": "S_success",
|
||||||
|
"XWJWI": "S_GoYwJ",
|
||||||
|
"DOnsG": "S_MulXn",
|
||||||
|
"kHcDl": "S_TLrbW",
|
||||||
|
"jkqEb": "S_GnGhy",
|
||||||
|
"zfKLi": "S_gZCJb",
|
||||||
|
"ErmDj": "S_rFIJb",
|
||||||
|
"eLAMb": "S_keys",
|
||||||
|
"QdnvP": "S_core_js_shared",
|
||||||
|
"BcDuJ": "S_QWGhI",
|
||||||
|
"vxOKU": "S_versions",
|
||||||
|
"rEuCv": "S__3_32_2",
|
||||||
|
"rDROo": "S_pure",
|
||||||
|
"xCRsm": "S_global",
|
||||||
|
"NVlZx": "S_https_github_com_zloirock_",
|
||||||
|
"tBffU": "S_https_github_com_zloirock_2",
|
||||||
|
"CVKpQ": "S_woNgK",
|
||||||
|
"VUUzk": "S_IneYe",
|
||||||
|
"NCluL": "S_HNULs",
|
||||||
|
"kpMsz": "S_SbbAp",
|
||||||
|
"DXdKf": "S_gHdPi",
|
||||||
|
"wmzFI": "S_zysqO",
|
||||||
|
"zqYKW": "S_Wrong_number_of_repetition",
|
||||||
|
"MahPJ": "S_daonU",
|
||||||
|
"JCRZj": "S_FemNE",
|
||||||
|
"xncas": "S_x3",
|
||||||
|
"nxOsR": "S_x4",
|
||||||
|
"ttvef": "S_ksyRh",
|
||||||
|
"WAlhy": "S_PTmhB",
|
||||||
|
"WfjfL": "S_toPrimitive",
|
||||||
|
"taCNc": "S_UJzlm",
|
||||||
|
"jDwLg": "S_uMtlx",
|
||||||
|
"cGuYC": "S_JuMyJ",
|
||||||
|
"zIEAh": "S_script",
|
||||||
|
"HBiIV": "S_VpGvR",
|
||||||
|
"IhxyS": "S_vUmYp",
|
||||||
|
"FtryF": "S_SXNvw",
|
||||||
|
"MsIAP": "S_pwjpE",
|
||||||
|
"SviWa": "S_GumaU",
|
||||||
|
"yWVbM": "S_SCHAS",
|
||||||
|
"JZqCI": "S_vAGXc",
|
||||||
|
"mkdhL": "S_WatmJ",
|
||||||
|
"XcQso": "S_onreadystatechange",
|
||||||
|
"rbFtR": "S_file",
|
||||||
|
"sNBSt": "S_message",
|
||||||
|
"THyfS": "S_ZcsRI",
|
||||||
|
"nLLdi": "S_QzAVf",
|
||||||
|
"qzHoS": "S_ZWkeX",
|
||||||
|
"lsXmI": "S_CAevV",
|
||||||
|
"tSULr": "S_qJsRi",
|
||||||
|
"QNLbF": "S_hvTov",
|
||||||
|
"nWIpD": "S_LFJak",
|
||||||
|
"GCNYM": "S_kpjPe",
|
||||||
|
"nxoju": "S_lQnfb",
|
||||||
|
"hIOfG": "S_UaKuT",
|
||||||
|
"ZmdqK": "S_ohHXW",
|
||||||
|
"MBLqB": "S_ZMJJu",
|
||||||
|
"MlPLq": "S_vIUGQ",
|
||||||
|
"RZLEr": "S_eTrPX",
|
||||||
|
"nrKFN": "S__2_1_0_3_4",
|
||||||
|
"hKQIk": "S_IVDkj",
|
||||||
|
"ByAgz": "S_rhjJn",
|
||||||
|
"aYlLl": "S_UHFfC",
|
||||||
|
"bSDef": "S_MSIE",
|
||||||
|
"NIWOl": "S_Trident",
|
||||||
|
"cWQoI": "S_MrfqV",
|
||||||
|
"uGjen": "S_s_S",
|
||||||
|
"ZSTPH": "S_LkwXG",
|
||||||
|
"SAYct": "S_yATxo",
|
||||||
|
"yaeBT": "S_isConcatSpreadable",
|
||||||
|
"xJRIJ": "S_concat",
|
||||||
|
"pYGgt": "S_UYbWL",
|
||||||
|
"eatFY": "S_ZRjTP",
|
||||||
|
"FePfm": "S_includes",
|
||||||
|
"kNjyu": "S_GvVTg",
|
||||||
|
"FijQl": "S_GHtgp",
|
||||||
|
"PbwzO": "S_YCNty",
|
||||||
|
"ZulIv": "S_Array_Iterator",
|
||||||
|
"bwNex": "S_entries",
|
||||||
|
"hGiPm": "S_KTouY",
|
||||||
|
"xQLHA": "S_join",
|
||||||
|
"IoZhS": "S_slice",
|
||||||
|
"RMKqH": "S_splice",
|
||||||
|
"ykByb": "S_drvqv",
|
||||||
|
"knAPp": "S_xQrjh",
|
||||||
|
"eUhdC": "S_GqNgw",
|
||||||
|
"DpIxn": "S_null",
|
||||||
|
"vNURs": "S_hPciW",
|
||||||
|
"LddPA": "S_udead",
|
||||||
|
"ZwMad": "S_vHPBy",
|
||||||
|
"GagkF": "S_aKAZt",
|
||||||
|
"RsfKT": "S_JSON",
|
||||||
|
"gPrDm": "S_stringify",
|
||||||
|
"SaLNV": "S_bOzTH",
|
||||||
|
"krSnl": "S_xcbFH",
|
||||||
|
"zfBoM": "S_eUAME",
|
||||||
|
"VBeuD": "S_Cannot_convert_a_Symbol_va",
|
||||||
|
"bPthK": "S_lcUgO",
|
||||||
|
"kkgPo": "S__0o1",
|
||||||
|
"fOvhp": "S__0b1",
|
||||||
|
"oRJiL": "S_MKCOk",
|
||||||
|
"bAKer": "S_KOgbX",
|
||||||
|
"HBFZb": "S_YLcDe",
|
||||||
|
"PINKb": "S_QuXpo",
|
||||||
|
"WdPVE": "S_FgaEW",
|
||||||
|
"pCPtu": "S_DkDnU",
|
||||||
|
"vMhWp": "S_Not_enough_arguments",
|
||||||
|
"NxGem": "S_NeOsk",
|
||||||
|
"WJJxe": "S_hNnSW",
|
||||||
|
"MmriN": "S_xQeGM",
|
||||||
|
"aEDCI": "S_catch",
|
||||||
|
"sleEo": "S_WZBGp",
|
||||||
|
"XoEgJ": "S_jkneN",
|
||||||
|
"XqGzh": "S_valueOf",
|
||||||
|
"ycoWQ": "S_sMybB",
|
||||||
|
"NKtXK": "S_YpVmb",
|
||||||
|
"MpCZs": "S_rSBAQ",
|
||||||
|
"wwJjw": "S_Event",
|
||||||
|
"xSNqW": "S_RUgsf",
|
||||||
|
"ehmlp": "S_FHQeV",
|
||||||
|
"mHeub": "S_DHbqF",
|
||||||
|
"ZTfAg": "S_SmxXc",
|
||||||
|
"azvMw": "S_rejectionHandled",
|
||||||
|
"fsLTN": "S_JBAEU",
|
||||||
|
"GVauL": "S_NOrfY",
|
||||||
|
"wNuWN": "S_hBUWG",
|
||||||
|
"xIRxt": "S_QDAkW",
|
||||||
|
"dtJiR": "S_IXwrt",
|
||||||
|
"dqnsE": "S_Promise_x20can_x27t_x20be_",
|
||||||
|
"ReimC": "S_uERuE",
|
||||||
|
"juZOh": "S_NIzxm",
|
||||||
|
"GNoFu": "S_ZZFmw",
|
||||||
|
"QmgSf": "S_yemph",
|
||||||
|
"kwZkV": "S_Symbol_description_detecti",
|
||||||
|
"qeFXY": "S_AngFt",
|
||||||
|
"JgdXZ": "S_pYISK",
|
||||||
|
"vFZmr": "S_uYDmn",
|
||||||
|
"xDiUz": "S_bNgdL",
|
||||||
|
"QVIOj": "S_eJKwz",
|
||||||
|
"DGOgE": "S_unhandledrejection",
|
||||||
|
"GAyNC": "S_then",
|
||||||
|
"gDfBs": "S_BgyNU",
|
||||||
|
"RQgnK": "S_AQBHC",
|
||||||
|
"aSWfQ": "S_Jbeoa",
|
||||||
|
"kCciG": "S_DWHnC",
|
||||||
|
"GSAKl": "S_a_i",
|
||||||
|
"XCeKt": "S_rEpdY",
|
||||||
|
"KxpXZ": "S_jQmec",
|
||||||
|
"LLnSn": "S_GRZxT",
|
||||||
|
"QQlWc": "S_Invalid_x20capture_x20grou",
|
||||||
|
"NVypW": "S_GXiNf",
|
||||||
|
"jZRHN": "S_ZpnwU",
|
||||||
|
"HYKKy": "S_sticky",
|
||||||
|
"PNptg": "S_x5",
|
||||||
|
"NYXIi": "S_XZzOS",
|
||||||
|
"jEZdD": "S_match",
|
||||||
|
"ZQQZc": "S_CDrra",
|
||||||
|
"eyEuI": "S_jxtvu",
|
||||||
|
"UlBJp": "S_a_b",
|
||||||
|
"FwmcI": "S_qNMIA",
|
||||||
|
"TSzUx": "S_kCtWX",
|
||||||
|
"GqtxM": "S_OIgRK",
|
||||||
|
"bpxqF": "S_gbtCU",
|
||||||
|
"XucKu": "S_FcPIn",
|
||||||
|
"kchWx": "S_oRPwm",
|
||||||
|
"zDbEt": "S_yguSM",
|
||||||
|
"QYdIt": "S_NQPRP",
|
||||||
|
"FOfXP": "S_x6",
|
||||||
|
"QeGTg": "S_QtVUP",
|
||||||
|
"ulWzR": "S_VgZEu",
|
||||||
|
"XqqWb": "S_NMwcb",
|
||||||
|
"fzgDl": "S_nMClD",
|
||||||
|
"tIYWt": "S_vKSlb",
|
||||||
|
"hPDLa": "S_UHHTm",
|
||||||
|
"JRzER": "S_XetDW",
|
||||||
|
"KeWne": "S_Csesr",
|
||||||
|
"NVWiE": "S_XiBuc",
|
||||||
|
"LbKSS": "S_WOxEY",
|
||||||
|
"oQVKS": "S_NRthF",
|
||||||
|
"DmOkM": "S_Symbol_is_not_a_constructo",
|
||||||
|
"znVdS": "S_AAflO",
|
||||||
|
"zTpxy": "S_rOZIf",
|
||||||
|
"yRyoW": "S_hidden",
|
||||||
|
"GqPJg": "S_symbols",
|
||||||
|
"fSLXv": "S_wks",
|
||||||
|
"vdgmr": "S_withoutSetter",
|
||||||
|
"OtwDc": "S_description",
|
||||||
|
"QpytE": "S_VDZju",
|
||||||
|
"QcbrA": "S_fOBHY",
|
||||||
|
"yksmB": "S_string_to_symbol_registry",
|
||||||
|
"knEAm": "S_x20is_x20not_x20a_x20symbo",
|
||||||
|
"Taavo": "S_Mhpkm",
|
||||||
|
"HguOu": "S_symbol_to_string_registry",
|
||||||
|
"ETjKF": "S_ttQoh",
|
||||||
|
"ArrNv": "S_rWIJw",
|
||||||
|
"yMZwY": "S_Dszls",
|
||||||
|
"laIAh": "S_DOMTokenList",
|
||||||
|
"ZFKPM": "S_WhoVB",
|
||||||
|
"WWjdg": "S_prMpe",
|
||||||
|
"kIJrT": "S_DzeET",
|
||||||
|
"hZdIg": "S_r_n_background_size_20px_2",
|
||||||
|
"Caort": "S_SQpgJ",
|
||||||
|
"DsKsK": "S_Vgztt",
|
||||||
|
"zpWvw": "S_supports",
|
||||||
|
"FZGQv": "S_FdNga",
|
||||||
|
"jwZsV": "S__3_2_4_1_0",
|
||||||
|
"kLKEC": "S_style",
|
||||||
|
"WalYj": "S_n_sourceMappingURL_data_ap",
|
||||||
|
"TZRbH": "S_Cannot_x20call_x20a_x20cla",
|
||||||
|
"stBqk": "S_vkxWF",
|
||||||
|
"dmQSE": "S_KeMHw",
|
||||||
|
"mKZSO": "S_sCqGY",
|
||||||
|
"QEtVR": "S_SZvfy",
|
||||||
|
"LAFcu": "S_MHiSz",
|
||||||
|
"lVACi": "S_hNPnf",
|
||||||
|
"DJLLG": "S_Fuajv",
|
||||||
|
"rMCyy": "S_AIprH",
|
||||||
|
"gqguP": "S_XOAiM",
|
||||||
|
"lWzAs": "S_remove",
|
||||||
|
"GhaMu": "S_x7",
|
||||||
|
"rheUq": "S_lFmCq",
|
||||||
|
"djrgW": "S_VPNnP",
|
||||||
|
"SkZKN": "S_iAFAn",
|
||||||
|
"PmETy": "S_jushZ",
|
||||||
|
"ZAOoH": "S_ZpDfx",
|
||||||
|
"zWuDg": "S_eNaDI",
|
||||||
|
"ElIcY": "S_ddiQE",
|
||||||
|
"UMlGt": "S_TdeJa",
|
||||||
|
"IHqNu": "S_gn_result_loading",
|
||||||
|
"YrUgf": "S_element_undefined",
|
||||||
|
"mvWie": "S_yWJdD",
|
||||||
|
"yAwXq": "S_element_remove_is_not_supp",
|
||||||
|
"fxBAI": "S_Request_failed_with_status",
|
||||||
|
"wnqfB": "S_oQBUt",
|
||||||
|
"EuGiz": "S_yHTAw",
|
||||||
|
"npHhZ": "S_ZLAkY",
|
||||||
|
"aQeyg": "S_EakNb",
|
||||||
|
"oveuk": "S_GNQDG",
|
||||||
|
"alWgv": "S_wiWlz",
|
||||||
|
"tGqKq": "S_amKoR",
|
||||||
|
"LkXAG": "S_UHLen",
|
||||||
|
"QkVta": "S_Mlnvx",
|
||||||
|
"MfxEg": "S_IxhIc",
|
||||||
|
"DFjsa": "S_zrfyJ",
|
||||||
|
"GTYAA": "S_LQUOR",
|
||||||
|
"CmiKQ": "S_x8",
|
||||||
|
"IZPER": "S_pqqKn",
|
||||||
|
"oWfwt": "S_tKXSu",
|
||||||
|
"BsEkl": "S_pvXea",
|
||||||
|
"DGoyR": "S_aStBb",
|
||||||
|
"mNQNN": "S_cwwjX",
|
||||||
|
"jVWlj": "S_Dktwp",
|
||||||
|
"GQcrC": "S_tpcUg",
|
||||||
|
"AgADD": "S_touchstart",
|
||||||
|
"fdgKY": "S_closed",
|
||||||
|
"tsHCw": "S_gn_bar_success",
|
||||||
|
"gZGZI": "S_touchmove",
|
||||||
|
"vMpug": "S_mouseup",
|
||||||
|
"pUdKp": "S_popup",
|
||||||
|
"fcTpw": "S_gn_result_err",
|
||||||
|
"yNzpD": "S_nHHCP",
|
||||||
|
"INhhF": "S_hcLIa",
|
||||||
|
"GqlLI": "S_blue",
|
||||||
|
"IaOwj": "S_x9",
|
||||||
|
"KTKAU": "S_u8bf7_u6c42_u5931_u8d25",
|
||||||
|
"JIzeJ": "S_x10",
|
||||||
|
"WaAPV": "S_Slide_to_the_right",
|
||||||
|
"DdQzA": "S_Verifying",
|
||||||
|
"iIWXw": "S_Verification_x20passed",
|
||||||
|
"jRaDa": "S_config_container_x20undefi",
|
||||||
|
"vHusn": "S_embed",
|
||||||
|
"EKIeT": "S_config_themeColor_not_supp",
|
||||||
|
"qVYNO": "S_config_width_too_small",
|
||||||
|
"EhrAR": "S_config_height_too_small",
|
||||||
|
"sCjTr": "S_initialized",
|
||||||
|
"mRZSx": "S_gn_slide_bg",
|
||||||
|
"quwHR": "S_GnSlideRail",
|
||||||
|
"XdGTr": "S_gn_slide_rail",
|
||||||
|
"euLOW": "S_gn_theme",
|
||||||
|
"JBKwR": "S_gn_slide_bar",
|
||||||
|
"BoYkS": "S_HeSWw",
|
||||||
|
"mvXXa": "S_gn_result_success",
|
||||||
|
"LtXGL": "S_calculateCenter",
|
||||||
|
"oPoTb": "S_show",
|
||||||
|
"eIjIY": "S_backToStart",
|
||||||
|
"ylgVS": "S_symbol2",
|
||||||
|
"UdzpD": "S_JsGXE",
|
||||||
|
"ZujWc": "S_is_not_a_constructor2",
|
||||||
|
"target": "S_Symbol5",
|
||||||
|
"EfnsL": "S_Wrong_number_of_repetition2",
|
||||||
|
"hAXLH": "S_Waqsz",
|
||||||
|
"doDNX": "S_wfQky",
|
||||||
|
"TqzqH": "S_get2",
|
||||||
|
"bVbwz": "S_arity2",
|
||||||
|
"GyhQo": "S_source2",
|
||||||
|
"wgqjc": "S_EpHld",
|
||||||
|
"gJUvG": "S_TUStm",
|
||||||
|
"gLDSu": "S_Object3",
|
||||||
|
"OLArU": "S_x20required",
|
||||||
|
"tdKPd": "S_throw2",
|
||||||
|
"BwdpQ": "S_RXnYF",
|
||||||
|
"iKaTd": "S_qbfLT",
|
||||||
|
"TOGRM": "S_Object4",
|
||||||
|
"WWCdY": "S_MPbjF",
|
||||||
|
"QLFYo": "S_MatLo",
|
||||||
|
"KEMAu": "S_RfuUj",
|
||||||
|
"FZObP": "S_Cannot_x20set_x20read_x20o",
|
||||||
|
"TLWfx": "S_UdvYR",
|
||||||
|
"GVagT": "S_htmlfile",
|
||||||
|
"BIPDp": "S_Xwcem",
|
||||||
|
"source": "S_a3",
|
||||||
|
"flags": "S_b3",
|
||||||
|
"AxHXm": "S_qojBI",
|
||||||
|
"EFCZr": "S_set2",
|
||||||
|
"CwSnw": "S_style2",
|
||||||
|
"NwKBS": "S_myxNH",
|
||||||
|
"KIctg": "S_YTcGF",
|
||||||
|
"bosSl": "S_Event2",
|
||||||
|
"xUGQw": "S_Ovatc",
|
||||||
|
"fJvqR": "S_s",
|
||||||
|
"exOrS": "S_zXuOg",
|
||||||
|
"hQNEz": "S_FLHQj",
|
||||||
|
"ymciO": "S_verifying",
|
||||||
|
"DPOqI": "S_iMTSG",
|
||||||
|
"qIbKb": "S_VmUgS",
|
||||||
|
"QgDZC": "S_EVfUG",
|
||||||
|
"MEDUF": "S_symbol_to_string_registry2",
|
||||||
|
"bHlhU": "S_bqwSr",
|
||||||
|
"TfyJR": "S_catch2",
|
||||||
|
"UvNkk": "S_object3",
|
||||||
|
"qgjff": "S_fbbIl",
|
||||||
|
"aKNSR": "S_prototype2",
|
||||||
|
"PlGXA": "S_ypozs",
|
||||||
|
"GNFrO": "S_x20is_x20not_x20a_x20funct",
|
||||||
|
"BpYQN": "S_number2",
|
||||||
|
"lySzn": "S_CTOZY",
|
||||||
|
"dYtbw": "S_LngSK",
|
||||||
|
"jkDEk": "S_mWYKY",
|
||||||
|
"vwDeM": "S_constructor2",
|
||||||
|
"mVLXG": "S_description2",
|
||||||
|
"UrCTR": "S_description_detection",
|
||||||
|
"yFcej": "S_tGlst",
|
||||||
|
"IHWAn": "S_Undefined2",
|
||||||
|
"goqnH": "S_Arguments2",
|
||||||
|
"uvrbG": "S_dotAll",
|
||||||
|
"Mxqqq": "S_supports2",
|
||||||
|
"IfwQS": "S_sWRJG",
|
||||||
|
"dFdOv": "S_String4",
|
||||||
|
"NkXfT": "S_hmrKQ",
|
||||||
|
"QAhso": "S_LdWHU",
|
||||||
|
"EqFJT": "S_YPZcK",
|
||||||
|
"HDgBe": "S_string2",
|
||||||
|
"zDJzz": "S_Incorrect_hint2",
|
||||||
|
"AqPbA": "S_xhqDl",
|
||||||
|
"htOmV": "S_layer2",
|
||||||
|
"xguZT": "S_supports_x20",
|
||||||
|
"MaPEj": "S_x11",
|
||||||
|
"uAUPA": "S_x20",
|
||||||
|
"aUpLx": "S_media_x20",
|
||||||
|
"Lqpuz": "S_join2",
|
||||||
|
"pQIrx": "S_object4",
|
||||||
|
"jjJlv": "S_Cannot_x20call_x20a_x20cla2",
|
||||||
|
"npvhk": "S_object5",
|
||||||
|
"QIyFL": "S_string3",
|
||||||
|
"cofhf": "S_click",
|
||||||
|
"IJBXD": "S_include",
|
||||||
|
"gMTci": "S_MSIE2",
|
||||||
|
"kiXhL": "S_gPTcP",
|
||||||
|
"RvTIF": "S_layer3",
|
||||||
|
"XkSVU": "S_VCDMs",
|
||||||
|
"OUSNn": "S_touchend",
|
||||||
|
"rZZbl": "S_request_failed",
|
||||||
|
"aVGTy": "S_span2",
|
||||||
|
"RTTgR": "S_created",
|
||||||
|
"XcSkB": "S_u9a8c_u8bc1_u5931_u8d25_uf",
|
||||||
|
"aPmFP": "S_mousemove2",
|
||||||
|
"HgZbu": "S_div",
|
||||||
|
"HdWHC": "S_dPLQv",
|
||||||
|
"uDhnk": "S_fixed",
|
||||||
|
"kxylp": "S_gn_slide_progress",
|
||||||
|
"esHUX": "S_gn_slide_tip",
|
||||||
|
"xhutS": "S_tip",
|
||||||
|
"aIgqB": "S_appendBg",
|
||||||
|
"UDsVB": "S_appendSlider",
|
||||||
|
"HEXVn": "S_lang",
|
||||||
|
"mNFvz": "S_div2",
|
||||||
|
"cWGXd": "S_gn_result",
|
||||||
|
"yoTqF": "S_gn_result_err2",
|
||||||
|
"tjhwc": "S_Request_failed_with_status2",
|
||||||
|
"Gcrni": "S_return_this2",
|
||||||
|
"LPzVS": "S_sOABX",
|
||||||
|
"prcEZ": "S__0_4_5_3_1_2",
|
||||||
|
"KAZSw": "S_media",
|
||||||
|
"BqyGM": "S_iterator3",
|
||||||
|
"oPuau": "S_iterator4",
|
||||||
|
"MREas": "S__3_4_1_0_2",
|
||||||
|
"bBIvJ": "S_IPczZ",
|
||||||
|
"alNsd": "S_Gvssl",
|
||||||
|
"JUtDd": "S_success2",
|
||||||
|
"JnGSt": "S_xKlIB",
|
||||||
|
"KMwgY": "S_POST",
|
||||||
|
"rpJVW": "S_Verification_failed_please",
|
||||||
|
"imRSP": "S_config_style_not_support",
|
||||||
|
"iVSdm": "S_config_barRatio_too_small",
|
||||||
|
"KPOSB": "S_GnSlideBg",
|
||||||
|
"suNac": "S_relative",
|
||||||
|
"TPkuR": "S_SqsBQ",
|
||||||
|
"ITatN": "S_mousedown2",
|
||||||
|
"zdEQC": "S_gn_bar_success2",
|
||||||
|
"GUoFV": "S_undefined2",
|
||||||
|
"rPkwm": "S_ORGOy",
|
||||||
|
"AkEbm": "S_initialized2",
|
||||||
|
"ZSdRV": "S_Repeat_pull_up_verificatio",
|
||||||
|
"lang": "S_cn",
|
||||||
|
"style": "S_popup2",
|
||||||
|
"PrLHL": "S_function2",
|
||||||
|
"Phqxo": "S_Sjmrk",
|
||||||
|
"AgJyL": "S_aWBSQ",
|
||||||
|
"KQvaZ": "S_toString2"
|
||||||
|
}
|
||||||
+4234
File diff suppressed because one or more lines are too long
+26
@@ -0,0 +1,26 @@
|
|||||||
|
import os, json, time, re
|
||||||
|
from playwright.sync_api import sync_playwright
|
||||||
|
BASE = os.environ.get("GNAME_HOME", os.path.join(os.path.dirname(os.path.abspath(__file__)), "data"))
|
||||||
|
with sync_playwright() as pw:
|
||||||
|
b = pw.chromium.launch(headless=True, args=["--no-sandbox"])
|
||||||
|
ctx = b.new_context(viewport={"width":1440,"height":950}, locale="en-US",
|
||||||
|
user_agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/154.0.0.0 Safari/537.36")
|
||||||
|
ctx.add_cookies(json.load(open(BASE+"/gname_cookies.json")))
|
||||||
|
page = ctx.new_page()
|
||||||
|
page.goto("https://www.gname.com/user/iframe#/safeModify/lx=4/type=0/txt=", wait_until="domcontentloaded", timeout=60000)
|
||||||
|
time.sleep(9)
|
||||||
|
body = page.evaluate("() => document.body.innerText.split(String.fromCharCode(10)).filter(l=>l.trim()).join(' | ').slice(0,1400)")
|
||||||
|
print("BODY:", body, flush=True)
|
||||||
|
fields = page.evaluate("""() => [...document.querySelectorAll('input,select')].map(e=>e.tagName+':'+(e.type||'')+':'+(e.name||'')+':'+(e.placeholder||'')+':'+(e.offsetParent?'vis':'hid'))""")
|
||||||
|
print("FIELDS:", json.dumps(fields[:20]), flush=True)
|
||||||
|
imgs = page.evaluate("""() => [...document.querySelectorAll('img')].filter(i=>i.offsetParent!==null).map(i=>({src:(i.src||'').slice(0,120), w:i.width, h:i.height}))""")
|
||||||
|
print("IMGS:", json.dumps(imgs[:8]), flush=True)
|
||||||
|
scripts = page.evaluate("""() => [...document.querySelectorAll('script')].filter(s=>!s.src && s.textContent.length>800).map(s=>s.textContent)""")
|
||||||
|
for i,s in enumerate(scripts):
|
||||||
|
eps = sorted(set(re.findall(r'["\']/[a-z_0-9/]{4,50}["\']', s)))
|
||||||
|
eps = [e for e in eps if any(k in e for k in ('user_zh','request','mfa','aqbh','user_'))]
|
||||||
|
if eps: print("script %d (%db) EPS:" % (i, len(s)), eps[:20], flush=True)
|
||||||
|
open(BASE+"/mfa_inline_%d.js"%i,"w",encoding="utf-8").write(s)
|
||||||
|
page.screenshot(path=BASE+"/mfa_page.png", full_page=True)
|
||||||
|
json.dump(ctx.cookies(), open(BASE+"/gname_cookies.json","w"))
|
||||||
|
b.close()
|
||||||
Reference in New Issue
Block a user