Class: Aikido::Zen::Attacks::ShellInjectionAttack
- Inherits:
-
Aikido::Zen::Attack
- Object
- Aikido::Zen::Attack
- Aikido::Zen::Attacks::ShellInjectionAttack
- Defined in:
- lib/aikido/zen/attack.rb
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#input ⇒ Object
readonly
Returns the value of attribute input.
Attributes inherited from Aikido::Zen::Attack
Instance Method Summary collapse
- #exception ⇒ Object
- #humanized_name ⇒ Object
-
#initialize(input:, command:, **opts) ⇒ ShellInjectionAttack
constructor
A new instance of ShellInjectionAttack.
- #kind ⇒ Object
- #metadata ⇒ Object
Methods inherited from Aikido::Zen::Attack
#as_json, #blocked?, #will_be_blocked!
Constructor Details
#initialize(input:, command:, **opts) ⇒ ShellInjectionAttack
Returns a new instance of ShellInjectionAttack.
90 91 92 93 94 |
# File 'lib/aikido/zen/attack.rb', line 90 def initialize(input:, command:, **opts) super(**opts) @input = input @command = command end |
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
88 89 90 |
# File 'lib/aikido/zen/attack.rb', line 88 def command @command end |
#input ⇒ Object (readonly)
Returns the value of attribute input.
87 88 89 |
# File 'lib/aikido/zen/attack.rb', line 87 def input @input end |
Instance Method Details
#exception ⇒ Object
110 111 112 |
# File 'lib/aikido/zen/attack.rb', line 110 def exception(*) ShellInjectionError.new(self) end |
#humanized_name ⇒ Object
96 97 98 |
# File 'lib/aikido/zen/attack.rb', line 96 def humanized_name "shell injection" end |
#kind ⇒ Object
100 101 102 |
# File 'lib/aikido/zen/attack.rb', line 100 def kind "shell_injection" end |
#metadata ⇒ Object
104 105 106 107 108 |
# File 'lib/aikido/zen/attack.rb', line 104 def { command: @command } end |