Skip to content

Commit ea8b909

Browse files
authored
Merge pull request #19 from iGio90/patch-1
Squash a double change
2 parents e5468a4 + 653ce0b commit ea8b909

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

README.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff 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
})

0 commit comments

Comments
 (0)