Warn if it's not UPPERCASE method (@wchen-r7)

See the discussion on f7bfab5a26, PR #3386
bug/bundler_fix
Tod Beardsley 2014-05-23 17:10:27 -05:00
parent 9f78bec457
commit 1aee0f3305
No known key found for this signature in database
GPG Key ID: 1EFFB682ADB9F193
1 changed files with 4 additions and 0 deletions

View File

@ -331,6 +331,10 @@ class Metasploit3 < Msf::Auxiliary
end
def run_host(ip)
# Warn if it's not a well-formed UPPERCASE method
if datastore['METHOD'] !~ /^[A-Z]+$/
print_warning("HTTP method #{datastore['METHOD']} is not Apache-compliant. Try only UPPERCASE letters.")
end
print_status("Running action: #{action.name}...")
# And it's..... "SHOW TIME!!"