Created
August 6, 2017 19:09
-
-
Save packetchef/8a86b1a76ba6034fec380ac983870793 to your computer and use it in GitHub Desktop.
Generate random numbers that look like SSNs. This ignores the SSA's algorithms and is really just random numbers.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while($True) { | |
$ssn1 = $(random -min 1 -max 999).tostring("000") | |
$ssn2 = $(random -min 1 -max 99).tostring("00") | |
$ssn3 = $(random -min 1 -max 9999).tostring("0000") | |
$ssn = $ssn1 + "-" + $ssn2 + "-" + $ssn3 | |
write-output $ssn | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment