Class: Ronin::Exploits::Target
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- Ronin::Exploits::Target
- Defined in:
- lib/ronin/exploits/target.rb
Overview
Contains targeting information used for exploits. A target may specify which architecture, Operating System (OS), software version is targets. The target may also contain additional target parameters.
Instance Attribute Summary collapse
-
#arch ⇒ Symbol?
readonly
The target's architecture.
-
#os ⇒ Symbol?
readonly
The target's Operating System.
-
#os_version ⇒ String?
readonly
The target's Operating System (OS) version.
-
#software ⇒ String?
readonly
The target's software.
-
#version ⇒ String?
readonly
The target's software version.
Instance Method Summary collapse
-
#initialize(arch: nil, os: nil, os_version: nil, software: nil, version: nil, **params) {|target| ... } ⇒ Target
constructor
Creates a new ExploitTarget object.
Constructor Details
#initialize(arch: nil, os: nil, os_version: nil, software: nil, version: nil, **params) {|target| ... } ⇒ Target
Creates a new ExploitTarget object
83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 |
# File 'lib/ronin/exploits/target.rb', line 83 def initialize(arch: nil, os: nil, os_version: nil, software: nil, version: nil, **params) super(**params) @arch = arch @os = os @os_version = os_version @software = software @version = version yield self if block_given? end |
Instance Attribute Details
#arch ⇒ Symbol? (readonly)
The target's architecture.
37 38 39 |
# File 'lib/ronin/exploits/target.rb', line 37 def arch @arch end |
#os ⇒ Symbol? (readonly)
The target's Operating System.
42 43 44 |
# File 'lib/ronin/exploits/target.rb', line 42 def os @os end |
#os_version ⇒ String? (readonly)
The target's Operating System (OS) version.
47 48 49 |
# File 'lib/ronin/exploits/target.rb', line 47 def os_version @os_version end |
#software ⇒ String? (readonly)
The target's software.
52 53 54 |
# File 'lib/ronin/exploits/target.rb', line 52 def software @software end |
#version ⇒ String? (readonly)
The target's software version.
57 58 59 |
# File 'lib/ronin/exploits/target.rb', line 57 def version @version end |