Skip to content

Instantly share code, notes, and snippets.

@dryliketoast
Created June 25, 2017 23:08
Show Gist options
  • Select an option

  • Save dryliketoast/dd47515feb6df83b06d67612b869cdc4 to your computer and use it in GitHub Desktop.

Select an option

Save dryliketoast/dd47515feb6df83b06d67612b869cdc4 to your computer and use it in GitHub Desktop.
Brute force password list generator
<?PHP
$keys = "0 1 2 3 4 5 7 8 9 a b c d e f";
$keys = explode(' ', $keys);
$length = 8;
echo loop($length,$keys);
function loop($length,$keys,$depth=1,$buffer='')
{
$prev = $buffer;
foreach($keys as $i)
{
$buffer = "{$prev}$i";
if($depth == $length)
echo "$buffer\n";
if($depth < $length)
{
$depth++;
loop($length,$keys,$depth,$buffer);
$depth--;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment