Facebook
From Gentle Wolf, 6 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 266
  1. <?php
  2.  
  3. function api( $url, $params ) {
  4. $postData = '';
  5. foreach( $params as $k => $v ) {
  6. $postData .= $k . '=' . $v . '&';
  7. }
  8. $postData = rtrim( $postData, '&' );
  9. $ch = curl_init();
  10. curl_setopt( $ch, CURLOPT_URL, $url );
  11. curl_setopt( $ch, CURLOPT_COOKIE, "ref=28509");
  12. curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
  13. curl_setopt( $ch, CURLOPT_HEADER, true );
  14. curl_setopt( $ch, CURLOPT_POST, count( $postData ) );
  15. curl_setopt( $ch, CURLOPT_POSTFIELDS, $postData );
  16. $output = curl_exec( $ch );
  17. curl_close( $ch );
  18. return $output;
  19. }
  20. /*
  21. $url = "https://simplemining.biz/register.php?ref=22138";
  22. $data = array('email' => '[email protected]', 'pass' => 'dobre123123', 'pass2' => 'dobre123123', 'register' => '');
  23.  
  24. api($url, $data);
  25. */
  26.  
  27. for($i=0; $i<$i+1; $i++)
  28. {
  29.     $url = "https://simplemining.biz/register.php";
  30.     $email = 'akisoboss';
  31.     $email .= $i;
  32.     $email .= '@gmail.com';
  33.     $data = array('email' => $email, 'pass' => 'testujemy123', 'pass2' => 'testujemy123', 'register' => '');
  34.     api($url, $data);
  35. }
  36.  
  37. ?>