Created
January 6, 2019 13:46
-
-
Save safebuffer/a8b6dc813bd85dc0defc12b059228312 to your computer and use it in GitHub Desktop.
disassemble shellcode with python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from capstone import * | |
shellcode_here = "" | |
def toop(code): | |
md = Cs(CS_ARCH_X86, CS_MODE_32) | |
for i in md.disasm(code, 0x1000): | |
print("0x%x:\t%s\t%s" %(i.address, i.mnemonic, i.op_str)) | |
toop(shellcode_here) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment