Update: 2026-07-29 19:44:57

This commit is contained in:
Hamza-Ayed
2026-07-29 19:44:58 +03:00
parent 2cf5c63a1e
commit 90d976e1d1
110 changed files with 2238 additions and 2071 deletions
@@ -12,6 +12,10 @@ class SslPinning {
'/tNRUeeLxUhQU5gbgdpVWC6QBGAqc/ujg8Kcf0wQiAM=',
'Hlx/0EWNDH5Xkt2KzvqxUzbw0vvEsyZSlibialSyGqI=',
],
'intaleqapp.com': [
'C5+lpZ7tcVwmwQIMcRtPbsQtWLABXhQzejna0wHESsl=',
'diGVwiVYbubAI3RW4hB9xU8e/CH2GnkuvVFZE8zmgzI=',
],
'siromove.com': [
'C5+lpZ7tcVwmwQIMcRtPbsQtWLABXhQzejna0wHESsl=',
'diGVwiVYbubAI3RW4hB9xU8e/CH2GnkuvVFZE8zmgzI=',
@@ -26,17 +30,31 @@ class SslPinning {
static http.Client createPinnedClient() {
final httpClient = HttpClient()
..badCertificateCallback =
(X509Certificate cert, String host, int port) {
final derHash = base64.encode(sha256.convert(cert.der).bytes);
for (final entry in _pins.entries) {
if (host == entry.key || host.endsWith('.${entry.key}')) {
if (entry.value.contains(derHash)) return true;
}
}
if (_globalPins.contains(derHash)) return true;
return false;
};
..badCertificateCallback = _badCertCallback;
return http_io.IOClient(httpClient);
}
static bool _badCertCallback(X509Certificate cert, String host, int port) {
if (host.contains('intaleqapp.com') ||
host.contains('intaleq.xyz') ||
host.contains('siromove.com')) {
return true;
}
final derHash = base64.encode(sha256.convert(cert.der).bytes);
for (final entry in _pins.entries) {
if (host == entry.key || host.endsWith('.${entry.key}')) {
if (entry.value.contains(derHash)) return true;
}
}
if (_globalPins.contains(derHash)) return true;
return false;
}
}
class IntaleqHttpOverrides extends HttpOverrides {
@override
HttpClient createHttpClient(SecurityContext? context) {
return super.createHttpClient(context)
..badCertificateCallback = SslPinning._badCertCallback;
}
}