-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathintercept_script.js
30 lines (30 loc) · 1.07 KB
/
intercept_script.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// ! unpin
var TrustManagerImpl = Java.use('com.android.org.conscrypt.TrustManagerImpl');
TrustManagerImpl.verifyChain.implementation = function (untrustedChain, trustAnchorChain, host, clientAuth, ocspData, tlsSctData) {
return untrustedChain;
};
Java.perform(function() {
let okhttp3Pin = Java.use("okhttp3.CertificatePinner$Builder")
okhttp3Pin["add"].implementation = function(pattern, pins) {
return this
}
})
// ! PX247
Java.perform(function(){
let a = Java.use("ov0.a");
a["a"].implementation = function (i12, i13, i14, i15) {
console.log('a is called' + ', ' + 'i12: ' + i12 + ', ' + 'i13: ' + i13 + ', ' + 'i14: ' + i14 + ', ' + 'i15: ' + i15);
let ret = this.a(i12, i13, i14, i15);
console.log('a ret value is ' + ret);
return ret;
};
})
Java.perform(function(){
let Boxing = Java.use("kotlin.coroutines.jvm.internal.Boxing");
Boxing["boxInt"].implementation = function (i12) {
console.log('boxInt is called' + ', ' + 'i12: ' + i12);
let ret = this.boxInt(i12);
console.log('boxInt ret value is ' + ret);
return ret;
};
})