-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
51 lines (47 loc) · 2.02 KB
/
index.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
function bytesToHex(byteArray) { return Array.from(byteArray, byte => ('0' + (byte & 0xFF).toString(16)).slice(-2)).join('')
};
Java.perform(function () {
// TrustManagerImpl SSL Pinning Bypass
const TrustManagerImplClass = Java.use('com.android.org.conscrypt.TrustManagerImpl');
let arrayListClass = Java.use("java.util.ArrayList");
TrustManagerImplClass.checkTrustedRecursive.implementation = function (certs, bArr, bArr2, str, z, arrayList, arrayList2, set) {
console.log('[+] SSL Pining Byapss');
return arrayListClass.$new();
};
TrustManagerImplClass.verifyChain.implementation = function (list, list2, str, z, bArr, bArr2) {
console.log('[+] SSL Pining Byapss');
return untrustedChain;
};
// Emulator Bypass
const deviceDClass = Java.use('Oe.d');
deviceDClass.a.implementation = function () {
console.log('[+] Emulator Bypass');
return false;
};
deviceDClass.b.implementation = function () {
console.log('[+] Emulator Bypass');
return false;
};
deviceDClass.c.implementation = function () {
console.log('[+] Emulator Bypass');
return false;
};
// Offline payment hook
const bClass = Java.use('Hv.b');
bClass.a.implementation = function (secretKey, j, str, str2, j2, str3, algorithm) {
const result = this.a(secretKey, j, str, str2, j2, str3, algorithm);
console.log(`[+] Offline Payment Hook \nsecretKey ::${secretKey}\ni2 ::${j}\bstr ::${str}
str2 ::${str2}
j2 ::${j2}
str3 ::${str3}
algorithm ::${algorithm}`);
return result;
};
// hash hook
const dClass = Java.use('Z7.d');
dClass.c.overload('java.lang.String', 'java.lang.String').implementation = function (arg1, arg2) {
const result = this.c(arg1, arg2);
console.log(`[+] HMAC Hook\nKey ::${arg1}\nMessage ::${arg2}\nHashed ::${bytesToHex(result)}`);
return result;
};
});