diff options
| author | Ajax <commial@gmail.com> | 2015-11-06 17:28:31 +0100 |
|---|---|---|
| committer | Ajax <commial@gmail.com> | 2015-11-06 17:31:44 +0100 |
| commit | 34948365493c9a65a0264d495d8070e45eae1a38 (patch) | |
| tree | d70dcf2ddb80e53cd41667108dc71b5d2cc123c7 /example/jitter/unpack_upx.py | |
| parent | 20d61892896d3d2e766dc7801d9c9b6154276fd1 (diff) | |
| download | miasm-34948365493c9a65a0264d495d8070e45eae1a38.tar.gz miasm-34948365493c9a65a0264d495d8070e45eae1a38.zip | |
Example/UnpackUPX: call handle_function in GetProcAddress hook (skeleton)
Diffstat (limited to 'example/jitter/unpack_upx.py')
| -rw-r--r-- | example/jitter/unpack_upx.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/example/jitter/unpack_upx.py b/example/jitter/unpack_upx.py index f22dd445..09bd801e 100644 --- a/example/jitter/unpack_upx.py +++ b/example/jitter/unpack_upx.py @@ -27,6 +27,10 @@ def kernel32_GetProcAddress(jitter): # Get the generated address of the library, and store it in memory to dst_ad ad = sb.libs.lib_get_add_func(args.libbase, fname, dst_ad) + # Add a breakpoint in case of a call on the resolved function + # NOTE: never append in UPX, just for skeleton + jitter.handle_function(ad) + jitter.func_ret_stdcall(ret_ad, ad) |