Example #1
0
p.setlabel(0x06b9, "R15 = (R13++)")
p.setlabel(0x06be, "(R13++) = R15")
p.setlabel(0x06c5, "R15 = -R15")

#######################################################################
# Chew through what we got

while p.run():
    pass

#######################################################################
#

import explore

explore.brute_force(p, cpu, 0x000, 0x800)

#######################################################################
#

cpu.to_tree()

#######################################################################
# Build code graph
if True:
    p.g = topology.topology(p.t)
    p.g.segment()
    p.g.setlabels(p)
    p.g.dump_dot()
    p.g.xxx(p)
Example #2
0
p.setlabel(0x06b9, "R15 = (R13++)")
p.setlabel(0x06be, "(R13++) = R15")
p.setlabel(0x06c5, "R15 = -R15")

#######################################################################
# Chew through what we got

while p.run():
	pass

#######################################################################
#

import explore

explore.brute_force(p, cpu, 0x000, 0x800)

#######################################################################
#

cpu.to_tree()

#######################################################################
# Build code graph
if True:
	p.g = topology.topology(p.t)
	p.g.segment()
	p.g.setlabels(p)
	p.g.dump_dot()
	p.g.xxx(p)
Example #3
0
if True:
	for i in (
	    0xff93, 0xff96, 0xff99,
	    0xea33, 0xea36, 0xea39,
	    0xeab4,
	):
		x = cpu.disass(i)
		x.lcmt("<===== BRUTE FORCE DISCOVERY")

while p.run():
	pass

import explore
#import cProfile
#cProfile.run('explore.brute_force(p, cpu, 0xe000, 0x10000)')
explore.brute_force(p, cpu, 0xe000, 0x10000)

while p.run():
	pass

cpu.to_tree()

#######################################################################


x = p.t.find(0xe14d, "ins")
x.blockcmt += """-
Read cmd from host

"""