keystone使用First Post: 2023-03-28Last Update: 2023-03-28 编译x86的shellcodepy代码: 12345678import keystoneshellcode = 'jmp 0x15'ks = keystone.Ks(keystone.KS_ARCH_X86,keystone.KS_MODE_32)encoding,count = ks.asm(shellcode)for i in encoding: print(hex(i)) 简单理解: Ks函数,加载一个反汇编引擎 asm函数,将一段shellcode转化为二进制 ∧≡