Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- this code creates accounts five at a time (you can only do 5 per ip per 24 hours)
- it keeps count in a file called 'start' -- a single line with a number. you'll have to create it and put 0 in it.
- <?php
- error_reporting(E_ALL & ~E_WARNING);
- ini_set('display_errors', 'On');
- $ip = '142.93.126.123';
- $cookie_jar = tempnam('./','cookie');
- $start= (int)file_get_contents('start');
- echo $start . " is new start\n\n";
- for($x=0;$x<=4;$x++) {
- $count = $start++;
- // grab token
- $c = curl_init('https://tinychat.com');
- curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($c, CURLOPT_FOLLOWLOCATION, 1);
- curl_setopt($c, CURLOPT_SSL_VERIFYPEER, 0);
- curl_setopt($c, CURLOPT_COOKIEJAR, $cookie_jar);
- $html = curl_exec($c);
- //parse out token
- $doc = new DOMDocument();
- $doc->loadHTML($html);
- $metas = $doc->getElementsByTagName('meta');
- for ($i = 0; $i < $metas->length; $i++) {
- $meta = $metas->item($i);
- if($meta->getAttribute('name') == 'csrf-token')
- $description = $meta->getAttribute('content');
- }
- unset($doc);
- $post = "register_username=con" . $count . "®ister_email=" . $count . "%40bant.me®ister_password=chattiny&bday_month=1&bday_day=1&bday_year=1970&g-recaptcha-response=&receive_updates=1&next=https%3A%2F%2Ftinychat.com%2F&_token=" . $description;
- // create account
- $c = curl_init('https://tinychat.com/start');
- curl_setopt($c, CURLOPT_POST, 1);
- curl_setopt($c, CURLOPT_SSL_VERIFYPEER, 0);
- curl_setopt($c, CURLOPT_POSTFIELDS,$post);
- curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($c, CURLOPT_COOKIEFILE, $cookie_jar);
- $html = curl_exec($c);
- }
- file_put_contents('start',$count);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement