From c39410a0705d06522cf1568563618fea3ba8091d Mon Sep 17 00:00:00 2001 From: Josh Hale Date: Wed, 13 Apr 2016 23:31:27 -0500 Subject: [PATCH] Fix autoadd problem --- modules/post/windows/manage/autoroute.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/modules/post/windows/manage/autoroute.rb b/modules/post/windows/manage/autoroute.rb index 8d2670ca37..d2461a4e47 100644 --- a/modules/post/windows/manage/autoroute.rb +++ b/modules/post/windows/manage/autoroute.rb @@ -162,11 +162,9 @@ class MetasploitModule < Msf::Post def is_routable?(route) if route.subnet =~ /^224\.|127\./ return false - elsif route.subnet =~ /[\d\.]+\.0$/ - return false elsif route.subnet == '0.0.0.0' return false - elsif route.subnet == '255.255.255.255' + elsif route.netmask == '255.255.255.255' return false end