Class: Mihari::Status

Inherits:
Object
  • Object
show all
Defined in:
lib/mihari/status.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.checkObject



19
20
21
# File 'lib/mihari/status.rb', line 19

def self.check
  new.check
end

Instance Method Details

#checkObject



5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/mihari/status.rb', line 5

def check
  {
    censys: { status: censys?, message: censys },
    onyphe: { status: onyphe?, message: onyphe },
    securitytrails: { status: securitytrails?, message: securitytrails },
    shodan: { status: shodan?, message: shodan },
    slack: { status: slack?, message: slack },
    the_hive: { status: the_hive?, message: the_hive },
    virustotal: { status: virustotal?, message: virustotal },
  }.map do |key, value|
    [key, convert(value)]
  end.to_h
end