2 845
🔴 #عاجل || انقلاب عسكري في كوريا الجنوبيه
وسيطره الجيش على البلاد بعد قرار العمل بلاحكام العرفيه و تعطيل الدستور
04 دسامبر 2024, 03:25
08 آوریل 2025, ~11:58
import capstone
p = input("name : ")
with open(p, "rb") as f:
b = f.read()
m = capstone.Cs(capstone.CS_ARCH_X86, capstone.CS_MODE_32)
r = ""
for i in m.disasm(b, 0x1000):
r += f"0x{i.address:x}:\t{i.mnemonic}\t{i.op_str}\n"
with open("o.Assembly", "w") as o:
o.write(r)
الشرح من: @Disassemblypy
Hello
The Capstone library is a powerful library for analyzing binary code. It is used in reverse engineering and program analysis. Its main task is to disassemble the code, such as ELF, SO, or any other type of binary file, and turn it into assembly instructions that are easy to understand and analyze.
This library supports different architectures such as:
x86
ARM
MIPS
PowerPC and others
The Capstone library can be used on x86, ARM, and MIPS codes, and it has powerful capabilities to display precise details about each execution process inside the binary code.
Download the library
pip install capstone
After that, you can analyze any binary file and convert it to Assembly easily, like this example
import capstone
p = input("name :")
with open(p, "rb") as f:
b = f.read()
m = capstone.Cs(capstone.CS_ARCH_X86, capstone.CS_MODE_32)
r = ""
for i in m.disasm(b, 0x1000):
r += f"0x{i.address:x}:\t{i.mnemonic}\t{i.op_str}\n"
with open("o.Assembly", "w") as o:
o.write(r)
Explanation from: @Disassemblypy
ما از کوکیها برای بهبود تجربه مرور شما استفاده میکنیم.
با کلیک روی «همگی را قبول میکنم»، با سیاست استفاده از کوکیها موافقت میکنید.