Class: Aikido::Zen::Attacks::ShellInjectionAttack
Instance Attribute Summary collapse
#context, #operation, #sink
Instance Method Summary
collapse
#as_json, #blocked?, #will_be_blocked!
Constructor Details
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
Returns the value of attribute command.
88
89
90
|
# File 'lib/aikido/zen/attack.rb', line 88
def command
@command
end
|
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
|
104
105
106
107
108
|
# File 'lib/aikido/zen/attack.rb', line 104
def metadata
{
command: @command
}
end
|