kakatoji

scnuyul spin for chas

May 31st, 2020
430
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1. <?php
  2.  
  3. function curl($url, $post){
  4. $ch = curl_init($ch);
  5. curl_setopt($ch, CURLOPT_URL, $url);
  6. curl_setopt($ch, CURLOPT_POST,1);
  7. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  8. curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
  9. return curl_exec($ch);
  10. curl_close($ch);
  11. }
  12.  
  13. $baner = "_ ______ _ ______ _
  14. | |/ / __ )| |/ / ___|_/\_| |_ _ __ ___
  15. | ' /| _ \| ' / | _\ / __| '_ ` _ \
  16. | . \| |_) | . \ |_| /_ _\ |_| | | | | |
  17. |_|\_\____/|_|\_\____| \/ \__|_| |_| |_|";
  18.  
  19. //ambil data login
  20.  
  21. function login($user, $pass){
  22. $url="https://latestnaapp.oceanofgames.pro/api.php";
  23. $post="username=$user&access_key=6808&password=$pass&user_login=1&";
  24. return json_decode(curl($url, $post));
  25.  
  26. }
  27.  
  28. //ambil data spin nya
  29.  
  30. function spin($user, $point){
  31. $url="https://latestnaapp.oceanofgames.pro/api.php";
  32. $post="username=$user&access_key=6808&type=Spin+wheel&add_spin=1&points=$point&";
  33. return json_decode(curl($url, $post));
  34.  
  35. }
  36.  
  37. echo "Username: ";
  38. $user=trim(fgets(STDIN));
  39. echo "password: ";
  40. $pass=trim(fgets(STDIN));
  41. echo "ISI POINT: ";
  42. $point=trim(fgets(STDIN));
  43.  
  44. echo $baner."\n";
  45. echo "\n";
  46. echo "created by KAKATOJI\n";
  47. echo "\n";
  48.  
  49.  
  50. $login = login($user, $pass);
  51.  
  52. if($login->error == "false"){
  53. echo "[login] {$login->message} => {$login->data->username}\n";
  54.  
  55. while(true){
  56. $log = login($user, $pass);
  57. $spin= spin($log->data->username, $point);
  58.  
  59. echo "[+] {$log->data->username} | {$spin->message} | Point: {$log->data->points}\n";
  60. }
  61.  
  62. }else{
  63. echo "gagal boss!!!!!.....";
  64. }
  65.  
  66.  
  67.  
  68.  
  69. ?>
Add Comment
Please, Sign In to add comment