mihari 0.2.4 → 0.2.5
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/base.rb +5 -6
- data/lib/mihari/type_checker.rb +3 -3
- data/lib/mihari/version.rb +1 -1
- data/mihari.gemspec +3 -3
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6bda91ccfe9d86e0217e40b23fd30cf526f61e7cf9146945939a04c0bd5edaef
|
4
|
+
data.tar.gz: 8e5665d600415ef98cd34ee064b73d740dbe0a3a9c8c2e7e4d1fe5d7f5cf6621
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dfa5b4da08fe3f68f65f61856a28cff31a52e9eafdc3348147b0a7d5b02dc11714a63edf398accd2b0034055b36140c90d741d2b61a4ec2e0e52369bdaba8b2c
|
7
|
+
data.tar.gz: 48a0add497b69ab34f3ed61936464f0667f7f07de62e97b24356a92f2978823d869c163b1c6f58b91f4ba63641ce01617bda63b4804b5a34063df547886dda97
|
@@ -38,12 +38,11 @@ module Mihari
|
|
38
38
|
notifier = notifier_class.new
|
39
39
|
next unless notifier.valid?
|
40
40
|
|
41
|
-
|
42
|
-
title: title,
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
)
|
41
|
+
begin
|
42
|
+
notifier.notify(title: title, description: description, artifacts: unique_artifacts, tags: tags)
|
43
|
+
rescue StandardError => e
|
44
|
+
puts "Sending notification by #{notifier.class} is failed: #{e}"
|
45
|
+
end
|
47
46
|
end
|
48
47
|
end
|
49
48
|
|
data/lib/mihari/type_checker.rb
CHANGED
@@ -22,7 +22,7 @@ module Mihari
|
|
22
22
|
def ip?
|
23
23
|
IPAddr.new data
|
24
24
|
true
|
25
|
-
rescue IPAddr::InvalidAddressError =>
|
25
|
+
rescue IPAddr::InvalidAddressError => _e
|
26
26
|
false
|
27
27
|
end
|
28
28
|
|
@@ -30,7 +30,7 @@ module Mihari
|
|
30
30
|
def domain?
|
31
31
|
uri = Addressable::URI.parse("http://#{data}")
|
32
32
|
uri.host == data && PublicSuffix.valid?(uri.host)
|
33
|
-
rescue Addressable::URI::InvalidURIError =>
|
33
|
+
rescue Addressable::URI::InvalidURIError => _e
|
34
34
|
false
|
35
35
|
end
|
36
36
|
|
@@ -38,7 +38,7 @@ module Mihari
|
|
38
38
|
def url?
|
39
39
|
uri = Addressable::URI.parse(data)
|
40
40
|
uri.scheme && uri.host && uri.path && PublicSuffix.valid?(uri.host)
|
41
|
-
rescue Addressable::URI::InvalidURIError =>
|
41
|
+
rescue Addressable::URI::InvalidURIError => _e
|
42
42
|
false
|
43
43
|
end
|
44
44
|
|
data/lib/mihari/version.rb
CHANGED
data/mihari.gemspec
CHANGED
@@ -28,8 +28,8 @@ Gem::Specification.new do |spec|
|
|
28
28
|
spec.add_development_dependency "coveralls", "~> 0.8"
|
29
29
|
spec.add_development_dependency "rake", "~> 12.3"
|
30
30
|
spec.add_development_dependency "rspec", "~> 3.8"
|
31
|
-
spec.add_development_dependency "vcr", "~>
|
32
|
-
spec.add_development_dependency "webmock", "~> 3.
|
31
|
+
spec.add_development_dependency "vcr", "~> 5.0"
|
32
|
+
spec.add_development_dependency "webmock", "~> 3.6"
|
33
33
|
|
34
34
|
spec.add_dependency "addressable", "~> 2.6"
|
35
35
|
spec.add_dependency "censu", "~> 0.2"
|
@@ -37,7 +37,7 @@ Gem::Specification.new do |spec|
|
|
37
37
|
spec.add_dependency "hachi", "~> 0.1"
|
38
38
|
spec.add_dependency "mem", "~> 0.1"
|
39
39
|
spec.add_dependency "onyphe", "~> 0.2"
|
40
|
-
spec.add_dependency "public_suffix", "~> 3.
|
40
|
+
spec.add_dependency "public_suffix", "~> 3.1"
|
41
41
|
spec.add_dependency "shodanx", "~> 0.1"
|
42
42
|
spec.add_dependency "slack-incoming-webhooks", "~> 0.2"
|
43
43
|
spec.add_dependency "thor", "~> 0.19"
|
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.2.
|
4
|
+
version: 0.2.5
|
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-
|
11
|
+
date: 2019-06-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -72,28 +72,28 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
75
|
+
version: '5.0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
82
|
+
version: '5.0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: webmock
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '3.
|
89
|
+
version: '3.6'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '3.
|
96
|
+
version: '3.6'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: addressable
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -184,14 +184,14 @@ dependencies:
|
|
184
184
|
requirements:
|
185
185
|
- - "~>"
|
186
186
|
- !ruby/object:Gem::Version
|
187
|
-
version: '3.
|
187
|
+
version: '3.1'
|
188
188
|
type: :runtime
|
189
189
|
prerelease: false
|
190
190
|
version_requirements: !ruby/object:Gem::Requirement
|
191
191
|
requirements:
|
192
192
|
- - "~>"
|
193
193
|
- !ruby/object:Gem::Version
|
194
|
-
version: '3.
|
194
|
+
version: '3.1'
|
195
195
|
- !ruby/object:Gem::Dependency
|
196
196
|
name: shodanx
|
197
197
|
requirement: !ruby/object:Gem::Requirement
|