uz
Feedback

Firibgarlarga uchmang! Telemetrio bunday kanallarni topadi va belgilaydi 👉 Belgini ko‘rmoqchi bo‘lsangiz, obuna bo‘ling

شرح frida

شرح frida

Yopiq kanal

Ko'proq ko'rsatish
Mamlakat belgilanmaganToif belgilanmagan
588
Obunachilar
Ma'lumot yo'q24 soatlar
Ma'lumot yo'q7 kun
+13730 kun
Postlar arxiv
import base64
import hashlib
import json
import os
import random
import string
import sys
import time
from Crypto.Cipher import AES, PKCS1_v1_5
from Crypto.PublicKey import RSA
from Crypto.Util.Padding import pad, unpad
from tls_client import Session
ACCOUNT_HOST = "https://account.yalla.games"

APP_VERSION = "1.2.0.2"
LANGUAGE_ID = 1
PLATE_TYPE = 1
DEVICE_TYPE = 4
SIGN_SECRET = "LudoTokenSecurityCode"
PATH_PROFILE = "/YallaGame/V2/AccountRelation/AccountProfileInfo"

RSA_PUBLIC_KEY_A_B64 = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAik19fj8zJnG7Ub50NvgLObo7KWkEQgXd7AcK9KsIETw/IvCsNc3SsbZqK9qpb+Ulv4kKMe1L6249+3fMLLzSpLtsb2k0cyRk3eKW0uyj8483HI2iSvAr1DIgNzvUXMbIAXSizw4IMQAejUKRbLh4w+lKVWU/6nSuMZNhpzswNPJqegItrEhIRK0tQ78W0lhFCvS3ggRbbFN7Oh/CNM843ZvS9tiFPS66kmmjimxxyAXKAPXvuMfJ9wuLXdkeBob87uGV16yW74835pux0GSRbHSmsNaZiZ5KJBkSEOE1HDsaYiSUQz3ByGGBnw9nah91ZnXxYuk55JvWcyg+Wuv9RwIDAQAB"

BASE_DIR = os.path.dirname(os.path.abspath(__file__))
DEVICE_FILE = os.path.join(BASE_DIR, "yalla_device.json")
CF_FILE = os.path.join(BASE_DIR, "yalla_cf.json")

device = {}
try:
    with open(DEVICE_FILE, "r", encoding="utf-8") as f:
        device = json.load(f)
except Exception:
    device = {}

try:
    device_id = device["deviceId"]
except Exception:
    android_id = "".join(random.choice("0123456789abcdef") for _ in range(16))
    device_id = hashlib.md5(android_id.encode()).hexdigest()
    with open(DEVICE_FILE, "w", encoding="utf-8") as f:
        json.dump({"deviceId": device_id, "androidId": android_id, "created": int(time.time())}, f)

token = ""
account_id = ""
for a in sys.argv[1:]:
    try:
        a.startswith("--token=") and (token := a[8:])
    except Exception:
        pass
    try:
        a.startswith("--account=") and (account_id := a[9:])
    except Exception:
        pass

try:
    token = token or input("Enter token: ").strip()
except Exception:
    token = ""

try:
    account_id = account_id or input("Enter accountId: ").strip()
except Exception:
    account_id = ""

try:
    len(token) == 0 and (_ for _ in ()).throw(SystemExit(1))
except SystemExit:
    print("No token provided")
    sys.exit(1)

try:
    len(account_id) == 0 and (_ for _ in ()).throw(SystemExit(1))
except SystemExit:
    print("No accountId provided")
    sys.exit(1)

session = Session(client_identifier="okhttp4_android_13", random_tls_extension_order=True)
session.timeout_seconds = 30

aes_key = base64.b64encode(os.urandom(24)).decode()

ts = str(int(time.time() * 1000))
sign = hashlib.md5(f"{token}|{ts}|{SIGN_SECRET}".encode()).hexdigest().upper()

payload = {
    "token": token,
    "timeSpan": ts,
    "sign": sign,
    "plateType": PLATE_TYPE,
    "version": APP_VERSION,
}

try:
    payload["accountId"] = int(account_id)
except Exception:
    payload["accountId"] = account_id

