diff options
| author | serpilliere <devnull@localhost> | 2011-08-09 15:13:55 +0200 |
|---|---|---|
| committer | serpilliere <devnull@localhost> | 2011-08-09 15:13:55 +0200 |
| commit | aba3f7b9b637ebb1ce0463053e9185d6c0fca1fc (patch) | |
| tree | eb033395f1914e2b982aba4ad233a52b7b3b2dcd /example | |
| parent | 9aa45f265e33cb7397c78470b7d1680f192c92df (diff) | |
| download | miasm-aba3f7b9b637ebb1ce0463053e9185d6c0fca1fc.tar.gz miasm-aba3f7b9b637ebb1ce0463053e9185d6c0fca1fc.zip | |
fix emulation on 64 bit
Diffstat (limited to 'example')
| -rw-r--r-- | example/unpack_upx.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/example/unpack_upx.py b/example/unpack_upx.py index 890f7fc2..f3d941b5 100644 --- a/example/unpack_upx.py +++ b/example/unpack_upx.py @@ -254,7 +254,7 @@ print "base imp", hex(offset_imp) print 'decomp_buf_ad_out', hex(decomp_buf_ad_out) new_dll = [] -offset_imp = offset_imp - decomp_buf_ad_out - struct.unpack('L', e.virt[ad_tmp:ad_tmp+4])[0] +offset_imp = offset_imp - decomp_buf_ad_out - struct.unpack('I', e.virt[ad_tmp:ad_tmp+4])[0] print "read ofset imp", hex(offset_imp) #XXXXX |