additional GET parameters
parent
ad83921a85
commit
43a85fc645
|
@ -70,7 +70,7 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
OptString.new('PARAMETER',[ true, 'The parameter to perform injection against.','username']),
|
||||
OptString.new('TARGETURI', [ true, 'The path to a struts application action', '/blank-struts2/login.action']),
|
||||
OptInt.new('CHECK_SLEEPTIME', [ true, 'The time, in seconds, to ask the server to sleep while check', 5]),
|
||||
OptString.new('GET_PARAMETERS', [ false, 'Additional GET Parameters to send. Please supply in the format "param1=a¶m2=b". Do not URL encode the Parameters, they are encoded before sending by the module.', nil]),
|
||||
OptString.new('GET_PARAMETERS', [ false, 'Additional GET Parameters to send. Please supply in the format "param1=a¶m2=b". Do apply URL encoding to the Parameters.', nil]),
|
||||
], self.class)
|
||||
end
|
||||
|
||||
|
@ -86,7 +86,9 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
splitted.each { |item|
|
||||
name, value = item.split('=')
|
||||
# no check here, value can be nil if parameter is ¶m
|
||||
retval[name] = value
|
||||
decoded_name = name ? Rex::Text::uri_decode(name) : nil
|
||||
decoded_value = value ? Rex::Text::uri_decode(value) : nil
|
||||
retval[decoded_name] = decoded_value
|
||||
}
|
||||
retval
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue