Fix bug #5834 (uri being nil in print_good)

git-svn-id: file:///home/svn/framework3/trunk@14057 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Wei Chen 2011-10-25 00:40:03 +00:00
parent b016d8944e
commit 2da07d4963
1 changed files with 2 additions and 1 deletions

View File

@ -267,10 +267,11 @@ class Metasploit3 < Msf::Exploit::Remote
# JBoss might need some time for the deployment. Try 5 times at most and
# wait 3 seconds inbetween tries
uri = '/' + app_base + '/' + jsp_name + '.jsp'
num_attempts = 5
num_attempts.times { |attempt|
res = send_request_cgi({
'uri' => '/' + app_base + '/' + jsp_name + '.jsp',
'uri' => uri,
'method' => verb
}, 20)