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.
94 95 96 97 98 |
# File 'lib/aikido/zen/attack.rb', line 94 def initialize(input:, command:, **opts) super(**opts) @input = input @command = command end |
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
92 93 94 |
# File 'lib/aikido/zen/attack.rb', line 92 def command @command end |
#input ⇒ Object (readonly)
Returns the value of attribute input.
91 92 93 |
# File 'lib/aikido/zen/attack.rb', line 91 def input @input end |
Instance Method Details
#exception ⇒ Object
114 115 116 |
# File 'lib/aikido/zen/attack.rb', line 114 def exception(*) ShellInjectionError.new(self) end |
#humanized_name ⇒ Object
100 101 102 |
# File 'lib/aikido/zen/attack.rb', line 100 def humanized_name "shell injection" end |
#kind ⇒ Object
104 105 106 |
# File 'lib/aikido/zen/attack.rb', line 104 def kind "shell_injection" end |
#metadata ⇒ Object
108 109 110 111 112 |
# File 'lib/aikido/zen/attack.rb', line 108 def { command: @command } end |