kakatoji

spin code by kakatoji

May 17th, 2020
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | None | 0 0
  1. <?php
  2. function curl($url, $post){
  3. $ch = curl_init();
  4. curl_setopt($ch, CURLOPT_URL, $url);
  5. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
  6. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  7. curl_setopt($ch, CURLOPT_POST, 1);
  8. curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
  9. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
  10. curl_setopt($ch, CURLOPT_COOKIEJAR, "cookie.txt");
  11. curl_setopt($ch, CURLOPT_COOKIEFILE, "cookie.txt");
  12. return curl_exec($ch);
  13. }
  14. function login($user,$pass){
  15. $url="https://latestnaapp.oceanofgames.pro/api.php";
  16. $post="username=$user&access_key=6808&password=$pass&user_login=1&";
  17. return json_decode(curl($url,$post));
  18. }
  19. function spin($user, $point){
  20. $url="https://latestnaapp.oceanofgames.pro/api.php";
  21. $post="username=$user&access_key=6808&type=Spin+wheel&add_spin=1&points=$add&";
  22. return json_decode(curl($url,$post));
  23. }
  24. echo "\e[6;33mUsername : ";
  25. $user = trim(fgets(STDIN));
  26. echo "\e[6;33mPassword : ";
  27. $pass = trim(fgets(STDIN));
  28. echo "\e[6;33mPoint : ";
  29. $add = trim(fgets(STDIN));
  30. echo "\e[6;35m=================================================================\n";
  31.  
  32. $login=login($user,$pass);
  33. if ($login->error == "false") {
  34. echo "\e[6;32m[Login] Sucsessfully login As \e[6;33m{$login->data->username}\n";
  35.  
  36. while(true){
  37. $log = login($user,$pass);
  38. $spin= spin($log->data->username, $add);
  39. echo "\e[1;32m[+] \e[6;33m{$log->data->username} | \e[6;35m{$spin->message} | Point : \e[6;36m{$log->data
  40. ->points}\n";
  41. }
  42. }else{
  43. echo "\e[4;31m[!] gagal login...!";
  44.  
  45. }
Add Comment
Please, Sign In to add comment