Fix undefined method error

[FixRM #8340]
bug/bundler_fix
sinn3r 2013-08-21 00:49:13 -05:00
parent 217d89fa7c
commit 32a190f1bd
1 changed files with 1 additions and 1 deletions

View File

@ -164,7 +164,7 @@ class Metasploit3 < Msf::Auxiliary
'data' => webdav_req + "\r\n\r\n",
}, 20)
if (res.code.to_i == 207)
if (res and res.code.to_i == 207)
print_status("\tFound vulnerable WebDAV Unicode bypass target #{wmap_base_url}#{tpath}%c0%af#{testfdir} #{res.code} (#{wmap_target_host})")
# Unable to use report_web_vuln as method is PROPFIND and is not part of allowed