iv = os.urandom(16)
cipher = AES.new(aes_key.encode(), AES.MODE_CBC, iv)
ct = cipher.encrypt(pad(json.dumps(payload, separators=(",", ":")).encode("utf-8"), AES.block_size))
param_json_string = base64.b64encode(iv + ct).decode("ascii")

nonce_suffix = "".join(random.choice(string.ascii_letters + string.digits) for _ in range(15))
base_param = {
    "timeSpan": int(time.time() * 1000),
    "nonce": device_id + "_" + nonce_suffix,
    "token": token,
    "version": APP_VERSION,
    "plateType": PLATE_TYPE,
    "deviceType": DEVICE_TYPE,
}

iv = os.urandom(16)
cipher = AES.new(aes_key.encode(), AES.MODE_CBC, iv)
ct = cipher.encrypt(pad(json.dumps(base_param, separators=(",", ":")).encode("utf-8"), AES.block_size))
base_param_string = base64.b64encode(iv + ct).decode("ascii")

rsa_pub = RSA.import_key(base64.b64decode(RSA_PUBLIC_KEY_A_B64))
blow_fish_string = base64.b64encode(PKCS1_v1_5.new(rsa_pub).encrypt(aes_key.encode())).decode()

headers = {
    "User-Agent": "YallaLudoHD-Android-0",
    "Accept": "*/*",
    "Accept-Encoding": "deflate, gzip",
    "Content-Type": "application/json",
    "BlowFishString": blow_fish_string,
    "BaseParamString": base_param_string,
    "Version": APP_VERSION,
}

try:
    with open(CF_FILE, "r", encoding="utf-8") as f:
        cf = json.load(f)
    headers["User-Agent"] = cf.get("user_agent") or headers["User-Agent"]
    cf.get("cf_clearance") and session.cookies.set("cf_clearance", cf["cf_clearance"], domain=".yalla.games")
except Exception:
    pass

body_bytes = json.dumps({"paramJsonString": param_json_string}, separators=(",", ":")).encode()

resp = None
try:
    resp = session.post(ACCOUNT_HOST + PATH_PROFILE, headers=headers, data=body_bytes)
except Exception as e:
    print("failed:", ACCOUNT_HOST, e)

try:
    resp is None and (_ for _ in ()).throw(SystemExit(1))
except SystemExit:
    print("host failed")
    sys.exit(1)
t = resp.text.strip().strip('"')
try:
    raw = base64.b64decode(t)
    iv, ct = raw[:16], raw[16:]
    cipher = AES.new(aes_key.encode(), AES.MODE_CBC, iv)
    plain = unpad(cipher.decrypt(ct), AES.block_size).decode("utf-8")
    profile = json.loads(plain)
except Exception:
    profile = resp.text[:500]

print(json.dumps(profile, ensure_ascii=False, indent=2) if isinstance(profile, (dict, list)) else profile)
اتصال معلومات لودو لايت اطيه توكن + ايدي الحساب ويستخرج

مطلوب قناة تلي حك خمسه ماستر @e_a_6

هنا تعالو

اصعدو اتصال

@pzzrc قفاص لحد يتعامل وياه

شباب اذا تردون تستخرجون خوارزميه اخذو القيمه الي تريد تستخرجون خوارزميه مالته روح ابحث عليه بل classes اذا لكيته خير على خير حول الى جافا سكربت اذا تفتهم انته بهيج سوالف تكدر تلكه التوليد بيه اذا كلشي ماكو دز الكود ai وخلي يحللل الك وذا يحتاج مفتاح خلي يسوي سكربت فريدا عليه واستخرج هاي تضبط على نص تطبيقات بس اكو معقده يحتاج تحليلل لملفات كله

ارسلو تطبيقات نستخرج تواقيع مهما كان التطبيق

هذه لودو

Repost from python
لوكن لودو المتطلبات رقم وباسوورد تكدر تسوي اي اداة تعجبك على التطبيق الخوارزميات كلها موجودة داخل الكود مصدر : @vipqvip

لوكن يلاشات + خوارزميه مالته # فقط حدثو

اذا حدثتو لوكن حولوه لغه ثانيه غير بايثون افضل

import base64
import hashlib
import json
import os
import random
import string
import time
import uuid
from Crypto.Cipher import AES, PKCS1_v1_5
from Crypto.PublicKey import RSA
from Crypto.Util.Padding import pad
from tls_client import Session

