Skip to content

Instantly share code, notes, and snippets.

@breakersall
Last active August 29, 2015 14:06
Show Gist options
  • Save breakersall/f966fc4e25ba9b231c30 to your computer and use it in GitHub Desktop.
Save breakersall/f966fc4e25ba9b231c30 to your computer and use it in GitHub Desktop.
Parse facebook namelist into usable lists for username bruteforcing
#First.Last
$Unamestream = new-object System.IO.StreamWriter("names.txt")
$FNames = Get-Content fname_10.txt
$LNames = Get-Content lname_10.txt
foreach ($FName in $FNames)
{
foreach ($LName in $LNames)
{
$Name = "$FName" + "." + "$LName"
$Unamestream.WriteLine($Name)
}
}
$Unamestream.Close()
#FirstInitial_Lastname
$unameStream = new-object System.IO.StreamWriter("unames.txt")
[array]$letters = "a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"
$lastnames = get-content lastnames.txt
foreach ($letter in $letters)
{
foreach ($lastname in $lastnames)
{
$uname = "$letter + $lastnames"
$unameStream.WriteLine($uname)
}
}
$unameStream.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment