fix struts_code_exec_exception_delegator - NoMethodError undefined method 'empty?' for nil:NilClass
parent
bc257ea628
commit
41bcdcce61
|
@ -186,7 +186,7 @@ class MetasploitModule < Msf::Exploit::Remote
|
||||||
end
|
end
|
||||||
|
|
||||||
def exploit
|
def exploit
|
||||||
if not datastore['CMD'].empty?
|
if !datastore['CMD'].blank?
|
||||||
print_status("Executing user supplied command")
|
print_status("Executing user supplied command")
|
||||||
execute_command(datastore['CMD'])
|
execute_command(datastore['CMD'])
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue