Land #7395, Ninja Forms module update

bug/bundler_fix
William Vu 2016-10-04 11:14:30 -05:00
commit 63ed5624ff
No known key found for this signature in database
GPG Key ID: 68BD00CE25866743
1 changed files with 7 additions and 1 deletions

View File

@ -69,7 +69,11 @@ class MetasploitModule < Msf::Exploit::Remote
)
unless res && res.code == 200
fail_with(Failure::Unreachable, 'Failed to enable the vulnerable V3 functionality')
if res
fail_with(Failure::Unreachable, "Failed to enable the vulnerable V3 functionality. Server returned: #{res.code}, should be 200.")
else
fail_with(Failure::Unreachable, 'Connection timed out.')
end
end
vprint_good 'Enabled V3 functionality'
@ -85,6 +89,8 @@ class MetasploitModule < Msf::Exploit::Remote
if res && res.code == 200
vprint_good 'Disabled V3 functionality'
elsif !res
print_error('Connection timed out while disabling V3 functionality')
else
print_error 'Failed to disable the vulnerable V3 functionality'
end