Merge pull request #19 from iGio90/patch-1

Squash a double change
This commit is contained in:
iddoeldor 2020-12-24 18:02:03 +02:00 committed by GitHub
commit ea8b909747
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2246,17 +2246,14 @@ Process.findModuleByName('linker64').enumerateSymbols().forEach(sym => {
}
})
Interceptor.attach(do_dlopen, function () {
var what = this.context['x0'].readUtf8String();
if (what.indexOf(target_lib_name) >= 0) {
Interceptor.attach(do_dlopen, function (args) {
if (args[0].readUtf8String().indexOf(target_lib_name) >= 0) {
Interceptor.attach(call_ctor, function () {
Interceptor.detachAll();
console.log('loading target');
const module = Process.findModuleByName(target_lib_name);
console.log(module.base);
base = module.base;
// DoStuff
console.log('loading', target_lib_name, '- base @', base);
// DoStuff
})
}
})