1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00
This commit is contained in:
dmiller
2015-11-25 03:01:27 +00:00
parent 8d418d4962
commit 46388d28db

View File

@@ -170,7 +170,7 @@ end
-- A function to validate ssn numbers.
local function ssn(matched_ssn)
local group_1, group_2, group_3 = matched_ssn:match('(%d%d%d%)-(%d%d%)-(%d%d%d%d)')
local group_1, group_2, group_3 = matched_ssn:match('(%d%d%d)%-(%d%d)%-(%d%d%d%d)')
group_1, group_2, group_3 = tonumber(group_1), tonumber(group_2), tonumber(group_3)
if group_1*group_2*group_3 == 0 then return false end
if group_1 == 666 or (900 <= group_1 and group_1 <= 999) then return false end