File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -2246,17 +2246,14 @@ Process.findModuleByName('linker64').enumerateSymbols().forEach(sym => {
22462246 }
22472247})
22482248
2249- Interceptor .attach (do_dlopen, function () {
2250- var what = this .context [' x0' ].readUtf8String ();
2251- if (what .indexOf (target_lib_name) >= 0 ) {
2249+ Interceptor .attach (do_dlopen, function (args ) {
2250+ if (args[0 ].readUtf8String ().indexOf (target_lib_name) >= 0 ) {
22522251 Interceptor .attach (call_ctor, function () {
2253- Interceptor .detachAll ();
2254- console .log (' loading target' );
22552252 const module = Process .findModuleByName (target_lib_name);
2256-
2257- console .log (module .base );
22582253 base = module .base ;
2259- // DoStuff
2254+ console .log (' loading' , target_lib_name, ' - base @' , base);
2255+
2256+ // DoStuff
22602257 })
22612258 }
22622259})
You can’t perform that action at this time.
0 commit comments