about summary refs log tree commit diff stats
path: root/example
diff options
context:
space:
mode:
Diffstat (limited to 'example')
-rw-r--r--example/disasm/dis_binary.py2
-rw-r--r--example/jitter/memory_breakpoint.py8
-rw-r--r--example/jitter/unpack_generic.py2
-rw-r--r--example/symbol_exec/symbol_exec.py2
4 files changed, 7 insertions, 7 deletions
diff --git a/example/disasm/dis_binary.py b/example/disasm/dis_binary.py
index af140f28..cf927adb 100644
--- a/example/disasm/dis_binary.py
+++ b/example/disasm/dis_binary.py
@@ -8,7 +8,7 @@ fdesc = open(sys.argv[1], 'rb')
 loc_db = LocationDB()
 
 # The Container will provide a *bin_stream*, bytes source for the disasm engine
-# It will prodive a view from a PE or an ELF.
+# It will provide a view from a PE or an ELF.
 cont = Container.from_stream(fdesc, loc_db)
 
 # The Machine, instantiated with the detected architecture, will provide tools
diff --git a/example/jitter/memory_breakpoint.py b/example/jitter/memory_breakpoint.py
index 900b1621..291682a4 100644
--- a/example/jitter/memory_breakpoint.py
+++ b/example/jitter/memory_breakpoint.py
@@ -34,15 +34,15 @@ sb.jitter.vm.add_memory_breakpoint(address, size, access_type)
 def memory_breakpoint_handler(jitter):
     memory_read = jitter.vm.get_memory_read()
     if len(memory_read) > 0:
-        print("Read at instruction 0x%s:" % jitter.pc)
+        print("Read at instruction 0x%x:" % jitter.pc)
         for start_address, end_address in memory_read:
-            print("- from %s to %s" % (hex(start_address), hex(end_address)))
+            print("- from 0x%x to 0x%x" % (start_address, end_address))
 
     memory_write = jitter.vm.get_memory_write()
     if len(memory_write) > 0:
-        print("Write at instruction 0x%s:" % jitter.pc)
+        print("Write at instruction 0x%x:" % jitter.pc)
         for start_address, end_address in memory_write:
-            print("- from %s to %s" % (hex(start_address), hex(end_address)))
+            print("- from 0x%x to 0x%x" % (start_address, end_address))
 
     # Cleanup
     jitter.vm.set_exception(jitter.vm.get_exception() ^ EXCEPT_BREAKPOINT_MEMORY)
diff --git a/example/jitter/unpack_generic.py b/example/jitter/unpack_generic.py
index 3329d2a9..e389a4b5 100644
--- a/example/jitter/unpack_generic.py
+++ b/example/jitter/unpack_generic.py
@@ -35,7 +35,7 @@ def stop(jitter):
 if options.oep:
     # Set callbacks
     sb.jitter.add_breakpoint(int(options.oep, 0), stop)
-    
+
 # Run until an error is encountered - IT IS UNLIKELY THE ORIGINAL ENTRY POINT
 try:
     sb.run()
diff --git a/example/symbol_exec/symbol_exec.py b/example/symbol_exec/symbol_exec.py
index 1d3f4576..f11f095a 100644
--- a/example/symbol_exec/symbol_exec.py
+++ b/example/symbol_exec/symbol_exec.py
@@ -54,5 +54,5 @@ cur_addr = symb.run_at(ircfg, addr, step=options.steps)
 # Modified elements
 print('Modified registers:')
 symb.dump(mems=False)
-print('Modified memory (should be empty):')
+print('Modified memory:')
 symb.dump(ids=False)