mihari 4.6.0 → 4.6.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/models/cpe.rb +1 -1
- data/lib/mihari/models/reverse_dns.rb +1 -1
- data/lib/mihari/structs/virustotal_intelligence.rb +2 -2
- data/lib/mihari/version.rb +1 -1
- data/lib/mihari/web/app.rb +3 -0
- 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: 491cb9d0477c4101251c1f3e5705328008a196920efb41c239048247937f21f4
|
4
|
+
data.tar.gz: 14bcfd11b8871a759e70f6658cf2773dadc6afe7ffde44dbbffaef99961b8e00
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d833915545629ade609ec994e6139387fd66247fa1c48fdbe4e3eab01679fb42820e3b07cb95fdbb8cff092753394f1dfa9aaa4459259837c2c0d7d5f2f855ed
|
7
|
+
data.tar.gz: dcbb112faa805b27157ec72d0f3544031c7e7789e855eb082a69a76216d0fcd644013ade95aea28ae138ebfb3bc8eb90d8fb922c83999d292c12b78d15acfe5c
|
data/lib/mihari/models/cpe.rb
CHANGED
@@ -4,7 +4,7 @@ module Mihari
|
|
4
4
|
module Structs
|
5
5
|
module VirusTotalIntelligence
|
6
6
|
class ContextAttributes < Dry::Struct
|
7
|
-
attribute :url, Types
|
7
|
+
attribute :url, Types::String.optional
|
8
8
|
|
9
9
|
def self.from_dynamic!(d)
|
10
10
|
d = Types::Hash[d]
|
@@ -25,7 +25,7 @@ module Mihari
|
|
25
25
|
when "file"
|
26
26
|
id
|
27
27
|
when "url"
|
28
|
-
|
28
|
+
context_attributes&.url
|
29
29
|
when "domain"
|
30
30
|
id
|
31
31
|
when "ip_address"
|
data/lib/mihari/version.rb
CHANGED
data/lib/mihari/web/app.rb
CHANGED
@@ -53,6 +53,9 @@ module Mihari
|
|
53
53
|
|
54
54
|
Rack::Handler::Puma.run(instance, Port: port, Host: host, Threads: threads, Verbose: verbose) do |_launcher|
|
55
55
|
Launchy.open(url) if ENV["RACK_ENV"] != "development"
|
56
|
+
rescue Launchy::CommandNotFoundError
|
57
|
+
# ref. https://github.com/ninoseki/mihari/issues/477
|
58
|
+
# do nothing
|
56
59
|
end
|
57
60
|
end
|
58
61
|
end
|
data/mihari.gemspec
CHANGED
@@ -89,7 +89,7 @@ Gem::Specification.new do |spec|
|
|
89
89
|
spec.add_dependency "rack-cors", "1.1.1"
|
90
90
|
spec.add_dependency "securitytrails", "1.0.0"
|
91
91
|
spec.add_dependency "semantic_logger", "4.11.0"
|
92
|
-
spec.add_dependency "sentry-ruby", "5.3.
|
92
|
+
spec.add_dependency "sentry-ruby", "5.3.1"
|
93
93
|
spec.add_dependency "shodanx", "0.2.1"
|
94
94
|
spec.add_dependency "slack-notifier", "2.4.0"
|
95
95
|
spec.add_dependency "spysex", "0.2.0"
|
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: 4.6.
|
4
|
+
version: 4.6.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: 2022-05-
|
11
|
+
date: 2022-05-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -870,14 +870,14 @@ dependencies:
|
|
870
870
|
requirements:
|
871
871
|
- - '='
|
872
872
|
- !ruby/object:Gem::Version
|
873
|
-
version: 5.3.
|
873
|
+
version: 5.3.1
|
874
874
|
type: :runtime
|
875
875
|
prerelease: false
|
876
876
|
version_requirements: !ruby/object:Gem::Requirement
|
877
877
|
requirements:
|
878
878
|
- - '='
|
879
879
|
- !ruby/object:Gem::Version
|
880
|
-
version: 5.3.
|
880
|
+
version: 5.3.1
|
881
881
|
- !ruby/object:Gem::Dependency
|
882
882
|
name: shodanx
|
883
883
|
requirement: !ruby/object:Gem::Requirement
|