added validation for the route command - thanks robin wood
git-svn-id: file:///home/svn/framework3/trunk@9992 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
f48afb37a7
commit
fb6b993492
|
@ -783,6 +783,18 @@ class Core
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Satisfy check to see that formatting is correct
|
||||||
|
unless Rex::Socket::RangeWalker.new(args[0]).length == 1
|
||||||
|
print_error "Invalid IP Address"
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
|
||||||
|
unless Rex::Socket::RangeWalker.new(args[1]).length == 1
|
||||||
|
print_error "Invalid Subnet mask"
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
gw = nil
|
gw = nil
|
||||||
|
|
||||||
# Satisfy case problems
|
# Satisfy case problems
|
||||||
|
@ -816,6 +828,19 @@ class Core
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
# Satisfy check to see that formatting is correct
|
||||||
|
unless Rex::Socket::RangeWalker.new(args[0]).length == 1
|
||||||
|
print_error "Invalid IP Address"
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
|
||||||
|
unless Rex::Socket::RangeWalker.new(args[1]).length == 1
|
||||||
|
print_error "Invalid Subnet mask"
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
gw = nil
|
gw = nil
|
||||||
|
|
||||||
# Satisfy case problems
|
# Satisfy case problems
|
||||||
|
|
Loading…
Reference in New Issue