mihari 0.17.1 → 0.17.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/cli.rb +7 -6
- data/lib/mihari/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 367b7027b640dde4fc89756b705635f0660de7c951e0dd88f14d860ff5b127ef
|
|
4
|
+
data.tar.gz: 5562e36302f6c195c0e45123bc1bc1a26dd5938073f02e945ef1f4823d34cd73
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b1b2a4e65ecdb8e5d3a3d9cc4168571ecf8d137422e0cfa1dc5db46e79d48568bbe25d31fbd258c3c04374dd831ea5b681b2faffa17e8ccecc85917afda62663
|
|
7
|
+
data.tar.gz: b2ace33abecfbe7bc0be627e04a95f930c30ea3413d80da32dcc7b4617de9b121ae2f617d469959c89a3d39daec28c7faec1af30df5c9f30d7f9f80861ebce5a
|
data/lib/mihari/cli.rb
CHANGED
|
@@ -108,7 +108,7 @@ module Mihari
|
|
|
108
108
|
method_option :tags, type: :array, desc: "tags"
|
|
109
109
|
def circl(query)
|
|
110
110
|
with_error_handling do
|
|
111
|
-
run_analyzer Analyzers::CIRCL, query: query, options: options
|
|
111
|
+
run_analyzer Analyzers::CIRCL, query: refang(query), options: options
|
|
112
112
|
end
|
|
113
113
|
end
|
|
114
114
|
|
|
@@ -159,7 +159,7 @@ module Mihari
|
|
|
159
159
|
method_option :tags, type: :array, desc: "tags"
|
|
160
160
|
def dnstwister(domain)
|
|
161
161
|
with_error_handling do
|
|
162
|
-
run_analyzer Analyzers::DNSTwister, query: domain, options: options
|
|
162
|
+
run_analyzer Analyzers::DNSTwister, query: refang(domain), options: options
|
|
163
163
|
end
|
|
164
164
|
end
|
|
165
165
|
|
|
@@ -189,7 +189,7 @@ module Mihari
|
|
|
189
189
|
method_option :tags, type: :array, desc: "tags"
|
|
190
190
|
def reverse_whois(query)
|
|
191
191
|
with_error_handling do
|
|
192
|
-
run_analyzer Analyzers::ReveseWhois, query: query, options: options
|
|
192
|
+
run_analyzer Analyzers::ReveseWhois, query: refang(query), options: options
|
|
193
193
|
end
|
|
194
194
|
end
|
|
195
195
|
|
|
@@ -259,6 +259,7 @@ module Mihari
|
|
|
259
259
|
desc "status", "Show the current configuration status"
|
|
260
260
|
def status
|
|
261
261
|
with_error_handling do
|
|
262
|
+
load_configuration
|
|
262
263
|
puts JSON.pretty_generate(Status.check)
|
|
263
264
|
end
|
|
264
265
|
end
|
|
@@ -302,9 +303,9 @@ module Mihari
|
|
|
302
303
|
end
|
|
303
304
|
|
|
304
305
|
def normalize_options(options)
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
306
|
+
# Delete :config because it is not intended to use for running an analyzer
|
|
307
|
+
options.delete(:config)
|
|
308
|
+
options
|
|
308
309
|
end
|
|
309
310
|
|
|
310
311
|
def refang(indicator)
|
data/lib/mihari/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mihari
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.17.
|
|
4
|
+
version: 0.17.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Manabu Niseki
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-12-
|
|
11
|
+
date: 2019-12-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|