intrigue-ident 0.43 → 0.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/intrigue-ident.rb +13 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c1799c39ceec8d33c4b54ff83233ce21318f16a0d9d5ef7720a056a42b034ed9
|
4
|
+
data.tar.gz: 398d2de6693b7b0c9a80290d39321b9c894d464ce8859bc0e113773d18d4f016
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e7b84da0b5914dafb29e2e37e04e50f1f0cf262331abe5a2e2472722313d2f494e041b248532b3289c938a71975f6a8be8d401c14765b64996bb2d80f5d31ef
|
7
|
+
data.tar.gz: 40812edabfee98674facfb1bbea39e1522a9826bab3204b78e625480ec2902b8f94f2f4934101ae74dd0fd5143b17f748929082f3a14eabf27320607e098f7f2
|
data/lib/intrigue-ident.rb
CHANGED
@@ -11,7 +11,7 @@ Dir["#{check_folder}/*.rb"].each { |file| require_relative file }
|
|
11
11
|
module Intrigue
|
12
12
|
module Ident
|
13
13
|
|
14
|
-
VERSION=0.
|
14
|
+
VERSION=0.44
|
15
15
|
|
16
16
|
def generate_requests_and_check(url)
|
17
17
|
|
@@ -100,14 +100,22 @@ module Intrigue
|
|
100
100
|
|
101
101
|
|
102
102
|
if check[:type] == :content_body
|
103
|
-
|
103
|
+
if data["details"]["hidden_response_data"]
|
104
|
+
match = _construct_match_response(check,data) if data["details"]["hidden_response_data"] =~ check[:content]
|
105
|
+
end
|
104
106
|
elsif check[:type] == :content_headers
|
105
|
-
|
107
|
+
if data["details"]["headers"]
|
108
|
+
match = _construct_match_response(check,data) if data["details"]["headers"].join("\n") =~ check[:content]
|
109
|
+
end
|
106
110
|
elsif check[:type] == :content_cookies
|
107
111
|
# Check only the set-cookie header
|
108
|
-
|
112
|
+
if data["details"]["cookies"]
|
113
|
+
match = _construct_match_response(check,data) if data["details"]["cookies"] =~ check[:content]
|
114
|
+
end
|
109
115
|
elsif check[:type] == :checksum_body
|
110
|
-
|
116
|
+
if data["details"]["response_data_hash"]
|
117
|
+
match = _construct_match_response(check,data) if Digest::MD5.hexdigest(data["details"]["response_data_hash"]) == check[:checksum]
|
118
|
+
end
|
111
119
|
end
|
112
120
|
|
113
121
|
match
|