host = "https://account.yalla.games"
vers = "1.2.0.2"
lang = 1
plte = 1
devi = 4
arec = "964"
path = "/YallaGame/V2/AccountRelation/LoginByMobilePwd"

rkey = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAik19fj8zJnG7Ub50NvgLObo7KWkEQgXd7AcK9KsIETw/IvCsNc3SsbZqK9qpb+Ulv4kKMe1L6249+3fMLLzSpLtsb2k0cyRk3eKW0uyj8483HI2iSvAr1DIgNzvUXMbIAXSizw4IMQAejUKRbLh4w+lKVWU/6nSuMZNhpzswNPJqegItrEhIRK0tQ78W0lhFCvS3ggRbbFN7Oh/CNM843ZvS9tiFPS66kmmjimxxyAXKAPXvuMfJ9wuLXdkeBob87uGV16yW74835pux0GSRbHSmsNaZiZ5KJBkSEOE1HDsaYiSUQz3ByGGBnw9nah91ZnXxYuk55JvWcyg+Wuv9RwIDAQAB"

devfile = os.path.join(os.path.dirname(os.path.abspath(__file__)), "ludo_device_id.json")

dvid = None
try:
    with open(devfile) as f:
        d = json.load(f)
        if d.get("deviceId"):
            dvid = d["deviceId"]
except Exception:
    pass

if dvid is None:
    dvid = str(uuid.uuid4())
    try:
        with open(devfile, "w") as f:
            json.dump({
                "deviceId": dvid,
                "android": f"{uuid.uuid4().hex}_{uuid.uuid4().hex[:16]}",
                "shumeng": "".join(random.choice(string.ascii_letters + string.digits) for _ in range(36)),
                "nonce": f"{random.randint(-2**31, 2**31 - 1)}_{uuid.uuid4()}",
                "created": int(time.time()),
            }, f)
    except Exception:
        pass

sess = Session(client_identifier="okhttp4_android_13", random_tls_extension_order=True)
sess.timeout_seconds = 30

mobl = input("mobile: ").strip()
pwrd = input("password: ").strip()
pwdh = hashlib.md5(pwrd.encode()).hexdigest()

pdat = json.dumps({"mobile": mobl, "areaCode": arec, "password": pwdh, "languageId": lang}, separators=(",", ":")).encode()
akey = base64.b64encode(os.urandom(24)).decode().encode()
aiv_ = os.urandom(16)
act_ = AES.new(akey, AES.MODE_CBC, aiv_).encrypt(pad(pdat, AES.block_size))
pjsn = base64.b64encode(aiv_ + act_).decode()

bprm = json.dumps({"timeSpan": int(time.time() * 1000), "nonce": dvid + "_" + base64.b32encode(os.urandom(9)).decode()[:15], "token": None, "version": vers, "plateType": plte, "deviceType": devi}, separators=(",", ":")).encode()
biv_ = os.urandom(16)
bct_ = AES.new(akey, AES.MODE_CBC, biv_).encrypt(pad(bprm, AES.block_size))
bps_ = base64.b64encode(biv_ + bct_).decode()

rpub = RSA.import_key(base64.b64decode(rkey))
bfsh = base64.b64encode(PKCS1_v1_5.new(rpub).encrypt(akey)).decode()

hdrs = {
    "User-Agent": "YallaLudoHD-Android-0",
    "Accept": "*/*",
    "Accept-Encoding": "deflate, gzip",
    "Content-Type": "application/json",
    "BlowFishString": bfsh,
    "BaseParamString": bps_,
    "Version": vers,
}

body = json.dumps({"paramJsonString": pjsn}, separators=(",", ":")).encode()

resp = sess.post(host + path, headers=hdrs, data=body)
print(resp.text)
لوكن +خوارزميه لودو لايت

ه
ه

done loud h h h h h
done loud h h h h h

يتم الاستخراج اذا لكيت تفاعل انشرها

تردون خوارزميه لودو لايت؟

قربنه على 3k مشترك ما بقه شيء شاركو القناه اخوان ما مقصرين وياكم بشيء

+3
التطبيق المستخدم في الشرح

الدرس 68 تم بدء تجميع اداه التيكتوك واضافه نضام خيارات #متاحات_تيك_الجزء_5