If the target isn't support, make sure we warn the user

This commit is contained in:
sinn3r 2012-05-17 12:34:17 -05:00
parent 952ada1742
commit 0b35ab6a75
1 changed files with 2 additions and 7 deletions

View File

@ -252,12 +252,6 @@ class Metasploit3 < Msf::Exploit::Remote
agent = request.headers['User-Agent']
if agent !~ /Firefox\/8\.0/ and agent !~ /Firefox\/9\.0/
vprint_error("This browser version is not supported: #{agent.to_s}")
send_not_found(cli)
return
end
my_target = target
if my_target.name == 'Automatic'
if agent =~ /NT 5\.1/ and agent =~ /Firefox\/8/
@ -266,7 +260,8 @@ class Metasploit3 < Msf::Exploit::Remote
my_target = targets[3]
elsif agent =~ /NT 5\.1/ and agent =~ /Firefox\/9\.0/
my_target = targets[2]
elsif vprint_error("This Operating System is not supported: #{agent.to_s}")
else
print_error("Target not supported: #{agent.to_s}")
send_not_found(cli)
return
end