Skip to content

Commit 2aca269

Browse files
authored
Update SSLUnpinning.js
1 parent 9f34cf2 commit 2aca269

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

SSLUnpinning.js

+5-8
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ function disableFlutterPinningv2() {
1717
};
1818
var TLSValidationDisabled = false;
1919
if (Java.available) {
20-
console.log("[+] Java environment detected");
20+
console.log("[+] Java Environment Detected");
2121
Java.perform(hookSystemLoadLibrary);
2222
} else if (ObjC.available) {
23-
console.log("[+] iOS environment detected");
23+
console.log("[+] iOS environment detected. Not Supported");
2424
}
2525
disableTLSValidation();
2626
setTimeout(disableTLSValidation, 2000, true);
@@ -50,7 +50,8 @@ function disableFlutterPinningv2() {
5050
var m = Process.findModuleByName(platformConfig["modulename"]);
5151
// If there is no loaded Flutter module, the setTimeout may trigger a second time, but after that we give up
5252
if (m === null) {
53-
if (fallback) console.log("[!] Flutter module not found.");
53+
if (fallback)
54+
//console.log("[!] Flutter module not found.");
5455
return;
5556
}
5657
if (Process.arch in platformConfig["patterns"]) {
@@ -123,7 +124,7 @@ function disablePinning() {
123124
}
124125
});
125126
} catch (e) {
126-
console.warn("Not A Flutter App");
127+
console.warn("[*] This is Not A Flutter Based APP");
127128
}
128129
}
129130

@@ -796,14 +797,10 @@ setTimeout(function() {
796797
}
797798
}
798799
});
799-
console.log("[*] Flutter testing");
800800
setTimeout(disablePinning, 1000);
801801
disableFlutterPinningv2();
802-
console.log("[*] Dynamic patching");
803802
dynamicPatching();
804-
console.log("[*] CommonMethods");
805803
CommonMethods();
806-
console.log("[*] Testing OKHTTP methods");
807804
try {
808805
var okhttp3_Activity = Java.use('okhttp3.CertificatePinner');
809806
okhttp3_Activity.check.overload('java.lang.String', 'java.util.List').implementation = function(str) {

0 commit comments

Comments
 (0)