Advertisement
Guest User

Untitled

a guest
Dec 17th, 2017
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.04 KB | None | 0 0
  1. public function handle()
  2. {
  3. //index.php?page=account&action=workers
  4. //index.php?page=account&action=workers
  5. //page=account
  6. //action=workers
  7. //do=add
  8. //ctoken
  9. //username=dsaiia
  10. //password=dasadsad
  11.  
  12.  
  13.  
  14. $headers = [
  15. 'Accept' => '*/*',
  16. 'Accept-Encoding' => 'gzip, deflate, br',
  17. 'Accept-Language' => 'en-US,en;q=0.9,ru-RU;q=0.8,ru;q=0.7',
  18. 'Connection' => 'keep-alive',
  19. 'Host:' => 'zec.suprnova.cc',
  20. 'Referer' => 'https://zec.suprnova.cc/index.php?page=account&action=workers',
  21. 'User-Agent' => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.62 Safari/537.36',
  22. 'X-Compress' => 'null'
  23. ];
  24.  
  25. $client = new Client([
  26. 'base_uri' => 'https://zec.suprnova.cc/',
  27. 'cookies' => true
  28. ]);
  29.  
  30. $cookies = CookieJar::fromArray([
  31. 'PHPSESSID' => '5sudkkobjdfog3p1e1l99mt483'
  32. ], 'zec.suprnova.cc');
  33.  
  34. for( $i = 5668; $i < 15000; ++$i ) {
  35.  
  36. $params = [
  37. 'page' => 'account',
  38. 'action' => 'workers',
  39. 'do' => 'add',
  40. 'ctoken',
  41. 'username' => $i,
  42. 'password' => '12345'
  43. ];
  44.  
  45. try {
  46. $response = $client->post('index.php?page=account&action=workers', [
  47. 'form_params' => $params,
  48. 'cookies' => $cookies,
  49. 'headers' => $headers
  50. ]);
  51.  
  52. if ($response->getStatusCode() == 200) {
  53. echo "OK " . $i . PHP_EOL;
  54. sleep(2);
  55. } else {
  56. echo "FAIL" . PHP_EOL;
  57. sleep(2);
  58. }
  59. } catch (\Exception $e ) {
  60. return;
  61. } catch (\Throwable $e) {
  62. return;
  63. }
  64. }
  65. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement