add checks for enabled services

unstable
jvazquez-r7 2013-01-30 17:37:41 +01:00
parent 668520d8d9
commit cf6aae7bb7
1 changed files with 14 additions and 0 deletions

View File

@ -41,6 +41,13 @@ class Metasploit3 < Msf::Auxiliary
user = ""
password = ""
enabled = ""
if conf =~ /PPPOE_EN=(\d)/
enabled = $1
end
return if enabled == "0"
if conf =~ /PPPOE_USER=(.*)/
user = $1
@ -71,6 +78,13 @@ class Metasploit3 < Msf::Auxiliary
hostname = ""
user = ""
password = ""
enabled = ""
if conf =~ /DDNS_EN=(\d)/
enabled = $1
end
return if enabled == "0"
if conf =~ /DDNS_HOSTNAME=(.*)/
hostname = $1