Created
June 25, 2017 23:08
-
-
Save dryliketoast/dd47515feb6df83b06d67612b869cdc4 to your computer and use it in GitHub Desktop.
Brute force password list generator
This file contains hidden or 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
| <?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