mihari 2.3.0 → 2.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mihari/analyzers/zoomeye.rb +2 -2
- data/lib/mihari/config.rb +2 -3
- data/lib/mihari/version.rb +1 -1
- data/mihari.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea3de689646f7be03616ac03315aeca9afb34ba16737ad0f706b508374bdd214
|
4
|
+
data.tar.gz: cbd5e02b4e8466c195e8311a4d50668763a3d8b40aefd0ab4a7478979b4725c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 388d1f90bd35a7819418d230703b6d20fe9b8118d64cbd90fea3802b1c80d04337ee8507d26bc4de57e13867f51593be820416eedea52984392ef9e203783707
|
7
|
+
data.tar.gz: f3c48426a7bc6c4334870d9de1fc57085094f783e8e1c6aca3ac043b9f42ff738b79457bb9cf93edeecb8d6b9976c3fe4cd5e70a0bdb306c71f767fa20c333c8
|
@@ -37,11 +37,11 @@ module Mihari
|
|
37
37
|
end
|
38
38
|
|
39
39
|
def config_keys
|
40
|
-
%w[
|
40
|
+
%w[zoomeye_api_key]
|
41
41
|
end
|
42
42
|
|
43
43
|
def api
|
44
|
-
@api ||= ::ZoomEye::API.new(
|
44
|
+
@api ||= ::ZoomEye::API.new(api_key: Mihari.config.zoomeye_api_key)
|
45
45
|
end
|
46
46
|
|
47
47
|
def convert_responses(responses)
|
data/lib/mihari/config.rb
CHANGED
@@ -4,7 +4,7 @@ require "yaml"
|
|
4
4
|
|
5
5
|
module Mihari
|
6
6
|
class Config
|
7
|
-
attr_accessor :binaryedge_api_key, :censys_id, :censys_secret, :circl_passive_password, :circl_passive_username, :misp_api_endpoint, :misp_api_key, :onyphe_api_key, :otx_api_key, :passivetotal_api_key, :passivetotal_username, :pulsedive_api_key, :securitytrails_api_key, :shodan_api_key, :slack_channel, :slack_webhook_url, :spyse_api_key, :thehive_api_endpoint, :thehive_api_key, :urlscan_api_key, :virustotal_api_key, :
|
7
|
+
attr_accessor :binaryedge_api_key, :censys_id, :censys_secret, :circl_passive_password, :circl_passive_username, :misp_api_endpoint, :misp_api_key, :onyphe_api_key, :otx_api_key, :passivetotal_api_key, :passivetotal_username, :pulsedive_api_key, :securitytrails_api_key, :shodan_api_key, :slack_channel, :slack_webhook_url, :spyse_api_key, :thehive_api_endpoint, :thehive_api_key, :urlscan_api_key, :virustotal_api_key, :zoomeye_api_key, :database
|
8
8
|
|
9
9
|
def initialize
|
10
10
|
load_from_env
|
@@ -32,8 +32,7 @@ module Mihari
|
|
32
32
|
@thehive_api_key = ENV["THEHIVE_API_KEY"]
|
33
33
|
@urlscan_api_key = ENV["URLSCAN_API_KEY"]
|
34
34
|
@virustotal_api_key = ENV["VIRUSTOTAL_API_KEY"]
|
35
|
-
@
|
36
|
-
@zoomeye_username = ENV["ZOOMEYE_USERNAME"]
|
35
|
+
@zoomeye_api_key = ENV["ZOOMEYE_API_KEY"]
|
37
36
|
|
38
37
|
@database = ENV["DATABASE"] || "mihari.db"
|
39
38
|
end
|
data/lib/mihari/version.rb
CHANGED
data/mihari.gemspec
CHANGED
@@ -78,5 +78,5 @@ Gem::Specification.new do |spec|
|
|
78
78
|
spec.add_dependency "thread_safe", "~> 0.3"
|
79
79
|
spec.add_dependency "urlscan", "~> 0.7"
|
80
80
|
spec.add_dependency "virustotalx", "~> 1.1"
|
81
|
-
spec.add_dependency "zoomeye-rb", "~> 0.
|
81
|
+
spec.add_dependency "zoomeye-rb", "~> 0.2"
|
82
82
|
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: 2.3.
|
4
|
+
version: 2.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Manabu Niseki
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-04
|
11
|
+
date: 2021-05-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -772,14 +772,14 @@ dependencies:
|
|
772
772
|
requirements:
|
773
773
|
- - "~>"
|
774
774
|
- !ruby/object:Gem::Version
|
775
|
-
version: '0.
|
775
|
+
version: '0.2'
|
776
776
|
type: :runtime
|
777
777
|
prerelease: false
|
778
778
|
version_requirements: !ruby/object:Gem::Requirement
|
779
779
|
requirements:
|
780
780
|
- - "~>"
|
781
781
|
- !ruby/object:Gem::Version
|
782
|
-
version: '0.
|
782
|
+
version: '0.2'
|
783
783
|
description:
|
784
784
|
email:
|
785
785
|
- manabu.niseki@gmail.com
|