Class: Aikido::Zen::Attacks::ShellInjectionAttack
Instance Attribute Summary collapse
#context, #operation, #sink
Instance Method Summary
collapse
#as_json, #blocked?, #will_be_blocked!
Constructor Details
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
Returns the value of attribute command.
92
93
94
|
# File 'lib/aikido/zen/attack.rb', line 92
def command
@command
end
|
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
|
108
109
110
111
112
|
# File 'lib/aikido/zen/attack.rb', line 108
def metadata
{
"command" => @command
}
end
|