Skip to content

Commit ad87065

Browse files
committed
Land rapid7#1904 - Undefined variable 'path' in tomcat_deploy_mgr.rb
2 parents 30a019e + 71bc06d commit ad87065

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)