add aditional check to detect valid device

unstable
jvazquez-r7 2013-02-01 20:55:06 +01:00
parent 996ee06b0f
commit c24c926ffa
1 changed files with 1 additions and 0 deletions

View File

@ -99,6 +99,7 @@ class Metasploit3 < Msf::Auxiliary
}) })
return :abort if res.nil? return :abort if res.nil?
return :abort if (res.headers['Server'].nil? or res.headers['Server'] !~ /simple httpd/)
return :abort if (res.code == 404) return :abort if (res.code == 404)
if [200, 301, 302].include?(res.code) if [200, 301, 302].include?(res.code)