LeakedIn Logo
Stories About Data Leaks and Related Stuff

Potential leak of data: US SSN

0 votedvote

Detected 36 occurrence(s) of ‘[ \t\n]((?!000)(?!666)([0-6]\d{2}|7[0-2][0-9]|73[0-3]|7[5-6][0-9]|77[0-1]))\-((?!00)\d{2})\-((?!0000)\d{4})[ \t\n]‘:

No repeating sequence in SSN (e.g. 123-12-3123)
123-12-3123
    456-45-6456
    789-78-9789
	
/
   ^
   (?: 012-01-2012
   |   123-12-3123
   |   234-23-4234
   |   345-34-5345
   |   456-45-6456
   |   567-56-7567
   |   678-67-8678
   |   789-78-9789
   )
   z
/x
	
my @alts;
for (0..7) {
   my ($x, $y, $z) = ($_+0, $_+1, $_+2);
   push @alts, "$x$y$z-$x$y-$z$x$y$z";
}

my $alt = join('|', @alts);

/^(?:$alt)z/
	
/
   ^
   (?: 01-?2-? | 12-?3-? | 23-?4-? | 34-?5-?
   |   45-?6-? |

Source: http://pastebin.com/raw.php?i=nwvYmxgi

Tags: ,

Comments are closed.