Class: Masscan::Banner
- Inherits:
-
Struct
- Object
- Struct
- Masscan::Banner
- Defined in:
- lib/masscan/banner.rb
Overview
Represents a banner record.
Instance Attribute Summary collapse
-
#app_protocol ⇒ Object
(also: #service)
Returns the value of attribute app_protocol.
-
#ip ⇒ Object
Returns the value of attribute ip.
-
#payload ⇒ Object
(also: #banner)
Returns the value of attribute payload.
-
#port ⇒ Object
Returns the value of attribute port.
-
#protocol ⇒ Object
Returns the value of attribute protocol.
-
#timestamp ⇒ Object
Returns the value of attribute timestamp.
-
#ttl ⇒ Object
Returns the value of attribute ttl.
Instance Method Summary collapse
-
#initialize(protocol:, port:, ttl: nil, ip:, timestamp:, app_protocol:, payload:) ⇒ Banner
constructor
private
Initializes the banner.
Constructor Details
#initialize(protocol:, port:, ttl: nil, ip:, timestamp:, app_protocol:, payload:) ⇒ Banner
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Initializes the banner.
35 36 37 |
# File 'lib/masscan/banner.rb', line 35 def initialize(protocol: , port: , ttl: nil, ip: , timestamp: , app_protocol: , payload: ) super(protocol,port,ttl,ip,,app_protocol,payload) end |
Instance Attribute Details
#app_protocol ⇒ Object Also known as: service
Returns the value of attribute app_protocol
7 8 9 |
# File 'lib/masscan/banner.rb', line 7 def app_protocol @app_protocol end |
#ip ⇒ Object
Returns the value of attribute ip
7 8 9 |
# File 'lib/masscan/banner.rb', line 7 def ip @ip end |
#payload ⇒ Object Also known as:
Returns the value of attribute payload
7 8 9 |
# File 'lib/masscan/banner.rb', line 7 def payload @payload end |
#port ⇒ Object
Returns the value of attribute port
7 8 9 |
# File 'lib/masscan/banner.rb', line 7 def port @port end |
#protocol ⇒ Object
Returns the value of attribute protocol
7 8 9 |
# File 'lib/masscan/banner.rb', line 7 def protocol @protocol end |
#timestamp ⇒ Object
Returns the value of attribute timestamp
7 8 9 |
# File 'lib/masscan/banner.rb', line 7 def @timestamp end |
#ttl ⇒ Object
Returns the value of attribute ttl
7 8 9 |
# File 'lib/masscan/banner.rb', line 7 def ttl @ttl end |