Skip to content

Commit

Permalink
fix: set DEBUG_MODE variable and add Conscrypt bypass
Browse files Browse the repository at this point in the history
  • Loading branch information
digiz3d committed Dec 24, 2024
1 parent ca44ede commit a5557f6
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion android_unpinner/scripts/httptoolkit-unpinner.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
*
*************************************************************************************************/

const DEBUG_MODE = false;

function buildX509CertificateFromBytes(certBytes) {
const ByteArrayInputStream = Java.use('java.io.ByteArrayInputStream');
const CertFactory = Java.use('java.security.cert.CertificateFactory');
Expand Down Expand Up @@ -430,8 +432,26 @@ const PINNING_FIXES = {
};
}
}
],

'com.android.org.conscrypt.TrustManagerImpl': [
{
methodName: 'checkTrustedRecursive',
replacement: () => {
const arrayList = Java.use("java.util.ArrayList")
return function (
certs,
host,
clientAuth,
untrustedChain,
trustAnchorChain,
used
) {
return arrayList.$new();
}
}
}
]

};

const getJavaClassIfExists = (clsName) => {
Expand Down

0 comments on commit a5557f6

Please # to comment.