From 41bcdcce61a4f5bc634b437f5c92684e70699729 Mon Sep 17 00:00:00 2001 From: Vex Woo Date: Wed, 18 May 2016 00:11:57 -0500 Subject: [PATCH] fix struts_code_exec_exception_delegator - NoMethodError undefined method 'empty?' for nil:NilClass --- .../exploits/multi/http/struts_code_exec_exception_delegator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/exploits/multi/http/struts_code_exec_exception_delegator.rb b/modules/exploits/multi/http/struts_code_exec_exception_delegator.rb index 108963ebf6..d01a21e6cc 100644 --- a/modules/exploits/multi/http/struts_code_exec_exception_delegator.rb +++ b/modules/exploits/multi/http/struts_code_exec_exception_delegator.rb @@ -186,7 +186,7 @@ class MetasploitModule < Msf::Exploit::Remote end def exploit - if not datastore['CMD'].empty? + if !datastore['CMD'].blank? print_status("Executing user supplied command") execute_command(datastore['CMD']) return