mihari 8.3.0 → 8.4.0
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/mihari/structs/censys.rb +2 -1
- data/lib/mihari/version.rb +6 -1
- data/lib/mihari/web/public/assets/index-Bzc4WcVP.js +1591 -0
- data/lib/mihari/web/public/index.html +1 -1
- data/lib/mihari/web/public/redoc-static.html +413 -413
- data/mihari.gemspec +41 -32
- metadata +74 -64
- data/lib/mihari/web/public/assets/index-DPwW50wG.js +0 -1571
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 10a99c5d7ecfe972ad4f9dfa523da196f41877caf9d2b06ba34c69f3c523ca92
|
|
4
|
+
data.tar.gz: 6e8362a329283d83e057775aa57c4adb1074b7296dc8340139092b01d2c92c03
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 59eb5f4b4112360593bc9a8c01b0f6928fda799a7f7f1fe4117079dd7197156dc34da1fd35d3d7774917b0edb9c029a30f7d72bb869e640af091c3e6fe50179b
|
|
7
|
+
data.tar.gz: 71d3691cf8ae32c976f1e4cc3a143d0e389adfbfc353961f86d57f6f550fb989070ef798c4fbc864ff37d1a8022a348021a01585cee2b504ebc6e1ea75b4a392
|
|
@@ -291,6 +291,7 @@ module Mihari
|
|
|
291
291
|
class << self
|
|
292
292
|
def from_dynamic!(d)
|
|
293
293
|
res = d.dig("host_v1", "resource") || {}
|
|
294
|
+
return nil if res["ip"].nil?
|
|
294
295
|
new(
|
|
295
296
|
ip: res["ip"],
|
|
296
297
|
autonomous_system: res["autonomous_system"],
|
|
@@ -313,7 +314,7 @@ module Mihari
|
|
|
313
314
|
class << self
|
|
314
315
|
def from_dynamic!(d)
|
|
315
316
|
new(
|
|
316
|
-
hits: (d["hits"] || []).
|
|
317
|
+
hits: (d["hits"] || []).filter_map { |x| Hit.from_dynamic!(x) },
|
|
317
318
|
next_page_token: d["next_page_token"]
|
|
318
319
|
)
|
|
319
320
|
end
|