diff --git a/modules/auxiliary/admin/http/linksys_wrt54gl_exec.rb b/modules/auxiliary/admin/http/linksys_wrt54gl_exec.rb index e9f525b7ec..85d8c93afa 100644 --- a/modules/auxiliary/admin/http/linksys_wrt54gl_exec.rb +++ b/modules/auxiliary/admin/http/linksys_wrt54gl_exec.rb @@ -67,7 +67,7 @@ class Metasploit3 < Msf::Auxiliary # using the RHOST for the correct lan IP settings # WARNING: Attacks via the WAN IP are breaking the LAN configuration of the device! - if datastore['LANIP'] =~ // + if datastore['LANIP'] !~ // ip = datastore['LANIP'].split('.') else ip = rhost.split('.')