Here is a small example demonstrating how to plug an inspector, add start an execution, pause, and test the current progress.
Here are the involved services:
6 rvn = reven.reven_connection(
"localhost", 13370)
8 if len(rvn.run_get_all()) > 0:
9 sys.stderr.write(
"[!] An analysis has already been done. Let's not start a new one.\n")
14 print reven.inspector_list
17 for arg
in reven.inspector_list[
"stop_execution"].arguments:
21 stopper = reven.stop_execution(
False,
"malloc", 0)
22 rvn.engine_plug_inspector(stopper)
25 rvn.engine_start_execution()
32 progress = rvn.engine_get_progress()
33 while progress.busy
and max > 0:
34 print "Analyzing %s" % progress.text
36 progress = rvn.engine_get_progress()
39 if max < 0
and progress.busy:
41 rvn.engine_pause_execution()
47 rvn.engine_resume_execution()