about summary refs log tree commit diff stats
path: root/example/jitter/unpack_upx.py
diff options
context:
space:
mode:
authorPierre Lalet <pierre@droids-corp.org>2019-11-12 20:46:46 +0000
committerGitHub <noreply@github.com>2019-11-12 20:46:46 +0000
commitb265c8af0cee47c039bad11153d1eb9ba8383f71 (patch)
treea392717fba9902180ef02baf0691a6d060f4ae97 /example/jitter/unpack_upx.py
parent83e54bd2de945a36ab5ccd4cc5b94817d7cb0112 (diff)
parentc79fb842dd7b93d834952767d4abe7dd8b8a8061 (diff)
downloadmiasm-b265c8af0cee47c039bad11153d1eb9ba8383f71.tar.gz
miasm-b265c8af0cee47c039bad11153d1eb9ba8383f71.zip
Merge pull request #1088 from serpilliere/path_are_str
Path are str
Diffstat (limited to 'example/jitter/unpack_upx.py')
-rw-r--r--example/jitter/unpack_upx.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/example/jitter/unpack_upx.py b/example/jitter/unpack_upx.py
index 3b8125f4..baa6f0bb 100644
--- a/example/jitter/unpack_upx.py
+++ b/example/jitter/unpack_upx.py
@@ -5,6 +5,8 @@ from pdb import pm
 from miasm.loader import pe
 from miasm.analysis.sandbox import Sandbox_Win_x86_32
 
+from miasm.os_dep.common import get_win_str_a
+
 # User defined methods
 
 def kernel32_GetProcAddress(jitter):
@@ -17,7 +19,7 @@ def kernel32_GetProcAddress(jitter):
 
     # Handle ordinal imports
     fname = (args.fname if args.fname < 0x10000
-             else jitter.get_str_ansi(args.fname))
+             else get_win_str_a(jitter, args.fname))
     logging.error(fname)
 
     # Get the generated address of the library, and store it in memory to