Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function GenerateName($len){
- $characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
- $charactersLength = strlen($characters);
- $randomString = '';
- $i = 0;
- for (; $i < $len ; $i++) {
- $randomString .= $characters[rand(0, $charactersLength - 1)];
- }
- return $randomString;
- }
- if(isset($_POST['number']))
- {
- $i = 1;
- while ($i <= $_POST['number'])
- {
- $user = GenerateName(rand(4,10));
- $pass = GenerateName(rand(4,10));
- $sex = rand(0,1);
- $data = array("user" => $user, "pass" => $pass , "conpass" => $pass , "sex" => $sex , "btn-regis" => "", "type" => "register");
- $data_string = http_build_query($data);//json_encode($data);
- $ch = curl_init('http://xtrem.tf/Inscription/api/callback.php');
- curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
- curl_setopt($ch, CURLOPT_POSTFIELDS, $data_string);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- curl_setopt($ch, CURLOPT_HTTPHEADER, array(
- 'Content-Type: application/x-www-form-urlencoded;',
- 'Referer: http://xtrem.tf/Inscription/register.php',
- 'X-Request-With: XMLHttpRequest',
- 'Content-Length: ' . strlen($data_string))
- );
- $result = curl_exec($ch);
- echo $result;
- echo "<br>Compte numero ".$i." - User : ".$user." - Password: ".$pass."<br><br>";
- $i++;
- }
- }
- else
- {
- echo '<form action="pagesender.php" method="post">
- <p>Nombre de compte : <input type="text" name="number" /></p>
- <p><input type="submit" value="OK"></p>
- </form>';
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement