about summary refs log tree commit diff stats
path: root/example
diff options
context:
space:
mode:
authorserpilliere <devnull@localhost>2011-09-11 20:03:52 +0200
committerserpilliere <devnull@localhost>2011-09-11 20:03:52 +0200
commitef6c88fd81249f14ec53e197a50fa8cb4a564419 (patch)
treead3a1a7890a89537f1a3106e9665670fd5c3448c /example
parent0dfb28f5681298c7daebeb8743567cf6e3d46018 (diff)
downloadmiasm-ef6c88fd81249f14ec53e197a50fa8cb4a564419.tar.gz
miasm-ef6c88fd81249f14ec53e197a50fa8cb4a564419.zip
add eflags accessors to python interface
Diffstat (limited to 'example')
-rw-r--r--example/extract_pe_ressources.py2
-rw-r--r--example/unpack_upx.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/example/extract_pe_ressources.py b/example/extract_pe_ressources.py
index c21f999c..71d8e226 100644
--- a/example/extract_pe_ressources.py
+++ b/example/extract_pe_ressources.py
@@ -15,7 +15,7 @@ def extract_res(res, name_o = "", num = 0, lvl=-1):
         num += 1
 
         if x.name_s:
-            name = name_o[:]+repr(x.name_s)
+            name = name_o[:]+repr(x.name_s.value[::2])
         else:
             name = name_o[:]
 
diff --git a/example/unpack_upx.py b/example/unpack_upx.py
index cf1e2357..e7ea4b77 100644
--- a/example/unpack_upx.py
+++ b/example/unpack_upx.py
@@ -273,7 +273,7 @@ for s in e.SHList:
     st[s.offset] = e.virt[ad1:ad2]

 e.content = str(st)

 

-e.DirRes = pe_init.DirRes(e)

+e.DirRes = pe.DirRes(e)

 #e.DirImport.impdesc = None

 print repr(e.DirImport.impdesc)

 new_dll = runtime_dll.gen_new_lib(e)