Skip to content

Instantly share code, notes, and snippets.

@packetchef
Created August 6, 2017 19:09
Show Gist options
  • Save packetchef/8a86b1a76ba6034fec380ac983870793 to your computer and use it in GitHub Desktop.
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.
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