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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e28756adc591b441b67579ca8e4a0e7fcaadc1cf332a3c9e57e01438c19d6554
4
- data.tar.gz: 0c9bf23eb782882354b6332878a41168293b4957724a27b2beab077f3caf3256
3
+ metadata.gz: 367b7027b640dde4fc89756b705635f0660de7c951e0dd88f14d860ff5b127ef
4
+ data.tar.gz: 5562e36302f6c195c0e45123bc1bc1a26dd5938073f02e945ef1f4823d34cd73
5
5
  SHA512:
6
- metadata.gz: a91dc83d7a9988df7aff4b1ad90029c67223dfa717354a4c00fcba40e01b409ff77aba4c07969cc767dafa4d89bc6a5d9af807099665245ff0a578f3df4ae6cd
7
- data.tar.gz: 34d6cc2546ce6b9e1a0b5918ec2a14dcf3f8f692222d950a7c27a7f28206308f78c0c40c66487108e5bcedfd70b25bbc9fa9f478862bf390aa041249ab3d31a9
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
- # Delete :config because it is not intended to use for running an analyzer
306
- options.delete(:config)
307
- options
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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Mihari
4
- VERSION = "0.17.1"
4
+ VERSION = "0.17.2"
5
5
  end
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.1
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-19 00:00:00.000000000 Z
11
+ date: 2019-12-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler