شعار Vm And Bytecode Reverse

Vm And Bytecode Reverse

المجتمع
ptn1411
vm-and-bytecode-reverse

أجرِ هندسة عكسية للآلات الافتراضية المخصصة وشفرة البايت الاحتكارية (حلقات الموزّع، وجداول الرموز التشغيلية، وأدوات حماية الآلات الافتراضية، وشفرة .pyc/CIL/JVM/Lua). فعّلها عندما يكون الملف الثنائي مجرد غلاف أصلي صغير حول مفسّر.

Add to TypingMind

نظرة عامة

الناشرptn1411
المستودعskill
اسم المهارةvm-and-bytecode-reverse
النجوم
275
التفريعات
133
الملفات المرفقة
3
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • الملفات المرفقة: 3

    نصوص برمجية وقوالب ومراجع يمكن للنموذج قراءتها أثناء عمله. الملفات للقراءة فقط ولا تُنفّذ أبدًا.

  • مفتوحة المصدر

    نشرها ptn1411 على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Vm And Bytecode Reverse في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/ptn1411/skill/tree/main/vm-and-bytecode-reverse
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ptn1411/skill.git /tmp/skill
mkdir -p .claude/skills
cp -r /tmp/skill/vm-and-bytecode-reverse .claude/skills/vm-and-bytecode-reverse
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Vm And Bytecode Reverse في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج مهارة Vm And Bytecode Reverse تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Vm And Bytecode Reverse بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تستهلك تعليمات المهارة أي توكنات ما دامت المهارة غير مستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

VM & Bytecode Reverse Engineering

Upstream reference: yaklang/hack-skills/vm-and-bytecode-reverse — facts/tables distilled from ctf-wiki. Final user-facing summary in Vietnamese.

0. Authorization & routing

Operates under MASTER_POLICY.md §1-§2.

Sibling skillWhen
binary-identifierFirst — confirm whether you are looking at native code or VM-driven
anti-debugging-techniquesMany commercial VMs ship anti-debug inside the dispatcher
symbolic-execution-toolsSymbolically run handlers to recover constraints
nuitka-decryptorSpecifically for Nuitka-compiled Python (XOR+B64 layer over .pyd)
javascript-deobfuscatorCustom JS VMs (jsvmp, obfuscator.io)

1. Recognition signatures (in IDA / Ghidra / Binary Ninja)

Pattern in disassemblyDispatcher styleFirst move
while(1) { switch(byte[pc++]) { case 0: ... } }switch-basedEnumerate cases → opcode table
Indirect call via [table + idx*8]table-based (jump table)Dump the table, label handlers
Long if/else chain on opif-chainSame as switch
push/pop dominate, single operand streamstack VMMap push/pop/arith opcodes first
reg[k] = … arithmetic on a small arrayregister VMDetermine reg count + width
pc = code[pc]; goto *handlers[op]threaded codeOne handler per opcode, ends with goto-next

Signature of a VM in any binary: a tight loop containing one fetch (opcode = mem[pc++]), one decode (table or switch), and one set of small handlers reading from and writing to the same context structure.

2. Reconstructing the ISA

StepAction
1Locate the dispatcher loop — it dominates execution time, easy to spot in a profiler / coverage trace
2Identify the VM context: bytecode pointer, PC, stack/regs, memory area. Often a single struct
3Walk every case/handler. Annotate operand widths (pc++ once = 1 byte operand, four times = 32-bit)
4Build an opcode table: { opcode → mnemonic, operand_layout, semantics }
5Write a disassembler that consumes the bytecode blob and prints mnemonics
6(Optional) Write a lifter that emits semantically equivalent C / Python / LLVM IR per handler
7(Optional) Re-host: emulate the VM in Python so you can fuzz, brute, symbolize

3. Disassembler skeleton (Python, stack-VM example)

python
# Generic single-byte-opcode + variable operand
OPCODES = {
    0x00: ('nop',  0),
    0x01: ('push', 4),     # push imm32
    0x02: ('pop',  0),
    0x03: ('add',  0),
    0x04: ('sub',  0),
    0x05: ('jz',   2),     # short branch
    0x06: ('call', 2),
    0xFF: ('halt', 0),
}

def disasm(blob: bytes, base: int = 0) -> list[str]:
    pc, out = 0, []
    while pc < len(blob):
        op = blob[pc]
        mnem, oplen = OPCODES.get(op, (f'db {op:#04x}', 0))
        operand = int.from_bytes(blob[pc+1:pc+1+oplen], 'little') if oplen else None
        out.append(f'{base+pc:08x}: {mnem}' + (f' {operand:#x}' if operand is not None else ''))
        pc += 1 + oplen
    return out

