mirror of
https://github.com/rapid7/metasploit-framework
synced 2024-11-12 11:52:01 +01:00
ignore 0.0.0.0
git-svn-id: file:///home/svn/framework3/trunk@5920 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
parent
e14bf65099
commit
21cb3a5c79
@ -6,6 +6,7 @@
|
|||||||
client.net.config.each_route { |route|
|
client.net.config.each_route { |route|
|
||||||
# Remove multicast and loopback interfaces
|
# Remove multicast and loopback interfaces
|
||||||
next if route.subnet =~ /^(224\.|127\.)/
|
next if route.subnet =~ /^(224\.|127\.)/
|
||||||
|
next if route.subnet == '0.0.0.0'
|
||||||
next if route.netmask == '255.255.255.255'
|
next if route.netmask == '255.255.255.255'
|
||||||
print_line("Local subnet: #{route.subnet}/#{route.netmask}")
|
print_line("Local subnet: #{route.subnet}/#{route.netmask}")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user