REVEN-Axion 2016v1.3.1
incremental_search.py

This shows how to use the built-in incremental search in python.

1 import reven
2 
3 rvn = reven.Project("localhost", 13370)
4 main_trace = rvn.traces()[0]
5 count = main_trace.sequence_count
6 
7 # Create any search object
8 search_criterion = reven.AddressCriterion(0x827085ed)
9 
10 print "Start search"
11 
12 # By default, search starts at the beginning of the trace and stops at the end, by I can override that by specifying
13 # main_trace.point(XXX) as arguments. See the search_point function documentation
14 for result in main_trace.search_point([search_criterion]):
15  print 'Found result at %s' % result