mirror of
https://github.com/httptoolkit/frida-interception-and-unpinning.git
synced 2026-10-09 01:12:26 +02:00
Add patch for Cordova/PhoneGap Advanced HTTP Plugin
This commit is contained in:
@@ -297,6 +297,23 @@ const PINNING_FIXES = {
|
||||
}
|
||||
],
|
||||
|
||||
// --- Cordova / PhoneGap Advanced HTTP Plugin (https://github.com/silkimen/cordova-plugin-advanced-http)
|
||||
|
||||
// Modern version:
|
||||
'com.silkimen.cordovahttp.CordovaServerTrust': [
|
||||
{
|
||||
methodName: '$init',
|
||||
replacement: () => function () {
|
||||
// Ignore any attempts to set trust to 'pinned'. Default settings will trust
|
||||
// our cert because of the separate system-certificate injection step.
|
||||
if (arguments[0] === 'pinned') {
|
||||
arguments[0] = 'default';
|
||||
}
|
||||
return this.$init(...arguments);
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
// --- Apache Cordova WebViewClient
|
||||
|
||||
'org.apache.cordova.CordovaWebViewClient': [
|
||||
|
||||
Reference in New Issue
Block a user