Class: Shodan::Clients::Labs

Inherits:
Base
  • Object
show all
Defined in:
lib/shodan/clients/labs.rb

Constant Summary

Constants inherited from Base

Base::BASE_URL, Base::HOST

Instance Attribute Summary

Attributes inherited from Base

#key

Instance Method Summary collapse

Methods inherited from Base

#initialize, #key?

Constructor Details

This class inherits a constructor from Shodan::Clients::Base

Instance Method Details

#honeyscore(ip) ⇒ Object

Calculates a honeypot probability score ranging from 0 (not a honeypot) to 1.0 (is a honeypot).



8
9
10
# File 'lib/shodan/clients/labs.rb', line 8

def honeyscore(ip)
  get("/labs/honeyscore/#{ip}")
end