4. Common interpreter targets and their tooling

TargetFormatDecompiler / disassemblerNotes
CPython.pycdecompile3, uncompyle6 (≤3.8), pycdc (3.9+)Magic header bytes encode version
PyInstallerbundled .pycpyinstxtractor then decompile3/pycdcstruct.tuple header strip
Nuitkanative .pyd/.exenone direct — use nuitka-decryptor for XOR-encrypted variantsCompiled to C, not classical bytecode
.NETPE/CILdnSpyEx, ilspy, dotPeekStrong decompilation; watch for ConfuserEx
JVM.class/.jarcfr, procyon, jadx-cliStrings often obfuscated, control flow flattened
Android Dexclasses.dexjadx, apktoolSmali for surgical patches
Lua 5.x.luacluadec, unluacHeader magic \x1bLua
WASM.wasmwabt (wasm2wat), wasm-decompileStack-VM with structured control flow
V8 snapshot.bin/.jscV8 ssa decompiler (limited)Largely opaque; usually reverse via tracing
EVM (Ethereum)bytecode hexpanoramix, heimdall-rs, ethervm.ioStack VM, 256-bit words
Custom CTF VMproprietarywrite your own (§3)Most common

5. VM protectors (commercial)

ProtectorWhat it doesApproach
VMProtectLifts hot blocks into a stack VM with randomized handler set per buildMatch handler patterns across builds; VMPDump / vmp-decompiler recover handlers; trace with Intel PIN
ThemidaSeveral VM "engines"; mixes with code mutation and anti-debugTools fragile per-version; usually trace + handler clustering
Code VirtualizerOlder Oreans VMSimilar approach to Themida
VMware ThinApp / IonCube / SourceGuardianDomain-specific VMs around PHP/PythonLook for vendor-specific decoders first

Heuristic: VM protectors push lots of context onto the stack at function entry (vctx), then the rest of the function is one giant unrolled dispatcher. Handler count is the fingerprint — collect 20-30 handlers and cluster by operand-pattern to map them to the abstract VM ISA.

6. Maze / interpreter-style CTF tricks

  • 2D grid + step opcodes → extract the grid, run BFS/DFS for the shortest legal path.
  • "Brainfuck-like" tape VMs: the input is the program; build a meta-disassembler around the tape opcodes.
  • Crackme that hashes input through a VM: re-implement the VM in Python, then either brute-force per-byte if state is byte-local, or feed it to angr (see symbolic-execution-tools).

7. Methodology

  1. Confirm it really is a VM (single loop dominates, opcode-shaped switch/table).
  2. Extract the bytecode blob (often a .rodata array, sometimes encrypted — decrypt first).
  3. Walk every handler; build the opcode dictionary.
  4. Implement a disassembler; sanity-check by disassembling a known block.
  5. (If needed) implement an emulator for fuzzing/symbolic execution.
  6. Hand off the recovered semantics to binary-patcher (patch handler) or symbolic-execution-tools (solve constraints).

8. Final report (Vietnamese)

🧠 VM/Bytecode RE hoàn tất:
  🏛️ Kiến trúc VM   : <stack | register | threaded | maze>
  📜 Số opcode     : <COUNT>
  📚 Bảng opcode   : opcodes.json (mnemonic, operand_layout, semantics)
  🛠️ Disassembler  : disasm.py — verify trên block test
  🧪 Emulator      : (tùy chọn) emu.py
  ▶ Tiếp           : symbolic-execution-tools (giải input) hoặc binary-patcher (vá handler)

الملفات المرفقة

يقرأ النموذج هذه الملفات عند الحاجة ما دامت المهارة محمّلة. وهي متاحة للقراءة ولا تُنفّذ أبدًا.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Vm And Bytecode Reverse؟

أجرِ هندسة عكسية للآلات الافتراضية المخصصة وشفرة البايت الاحتكارية (حلقات الموزّع، وجداول الرموز التشغيلية، وأدوات حماية الآلات الافتراضية، وشفرة .pyc/CIL/JVM/Lua). فعّلها عندما يكون الملف الثنائي مجرد غلاف أصلي صغير حول مفسّر.

لماذا تستخدم Vm And Bytecode Reverse على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Vm And Bytecode Reverse عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Vm And Bytecode Reverse في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/ptn1411/skill/tree/main/vm-and-bytecode-reverse. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Vm And Bytecode Reverse؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Vm And Bytecode Reverse؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Vm And Bytecode Reverse معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Vm And Bytecode Reverse مجانية؟

نشرها ptn1411 على GitHub. راجع المستودع للاطلاع على شروط الترخيص. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا الإخبارية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