Skip to content

Commit

Permalink
Compact JSON data
Browse files Browse the repository at this point in the history
  • Loading branch information
not-a-rootkit committed Oct 18, 2024
1 parent 4e8808a commit d6d4fed
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 156,915 deletions.
6 changes: 3 additions & 3 deletions DuckDuckGo/PhishingDetection/PhishingDetection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ public class PhishingDetection: PhishingSiteDetecting {
private let hashPrefixDataSHA: String

private init(
revision: Int = 1681795,
revision: Int = 1682412,
filterSetURL: URL = Bundle.main.url(forResource: "filterSet", withExtension: "json")!,
filterSetDataSHA: String = "f6f2353a1010bbe00362d7baab3b09622a6be7b2c5aafcba4942f17ebf389696",
filterSetDataSHA: String = "c18cccf9dab535f88c1e4570a9bf2f6477b53614f6494de090393cdfea6bee67",
hashPrefixURL: URL = Bundle.main.url(forResource: "hashPrefixes", withExtension: "json")!,
hashPrefixDataSHA: String = "59b68be9a54feb714f660bee23ffb4205a78e6f5b9c6ad1722af29a215733023",
hashPrefixDataSHA: String = "f2a43e57eba01beb6ae6e69406d5a0b769015871f50e62ac0f2cd15afb3ae7a8",
detectionClient: PhishingDetectionAPIClient = PhishingDetectionAPIClient(),
dataProvider: PhishingDetectionDataProvider? = nil,
dataStore: PhishingDetectionDataSaving? = nil,
Expand Down
27 changes: 1 addition & 26 deletions DuckDuckGo/PhishingDetection/filterSet.json
Original file line number Diff line number Diff line change
@@ -1,26 +1 @@
[
{
"hash": "3aeb002460381c6f258e8395d3026f571f0d9a76488dcd837639b13aed316560",
"regex": "(?i)^https?\\:\\/\\/[\\w\\-\\.]+(?:\\:(?:80|443))?[\\/\\\\]+mobilbhs\\-giris\\-resmi[\\/\\\\]+mobilbahis(?:\\?|$)"
},
{
"hash": "b92a46b3a7dc8e2a4a03e1f65992b4f189d268bb83856d27f03975301152f086",
"regex": "(?i)^https?\\:\\/\\/[\\w\\-\\.]+(?:\\:(?:80|443))?[\\/\\\\]+37NOMs89$"
},
{
"hash": "4f5512af6368000eddb872322d965418902768a94c9bf34709d6923c2ece4b59",
"regex": "(?i)^https?\\:\\/\\/[\\w\\-\\.]+(?:\\:(?:80|443))?[\\/\\\\]+brobig(?:\\?|$)"
},
{
"hash": "4609d127e39f7e8eef71cf16215484cf153ed5bc96d3bfd68b2e15fe8a719ba3",
"regex": "(?i)^https?\\:\\/\\/[\\w\\-\\.]+(?:\\:(?:80|443))?[\\/\\\\]+m[\\/\\\\]+global\\-identity\\-2"
},
{
"hash": "41bd38517b7bcaa0d43541eaaa1e215b9d6d4067bb7fd90d895d2ec13f45ac9a",
"regex": "(?i)^https?\\:\\/\\/[\\w\\-\\.]+(?:\\:(?:80|443))?[\\/\\\\]+site[\\/\\\\]+checkpoinsetting12$"
},
{
"hash": "451ebbe1c8f95384bd1b076cb98f737936946559303dabc6072e8518f6c18367",
"regex": "(?i)^https?\\:\\/\\/[\\w\\-\\.]+(?:\\:(?:80|443))?[\\/\\\\]+presentation[\\/\\\\]+d[\\/\\\\]+1i1Wia5gUexRY0RS9fGozbbxYcayCkptZY8kWxyNJP8o"
}
]
[{"hash":"3aeb002460381c6f258e8395d3026f571f0d9a76488dcd837639b13aed316560","regex":"(?i)^https?\\:\\/\\/[\\w\\-\\.]+(?:\\:(?:80|443))?[\\/\\\\]+mobilbhs\\-giris\\-resmi[\\/\\\\]+mobilbahis(?:\\?|$)"},{"hash":"b92a46b3a7dc8e2a4a03e1f65992b4f189d268bb83856d27f03975301152f086","regex":"(?i)^https?\\:\\/\\/[\\w\\-\\.]+(?:\\:(?:80|443))?[\\/\\\\]+37NOMs89$"},{"hash":"4609d127e39f7e8eef71cf16215484cf153ed5bc96d3bfd68b2e15fe8a719ba3","regex":"(?i)^https?\\:\\/\\/[\\w\\-\\.]+(?:\\:(?:80|443))?[\\/\\\\]+m[\\/\\\\]+global\\-identity\\-2"},{"hash":"4f5512af6368000eddb872322d965418902768a94c9bf34709d6923c2ece4b59","regex":"(?i)^https?\\:\\/\\/[\\w\\-\\.]+(?:\\:(?:80|443))?[\\/\\\\]+brobig(?:\\?|$)"},{"hash":"451ebbe1c8f95384bd1b076cb98f737936946559303dabc6072e8518f6c18367","regex":"(?i)^https?\\:\\/\\/[\\w\\-\\.]+(?:\\:(?:80|443))?[\\/\\\\]+presentation[\\/\\\\]+d[\\/\\\\]+1i1Wia5gUexRY0RS9fGozbbxYcayCkptZY8kWxyNJP8o"},{"hash":"41bd38517b7bcaa0d43541eaaa1e215b9d6d4067bb7fd90d895d2ec13f45ac9a","regex":"(?i)^https?\\:\\/\\/[\\w\\-\\.]+(?:\\:(?:80|443))?[\\/\\\\]+site[\\/\\\\]+checkpoinsetting12$"}]
Loading

0 comments on commit d6d4fed

Please sign in to comment.