fix c'tor hook

This commit is contained in:
iddoeldor 2018-08-29 19:40:13 +03:00 committed by GitHub
parent a02315b716
commit 1116775db9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -204,7 +204,7 @@ Interceptor.attach(Module.findExportByName('libsqlite.so', 'sqlite3_prepare16_v2
```javascript
Java.use('java.lang.StringBuilder').$init.overload('java.lang.String').implementation = function(stringArgument) {
console.log("c'tor");
return this(stringArgument);
return this.$init(stringArgument);
};
```
#### Hook JNI by address