דילוג לתוכן
  • חוקי הפורום
  • פופולרי
  • לא נפתר
  • משתמשים
  • חיפוש גוגל בפורום
  • צור קשר
עיצובים
  • בהיר
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • כהה
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • ברירת מחדל (ללא עיצוב (ברירת מחדל))
  • ללא עיצוב (ברירת מחדל)
כיווץ
מתמחים טופ
ב

בירח לא נגעתי

@בירח לא נגעתי
הפסקת מעקב מעקב
אודות
פוסטים
7
נושאים
0
שיתופים
0
קבוצות
0
עוקבים
1
עוקב אחרי
0

פוסטים

פוסטים אחרונים הגבוה ביותר שנוי במחלוקת

  • בעיה | בעיה | בקשת עזרה בקריאה וגיבוי של קושחה | Unisoc UMS9117
    ב בירח לא נגעתי

    @המפתח-לפיתוח שינתי לסיומת טקסט t117_emmc.txt שנה לסיומת C
    לילה טוב

    דיון כללי

  • בעיה | בעיה | בקשת עזרה בקריאה וגיבוי של קושחה | Unisoc UMS9117
    ב בירח לא נגעתי

    @המפתח-לפיתוח כתב:

    (או יותר נכון הוא)

    מה הוא גילה:

    הלאה תעדכן אם עוזר לך ,
    אבל זה מזור לי שסונטה 5 ברגע עבודה פתר בעיות שגמרו לך ככ הרבה מכסה
    Hi again,

    Following up with where this investigation landed. Long post, but it changes the practical path forward, so worth reading in full.

    1. Verified your data
    SHA256 of all three files matches yours. Confirmed "DHTB(" and the SHA-256 init constants in brom at the offsets you found; no AES S-box, RSA 01 00 01 constant, or your custom header magic anywhere in brom.

    2. The header-reuse finding (building on what you already spotted)
    You noted the two headers are identical except 3 bytes at 0x30-0x32. I tested the hypothesis that this is a standard DHTB header ("DHTB", version=1, data_size at 0x30) run through a stream cipher:

    • Predicted data_size for each file as file_size - 0x200 - extra (trying both sign_type=0/extra 0x294 and sign_type=1/extra 0x2B4).
    • XORed the two predicted plaintext values, and separately XORed the two actual ciphertext bytes at 0x30-0x33.
    • For sign_type=1: exact bit-for-bit match (e0580100 both ways).

    This confirms sign_type=1, and that the keystream encrypting the header is identical between fdl1.bin and fdl2.bin — a stream-cipher IV/nonce-reuse bug. I fully reconstructed the keystream for the first 0x200 bytes this way (verified by re-deriving fdl2's header from fdl1's keystream — exact byte match). No repeating 16-byte blocks in the keystream itself, so it's not a worse "stuck counter" bug, just a reused one for this specific block.

    Limits of this: I checked the sign_head (0x60 bytes) and sign_data (0x254 bytes, including where the RSA public key sits) trailers between your two files — 594/596 bytes differ, including the key region. So the trailer gets a correctly unique IV per file. Checked the body too (post-header) for matching byte runs at the same offset — found one 8-byte coincidence out of 75KB, i.e. nothing. The reuse bug is confined to the 0x200-byte header only. It lets you decrypt data_size/sign_type metadata of future captures, not the key, signature, or firmware body.

    3. Disassembly attempt (negative result, but worth knowing)
    Tried to find the actual DHTB-verification routine in brom via Capstone, starting from the two "DHTB(" string occurrences. Both times, the surrounding code was unrelated (looked like a GPIO/peripheral reset toggle), meaning the function that actually uses this string is elsewhere, referenced by PC-relative addressing I couldn't locate with a raw pointer search. This needs Ghidra/IDA auto-analysis (load as raw ARM, base 0xffff0000, then "Show References To" on the string) rather than ad hoc scripting — flagging it so you don't retread the same dead end.

    4. The actual blocker (this is the important part)
    Even a full break of the encryption might not get you what you want. Your own project's t117_fdl/README.md says plainly: "It can't read or write to NAND flash yet. However, it can dump the boot ROM and read RAM, which the original FDLs can't do." I checked read_flash() in t117_fdl/main.c — it's a bare memcpy from a RAM address, not a real storage driver. So even a perfectly unsigned, working FDL2 built from this repo today still can't dump partitions — the real eMMC/NAND driver only exists inside Qualix's signed blob.

    5. A way around it — found a real register-level eMMC driver for this exact chip
    There's a separate open-source project, fplinux (GPL-2.0), that runs actual Linux on UMS9117 devices (Nokia 3210 4G, INOI 240/244). It ships a working U-Boot eMMC driver specifically for this SoC:

    • platforms/ums9117/uboot/ums9117-mmc.c (774 lines)
    • Real register map in ums9117-sdio-slot.c: SDHCI controller at 0x20300000 (block-count/size, argument, response — standard SDHCI layout), clock/reset gating at 0x20e0xxxx, pinmux/pad control at 0x402a0xxx.
    • There's also a NAND controller driver (ums9117-nandc-chip.c/-feature.c) if your board turns out to use raw NAND instead of eMMC.

    This is exactly the missing piece in t117_fdl2. Porting this driver's register init + CMD17/CMD18 (single/multi-block read) logic into a new file in t117_fdl/, and wiring it into read_flash() in place of the current memcpy, would give you a working unsigned FDL2 with real flash access — running through the CVE chain you already have working, with zero dependency on cracking Qualix's encryption. It's a real porting job, not a one-liner, but it's open, legal, GPL-sourced work, and if it pans out it closes the actual TODO in spreadtrum_flash for anyone else with a UMS9117 device.

    That's where I'd focus next rather than continuing to push on the encryption — happy to help sketch the port if useful.
    זה רק הקבצים שלו לזה[INTEGRATION.md](Invalid MIME type) [t117_emmc.c](Invalid MIME type) [t117_emmc.c](Invalid MIME type) [t117_emmc.rar](Invalid MIME type) [לילה.rar](Invalid MIME type) יש עוד קובץ שלא מצליח לעלות אותו

    דיון כללי

  • בעיה | בעיה | בקשת עזרה בקריאה וגיבוי של קושחה | Unisoc UMS9117
    ב בירח לא נגעתי

    @המפתח-לפיתוח כתב:

    (נ.ב למה אתה מתכוון "רק יודע לגרום להם לעסוק גם בדברים שלא בא להם".)

    פיענוח הצפנות וסייבר,
    זה ממש קשה החדשים כי יש להם מסווגים טפשים אבל בישן זה קל יחסית,
    אני ממשיך זה דווקה נחמד הוא טוען שהוא מוצא עוד משהו,

    דיון כללי

  • בעיה | בעיה | בקשת עזרה בקריאה וגיבוי של קושחה | Unisoc UMS9117
    ב בירח לא נגעתי

    @המפתח-לפיתוח עזר משהו או חירטוטים?

    דיון כללי

  • בעיה | בעיה | בקשת עזרה בקריאה וגיבוי של קושחה | Unisoc UMS9117
    ב בירח לא נגעתי

    @המפתח-לפיתוח
    העלתי לסונטה 5.5 עבר ל5 בע"כ אני לא מבין בזה רק יודע לגרום להם לעסוק גם בדברים שלא בא להם..
    זה תשובתו
    ||ספויילר||Hi,

    I pulled your attached zip (brom.bin, fdl1.bin, fdl2.bin) and dug into it. Summary below, plus the steps I took so you can reproduce/extend it.

    1. Verified your data
    SHA256 of all three files matches what you posted (fdl2 = CCFD23E5..., brom = 1C633DF8...).

    2. Cloned spreadtrum_flash and checked brom against known constants

    • Confirmed "DHTB(" string appears at the two offsets you found, and the SHA-256 init constants at 0x574.
    • Searched for an AES S-box table, the RSA public-exponent constant 01 00 01, and your custom magic 7f a7 2c 33 56 6d 6c 32 as a literal anywhere in brom — none found. Matches what you already reported; brom doesn't contain an obvious static crypto table or the magic itself.
    • Also checked t117_fdl/main.c (the open-source FDL1 you're using for the CVE bypass): its data_exec() does zero validation — it just jumps to the loaded address. That's a useful data point for your scenario (c): if the Qualix fdl2 body really is ciphertext, jumping into it as ARM code would just crash/hang the core with no USB response — exactly what you observed. It's independent support for "this is really encrypted," not just an artifact of your CVE path.

    3. Cryptanalysis of the header (the actual new finding)

    Hypothesis: the "signed" header is just the standard DHTB header (magic="DHTB", version=1, data_size at offset 0x30) run through a stream cipher.

    • Computed the expected data_size for each file as file_size - 0x200 - extra, for both possible signature-trailer sizes (sign_type=0 → extra 0x294, sign_type=1 → extra 0x2B4).
    • XORed the two predicted plaintext data_size values together, and separately XORed the two actual ciphertext bytes at offset 0x30–0x33.
    • For sign_type=1: exact match, bit for bit (e0580100 both ways). Confirms sign_type=1, and confirms the keystream encrypting the header is identical between fdl1.bin and fdl2.bin — a classic stream-cipher nonce/IV-reuse bug.
    • This let me fully reconstruct the keystream for the first 0x200 bytes (treating the rest of the header as zero-padding, which checks out — literally every other byte in the 0x200-byte header is identical between the two files). Validated by re-deriving fdl2's header from fdl1's recovered keystream + fdl2's own data_size — reproduces fdl2's actual header byte-for-byte.
    • Checked the keystream itself for red flags (e.g. a stuck/repeating 16-byte block, which would mean ECB with a fixed counter): none found — it's a properly-evolving stream, just reused across files for this one block.

    4. Checked how far the break extends — it doesn't reach the body or signature

    • Compared the sign_head (0x60 bytes) and sign_data (0x254 bytes, including where the RSA public key should sit) trailers between the two files: 594/596 bytes differ, including the key region. So the trailer gets a properly unique IV/keystream per file — no reuse there.
    • Also checked the body (post-header data) for any identical byte runs at matching offsets between fdl1/fdl2: found one 8-byte coincidence out of 75KB — statistical noise, not a pattern. Consistent with your entropy/autocorrelation results.

    Bottom line: there's a real, demonstrable implementation flaw — the 0x200-byte header is encrypted with a keystream that gets reused (likely a fixed/reset IV specifically for the header-encryption step), letting you decrypt the metadata (data_size, sign_type) of any future captured image from this vendor without the key. But the actual firmware body and the signature/public-key trailer are encrypted correctly (unique IV each time) and this technique doesn't touch them — so it's a metadata leak, not a path to running unsigned code by itself.

    Suggested next steps, in order of effort:

    1. If you can get one more signed image from this vendor (different firmware version of the same FDL1/FDL2, or a signed FDL from another Qualix unit/model), check whether the same recovered keystream bytes show up again. If yes, it's a vendor-wide static header key, not session-specific — more broadly useful and worth documenting.
    2. USB sniffing during a real burn (your own plan) is still the most direct way to find out whether WOT transforms the FDL on the wire versus what's on disk — that's the thing most likely to actually unblock execution.
    3. I'd treat CmdDloader.exe/VMProtect as last resort given the cost of static/dynamic analysis against it.

    Here's the recovery code so you can rerun it against new samples:

    This script (recover header keystream) runs the same analysis so he can check new samples himself — and it'll tell him right away if a second sample reuses the same keystream (the key open question).recover_header_keystream.py ||ספויילר||

    דיון כללי

  • תוכנת זיהוי OCR לכתב יד גירסה V2 שידרוגים משמעותיים ביותר!!!
    ב בירח לא נגעתי

    @נפתלי-צבי-יהודה כתב:

    התוכנית היא לא להשאיר חינם,
    אלא לגבות תשלום אחרי שזה יהא מושלם.

    האו כתב שיתכן שיקח על זה תשלום אבל גם יכול להיות מאוד שלא,
    ואם באמת הכיון הוא לתשלום זה באמת משהו אחר,
    אבל עדיין מציע לעשות כברירת מחדל שליחה עם אפשרות לבטל ידנית,
    יש הרבה אנשים שלא באמת איכפת להם,
    בכל אופן זה אנונימי, כך שאין באמת מה לפחד, מה גם שזה נתוני אימון ותו לא.

    עזרה הדדית - מחשבים וטכנולוגיה

  • תוכנת זיהוי OCR לכתב יד גירסה V2 שידרוגים משמעותיים ביותר!!!
    ב בירח לא נגעתי

    @ARISH כתב:

    ניתן ורצוי עדיין לשלוח כתבי יד למייל MENI42525@GMAIL.COM או מהתוכנה עצמה (מומלץ מאד) בלשונית שלח נתוני אימון למפתח.

    לדעתי אתה יכול בהחלט לעשות שכל אימון אישי נשלח אליך ישירות לצורך שיפור התוכנה ובצורה אנונימית,
    מי שלא מתאים לו שלא ישתמש!
    זה המנימום שיכול כל אחד לעזור לפיתוח,
    בפרט שהתוכנית שלך היא כנראה להשאיר אותה חינם.

    עזרה הדדית - מחשבים וטכנולוגיה
  • התחברות

  • אין לך חשבון עדיין? הרשמה

  • התחברו או הירשמו כדי לחפש.
  • פוסט ראשון
    פוסט אחרון
0
  • חוקי הפורום
  • פופולרי
  • לא נפתר
  • משתמשים
  • חיפוש גוגל בפורום
  • צור קשר