Advertisement
Guest User

Untitled

a guest
Mar 25th, 2019
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.75 KB | None | 0 0
  1. this code creates accounts five at a time (you can only do 5 per ip per 24 hours)
  2. 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.
  3.  
  4. <?php
  5. error_reporting(E_ALL & ~E_WARNING);
  6.  
  7. ini_set('display_errors', 'On');
  8.  
  9.  
  10. $ip = '142.93.126.123';
  11. $cookie_jar = tempnam('./','cookie');
  12. $start= (int)file_get_contents('start');
  13.  
  14. echo $start . " is new start\n\n";
  15.  
  16. for($x=0;$x<=4;$x++) {
  17.  
  18. $count = $start++;
  19.  
  20. // grab token
  21.  
  22. $c = curl_init('https://tinychat.com');
  23. curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
  24. curl_setopt($c, CURLOPT_FOLLOWLOCATION, 1);
  25. curl_setopt($c, CURLOPT_SSL_VERIFYPEER, 0);
  26. curl_setopt($c, CURLOPT_COOKIEJAR, $cookie_jar);
  27. $html = curl_exec($c);
  28.  
  29.  
  30.  
  31.  
  32. //parse out token
  33. $doc = new DOMDocument();
  34. $doc->loadHTML($html);
  35.  
  36.  
  37. $metas = $doc->getElementsByTagName('meta');
  38.  
  39. for ($i = 0; $i < $metas->length; $i++) {
  40. $meta = $metas->item($i);
  41. if($meta->getAttribute('name') == 'csrf-token')
  42. $description = $meta->getAttribute('content');
  43. }
  44.  
  45.  
  46. unset($doc);
  47.  
  48. $post = "register_username=con" . $count . "&register_email=" . $count . "%40bant.me&register_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;
  49.  
  50. // create account
  51.  
  52. $c = curl_init('https://tinychat.com/start');
  53. curl_setopt($c, CURLOPT_POST, 1);
  54. curl_setopt($c, CURLOPT_SSL_VERIFYPEER, 0);
  55. curl_setopt($c, CURLOPT_POSTFIELDS,$post);
  56. curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
  57. curl_setopt($c, CURLOPT_COOKIEFILE, $cookie_jar);
  58. $html = curl_exec($c);
  59.  
  60.  
  61.  
  62. }
  63. file_put_contents('start',$count);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement