mihari 4.0.0 → 4.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/lib/mihari.rb CHANGED
@@ -153,7 +153,6 @@ require "mihari/models/whois"
153
153
 
154
154
  # Analyzers
155
155
  require "mihari/analyzers/base"
156
- require "mihari/analyzers/basic"
157
156
 
158
157
  require "mihari/analyzers/binaryedge"
159
158
  require "mihari/analyzers/censys"
@@ -19,6 +19,8 @@ module Mihari
19
19
 
20
20
  def search: () -> Array[Hash[(String | Symbol), untyped]]
21
21
 
22
+ def collect_metadata_by_ip: (Array[Mihari::Structs::Shodan::Match] matches, ip: String) -> Array[Hash[(String | Symbol), untyped]]
23
+
22
24
  #
23
25
  # Build an artifact from a Shodan search API response
24
26
  #
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.0.0
4
+ version: 4.1.0
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-01-22 00:00:00.000000000 Z
11
+ date: 2022-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -1057,7 +1057,6 @@ files:
1057
1057
  - images/web_config.png
1058
1058
  - lib/mihari.rb
1059
1059
  - lib/mihari/analyzers/base.rb
1060
- - lib/mihari/analyzers/basic.rb
1061
1060
  - lib/mihari/analyzers/binaryedge.rb
1062
1061
  - lib/mihari/analyzers/censys.rb
1063
1062
  - lib/mihari/analyzers/circl.rb
@@ -1220,8 +1219,12 @@ files:
1220
1219
  - lib/mihari/web/public/static/js/app.ab213f7c.js.map
1221
1220
  - lib/mihari/web/public/static/js/app.b5914c39.js
1222
1221
  - lib/mihari/web/public/static/js/app.b5914c39.js.map
1222
+ - lib/mihari/web/public/static/js/app.cb1fa7be.js
1223
+ - lib/mihari/web/public/static/js/app.cb1fa7be.js.map
1223
1224
  - lib/mihari/web/public/static/js/app.cccddb2b.js
1224
1225
  - lib/mihari/web/public/static/js/app.cccddb2b.js.map
1226
+ - lib/mihari/web/public/static/js/app.eb95cfc9.js
1227
+ - lib/mihari/web/public/static/js/app.eb95cfc9.js.map
1225
1228
  - lib/mihari/web/public/static/js/app.f2b8890f.js
1226
1229
  - lib/mihari/web/public/static/js/app.f2b8890f.js.map
1227
1230
  - lib/mihari/web/public/static/js/app.fbc19869.js
@@ -1230,7 +1233,6 @@ files:
1230
1233
  - renovate.json
1231
1234
  - sig/lib/mihari.rbs
1232
1235
  - sig/lib/mihari/analyzers/base.rbs
1233
- - sig/lib/mihari/analyzers/basic.rbs
1234
1236
  - sig/lib/mihari/analyzers/binaryedge.rbs
1235
1237
  - sig/lib/mihari/analyzers/censys.rbs
1236
1238
  - sig/lib/mihari/analyzers/circl.rbs
@@ -1,19 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Mihari
4
- module Analyzers
5
- class Basic < Base
6
- attr_reader :title, :description, :artifacts, :source, :tags
7
-
8
- def initialize(title:, description:, artifacts:, source:, tags: [])
9
- super()
10
-
11
- @title = title
12
- @description = description
13
- @artifacts = artifacts
14
- @source = source
15
- @tags = tags
16
- end
17
- end
18
- end
19
- end
@@ -1,17 +0,0 @@
1
- module Mihari
2
- module Analyzers
3
- class Basic < Base
4
- attr_reader title: String
5
-
6
- attr_reader description: String
7
-
8
- attr_reader artifacts: (Array[String] | Array[Mihari::Artifact])
9
-
10
- attr_reader source: String
11
-
12
- attr_reader tags: Array[String]?
13
-
14
- def initialize: (title: String title, description: String description, artifacts: (Array[String] | Array[Mihari::Artifact]) artifacts, source: String source, ?tags: Array[String] tags) -> void
15
- end
16
- end
17
- end