דילוג לתוכן
New

DeepSeek V4.1 Flash free for 7 days: 10M tokens a day after a top-up of $10 or more. Until Nov 30.

How it works
aeondave/python-reverser-patternsהנדסה לאחור ו-fuzzing

python-reverser-patterns

⁨Reverse binaries and Python artifacts with Python: parse ELF/PE, disassemble with pwntools/capstone, instrument with Frida, recover .pyc and PyInstaller payloads. Use when analyzing malware, packed Python, stripped binaries, or runtime hooks — not for CPython language style (python-patterns).⁩

v2026.11.13-21cd5683 התקנות⁦+3⁩ ב-7 ימים39 כוכביםMITסונכרן לפני 11 שעות

התקנה

עדיין אין לכם את ה-CLI של NotHoly? התקינו אותו קודם.

$ curl -fsSL https://notholy.com/install.sh | sh
$ notholy skills install aeondave/python-reverser-patterns

נכתב אל ⁦~/.notholy/skills⁩ אחרי בדיקת החתימה וה-SHA-256.

חתימהחתום, ed25519
cT8yc9UYUJ…mWeLn1Cw==ה-CLI בודק את ה-SHA-256 ואת החתימה לפני שהוא כותב קובץ כלשהו.
חבילה0dee733e…9c0b4dda
0dee733e054c…1cbe9c0b4dda8 קבצים · ⁦11.7 KB⁩
סריקהנמוךממצא אחד
  • קישורים לדומיינים חיצוניים
לסריקה המלאה
מקורgithub.com/AeonDave/malskill/tree/main/coding/python-reverser-patterns@21cd568

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

Hands-on reversing with Python: ELF/PE parsing, strings/imports/entropy, disassembly, Frida, and Python bytecode (.pyc / PyInstaller). Language idioms belong in python-patterns.

When to activate

  • Mapping why an ELF/PE fails, what malware does, or how a stripped binary is laid out.
  • Extracting strings, imports, entropy regions, entrypoints, section flags.
  • Instrumenting runtime with Frida (host Python, hooks in GumJS).
  • Recovering logic from .pyc, __pycache__, or a PyInstaller/py2exe-style bundle.
  • Diffing two binary versions (hardening, packing, payload change).

Core principles

  • Triage before disassembly: strings, imports, entropy, then hotspots.
  • Match interpreter to bytecode: marshal/dis only on the same CPython version as the .pyc; otherwise xdis/pydisasm.
  • Do not execute recovered code on the analysis host; dis is read-only, exec is not.
  • Frida injects GumJS, not Python. Host API: attach/spawn/create_script.
  • Entropy flags packing: high-entropy blobs are compressed/encrypted until proven otherwise.

Outcome expectations

  • File type, arch, and layout (sections, entry, imports) are known.
  • Suspicious APIs and high-entropy regions are listed with offsets.
  • .pyc payloads are disassembled with a version-matched tool; decompile is opportunistic.
  • Frida hooks attach (or spawn) without using removed Frida 16 static Module.* APIs.
  1. Triage: ELF / PE / Mach-O / .pyc / PyInstaller overlay. Packed Python → references/pyc-bytecode.md first.
  2. Headers: parse ELF/PE (or LIEF when you will rewrite). Load references/binary-formats.md.
  3. Sections / imports / strings / entropy: references/static-analysis.md, references/pwntools-reference.md.
  4. Disassemble hotspots: references/capstone.md (Capstone) or ELF.disasm (returns a string).
  5. Runtime: Frida when static is insufficient — references/frida-basics.md. Spawn if the interesting path is before a stable attach.
  6. Custom scripts: IAT dump, entropy map, section diff — references/custom-tooling.md.

Pyarmor, custom opcode maps, and Nuitka-as-native: keep the Python-API path here; load reversing-technique languages.md for those packer-specific recoveries.

Quick review checklist

  • Magic/arch parsed; file offsets vs VAs are not mixed.
  • Imports enumerated; ordinal-only PE imports are not assumed to have names.
  • Strings and entropy scanned before wide disassembly.
  • .pyc magic matches the interpreter (or pydisasm was used).
  • Frida scripts use Process.getModuleByName / Module.getGlobalExportByName (Frida 17+).

Anti-patterns

  • Blind Capstone over the whole file (alignment, data-in-code, packing).
  • marshal.loads of a .pyc including the 16-byte header, or on the wrong Python version.
  • Treating uncompyle6 as valid past 3.8, or pycdc as guaranteed on 3.13–3.14.
  • Module.findExportByName / static Module.getExportByName (removed in Frida 17).
  • Interceptor.replace with onEnter/onLeave (that is attach; replace takes a NativeCallback).

Resources

Load on demand:

  • references/binary-formats.md — load when parsing or patching ELF/PE/Mach-O headers and sections
  • references/pwntools-reference.md — load when using ELF, search, read, disasm, context.binary
  • references/static-analysis.md — load for strings, imports, entropy, suspicious APIs
  • references/capstone.md — load when decoding instructions or scanning gadgets
  • references/frida-basics.md — load when attaching/spawning and hooking (Frida 17+ JS API)
  • references/pyc-bytecode.md — load for .pyc, marshal/dis, xdis, PyInstaller unpack
  • references/custom-tooling.md — load when writing a reusable IAT/entropy/diff script

הקבצים בגרסה הזו

הרשאות

הרשאההוצהרנמצא בסריקה
קורא קבציםכןכן
כותב קבציםכןכן
מריץ פקודות shellכןכן
משתמש ברשתכןכן
משתמש במחבריםלאלא
שולט בדפדפןלאלא

ממצאי הסריקה

נבדק ב-13 בנוב׳ 2026

  1. מידעקישור · קישורים לדומיינים חיצוניים

סריקה נקייה מורידה את הסיכון, אבל לא מוכיחה שהחבילה בטוחה. כדאי לקרוא מה מתקינים.

גרסהפורסמהCommitSHA-256חתימהשינוי בהרשאות
v2026.11.13-21cd56813 בנוב׳ 202621cd5680dee733eחתומה–

שאלו כל מה שהסקופ מאפשר.

יוצרים חשבון, מוסיפים קרדיטים ושואלים את השאלה הראשונה בצ׳אט או בטרמינל.

  1. 1/3

    יצירת חשבון

    פרטי או חברה. אפשר לעבור לחשבון חברה אחר כך בלי לאבד יתרה או מפתחות.

    פרטיחברה
  2. 2/3

    הוספת קרדיטים

    בכרטיס אשראי. תשלום לפי טוקן, בלי מנוי.

    $5.00טעינה מינימלית
  3. 3/3

    שאלה ראשונה

    בצ׳אט, או להתקין את ה-CLI ולהריץ notholy login בטרמינל.

    $ notholy login