From 21cb3a5c79b4bdd833562e6cdbdade54b9bf77b6 Mon Sep 17 00:00:00 2001 From: kris <> Date: Fri, 14 Nov 2008 17:12:38 +0000 Subject: [PATCH] ignore 0.0.0.0 git-svn-id: file:///home/svn/framework3/trunk@5920 4d416f70-5f16-0410-b530-b9f4589650da --- scripts/meterpreter/get_local_subnets.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/meterpreter/get_local_subnets.rb b/scripts/meterpreter/get_local_subnets.rb index 32a19cb8b8..d44394626e 100644 --- a/scripts/meterpreter/get_local_subnets.rb +++ b/scripts/meterpreter/get_local_subnets.rb @@ -6,6 +6,7 @@ client.net.config.each_route { |route| # Remove multicast and loopback interfaces next if route.subnet =~ /^(224\.|127\.)/ + next if route.subnet == '0.0.0.0' next if route.netmask == '255.255.255.255' print_line("Local subnet: #{route.subnet}/#{route.netmask}") -} \ No newline at end of file +}