mihari 0.8.1 → 0.8.2
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/analyzers/base.rb +0 -6
- data/lib/mihari/emitters/the_hive.rb +9 -0
- data/lib/mihari/version.rb +1 -1
- 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: 2be8fa691c300847f8986ad6f89f23360ae32c3c42865c9da439bf8ea966e698
|
|
4
|
+
data.tar.gz: d2ad505e1fb086d334c232cf4811effcff2109593cac150779eda415e672a4c9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 032e012ae1ed2999bd626b7d3f4c7f6a06df58789ea3a885e3efb3e6b51c172d4868d6f1eee45af60a4ed430bb9967f6d27288f4a62a8cf051747c71811cb83d
|
|
7
|
+
data.tar.gz: 938f80eed835fa6a671e23f079c9f60b061b0006bec7281b8e0f8161dbebda1039fd2e066f8dd587df1bc2ab2e5ffe673737a24c04124cd5dc7066432b53bb54
|
|
@@ -35,8 +35,6 @@ module Mihari
|
|
|
35
35
|
|
|
36
36
|
run_emitter emitter
|
|
37
37
|
end
|
|
38
|
-
|
|
39
|
-
save_as_cache unique_artifacts.map(&:data)
|
|
40
38
|
end
|
|
41
39
|
|
|
42
40
|
def run_emitter(emitter)
|
|
@@ -66,10 +64,6 @@ module Mihari
|
|
|
66
64
|
|
|
67
65
|
@unique_artifacts ||= @the_hive.artifact.find_non_existing_artifacts(uncached_artifacts)
|
|
68
66
|
end
|
|
69
|
-
|
|
70
|
-
def save_as_cache(data)
|
|
71
|
-
@cache.save data
|
|
72
|
-
end
|
|
73
67
|
end
|
|
74
68
|
end
|
|
75
69
|
end
|
|
@@ -7,6 +7,7 @@ module Mihari
|
|
|
7
7
|
|
|
8
8
|
def initialize
|
|
9
9
|
@the_hive = Mihari::TheHive.new
|
|
10
|
+
@cache = Cache.new
|
|
10
11
|
end
|
|
11
12
|
|
|
12
13
|
# @return [true, false]
|
|
@@ -23,6 +24,14 @@ module Mihari
|
|
|
23
24
|
artifacts: artifacts.map(&:to_h),
|
|
24
25
|
tags: tags
|
|
25
26
|
)
|
|
27
|
+
|
|
28
|
+
save_as_cache artifacts.map(&:data)
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
private
|
|
32
|
+
|
|
33
|
+
def save_as_cache(data)
|
|
34
|
+
@cache.save data
|
|
26
35
|
end
|
|
27
36
|
end
|
|
28
37
|
end
|
data/lib/mihari/version.rb
CHANGED