From 11c13500bed711f3d1e8e09aaa202e8799e3edb0 Mon Sep 17 00:00:00 2001 From: m-1-k-3 Date: Mon, 21 Jan 2013 13:41:42 +0100 Subject: [PATCH] small fix --- modules/auxiliary/admin/http/linksys_wrt54gl_exec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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('.')