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 +}