Skip to content

Commit 71bc06d

Browse files
RuslaideeminRuslaideemin
authored andcommitted
Fix undefined variable in tomcat_mgr_deploy.rb
Exploit failed (multi/http/tomcat_mgr_deploy): NameError undefined local variable or method `path' for #<Msf...> [06/04/2013 10:14:03] [d(3)] core: Call stack: modules/exploits/multi/http/tomcat_mgr_deploy.rb:253:in `exploit' lib/msf/core/exploit_driver.rb:205:in `job_run_proc' lib/msf/core/exploit_driver.rb:166:in `run' lib/msf/base/simple/exploit.rb:136:in `exploit_simple' lib/msf/base/simple/exploit.rb:161:in `exploit_simple' lib/msf/ui/console/command_dispatcher/exploit.rb:111:in `cmd_exploit' lib/rex/ui/text/dispatcher_shell.rb:427:in `run_command' lib/rex/ui/text/dispatcher_shell.rb:389:in `block in run_single' lib/rex/ui/text/dispatcher_shell.rb:383:in `each' lib/rex/ui/text/dispatcher_shell.rb:383:in `run_single' lib/rex/ui/text/shell.rb:200:in `run' lib/msf/ui/web/console.rb:71:in `block in initialize' lib/msf/core/thread_manager.rb:100:in `call' lib/msf/core/thread_manager.rb:100:in `block in spawn' Uses path instead of path_tmp in error messages.
1 parent 1917961 commit 71bc06d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/exploits/multi/http/tomcat_mgr_deploy.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,9 +248,9 @@ def exploit
248248
'method' => 'GET'
249249
}, 20)
250250
if (! res)
251-
print_warning("WARNING: Undeployment failed on #{path} [No Response]")
251+
print_warning("WARNING: Undeployment failed on #{path_tmp} [No Response]")
252252
elsif (res.code < 200 or res.code >= 300)
253-
print_warning("Deletion failed on #{path} [#{res.code} #{res.message}]")
253+
print_warning("Deletion failed on #{path_tmp} [#{res.code} #{res.message}]")
254254
end
255255

256256
handler

0 commit comments

Comments
 (0)