about summary refs log tree commit diff stats
path: root/example/jitter
diff options
context:
space:
mode:
Diffstat (limited to 'example/jitter')
-rw-r--r--example/jitter/sandbox_call.py4
-rw-r--r--example/jitter/unpack_upx.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/example/jitter/sandbox_call.py b/example/jitter/sandbox_call.py
index 7a9fd946..5fc50a9c 100644
--- a/example/jitter/sandbox_call.py
+++ b/example/jitter/sandbox_call.py
@@ -15,8 +15,8 @@ sb = Sandbox_Linux_arml(options.filename, options, globals())
 
 with open(options.filename, "rb") as fdesc:
     cont = Container.from_stream(fdesc)
-    loc_key = cont.symbol_pool.getby_name("md5_starts")
-    addr_to_call = cont.symbol_pool.loc_key_to_offset(loc_key)
+    loc_key = cont.loc_db.getby_name("md5_starts")
+    addr_to_call = cont.loc_db.loc_key_to_offset(loc_key)
 
 # Calling md5_starts(malloc(0x64))
 addr = linobjs.heap.alloc(sb.jitter, 0x64)
diff --git a/example/jitter/unpack_upx.py b/example/jitter/unpack_upx.py
index cd0818ec..6b7b4f50 100644
--- a/example/jitter/unpack_upx.py
+++ b/example/jitter/unpack_upx.py
@@ -60,7 +60,7 @@ assert(len(leaves) == 1)
 l = leaves.pop()
 logging.info(l)
 
-end_offset = mdis.symbol_pool.loc_key_to_offset(l)
+end_offset = mdis.loc_db.loc_key_to_offset(l)
 
 logging.info('final offset')
 logging.info(hex(end_offset))