Files
[email protected] 70cff7bd24 * Fix install of new ruby api
* Initial working implementation of the ruby remote api
  - For server and client
  - Added examples
* Fix cmd and system for python remote bindings
* Properly close the connections and start listening again
  on the ruby and python bindings for the remote server
* Drop '2>/dev/null' when building python and perl plugins
* Fix 'pz' command when block doesnt ends with '\0' (only happens
  when block > filesize. Current implementation is slower but more secure
2009-06-16 23:56:28 +00:00

46 lines
666 B
Python

"""
Example radare python script
pancake <youterm.com>
"""
import string
from radare.api import *
seek(0x8048000)
eval_set("asm.lines", "false")
eval_set("asm.comments", "false")
#eval_set("asm.bytes", "false")
flag_space_set("sections")
# enumerate flags
for q in flag_list():
print "0x%08x: %s"%(q["addr"], q["name"])
print flag_get("entrypoint")
print hex(3)
write("90 90 90")
print hex(3)
print dis(1)
print asm("mov eax,33")
op = analyze_opcode()
print "opcode string: %s"%op["opcode"]
print "opcode size: %d"%op["size"]
dbg_step(1)
#dbg_bp_set(0x8049412)
#dbg_continue()
# check if we're there
#eip = dbg_register_get("eip")
#print eip
quit()