mirror of
https://github.com/autistic-symposium/sec-pentesting-toolkit.git
synced 2025-05-02 14:56:10 -04:00
some memory exploitation snippets
This commit is contained in:
parent
d987311195
commit
ab05e249d4
19 changed files with 2613 additions and 0 deletions
10
Memory_Exploits/python-codes/eggdis.py
Normal file
10
Memory_Exploits/python-codes/eggdis.py
Normal file
|
@ -0,0 +1,10 @@
|
|||
#! /usr/bin/env python
|
||||
import sys
|
||||
from libdisasm import disasm,disasmbuf
|
||||
dbuf = disasmbuf.DisasmBuffer(sys.stdin.read( ))
|
||||
d=disasm.LinearDisassembler( )
|
||||
d.disassemble(dbuf)
|
||||
for rva,opcode in dbuf.instructions( ):
|
||||
operands = map(lambda x:"%s %-13s" % (x.access( ),"[%s]" % str(x)),
|
||||
opcode.operands( ))
|
||||
print "%08x: %-20s %s" % (rva,str(opcode), "".join(operands))
|
Loading…
Add table
Add a link
Reference in a new issue