r23k NuuBiiTooL
Jumlah posting : 2 Points : 6 Reputation : 0 Join date : 23.07.13 Age : 42 Lokasi : DW
| Subyek: Riding a wordlist php Mon Jul 29, 2013 12:35 am | |
| - Code:
-
<?php ################################################## ### Wordlist simple php r23k ################################################## ###
//The getRandomword = 7 is the number of characters
function getRandomWord($len = 7) {
//O array_merge = this case will be a combination of the z
$word = array_merge(range('a', 'z'), range('A', 'Z')); shuffle($word); return substr(implode($word), 0, $len); }
//O 1000 = this case is the number of repetitions, here we have to make some calculations combinatorics not to repeat combinations. Eg you put $ len = 2 and 'a', 'c' is the number of repetitions equal to "6" = ab, ba, ca, ac, cb, bc or 2 * 3 = 6
for ($i = 0; $i < 1000; $i++) { echo getRandomWord()."<p>";
}
?> | |
|