Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function curl($url, $post){
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, $url);
- curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
- curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
- curl_setopt($ch, CURLOPT_COOKIEJAR, "cookie.txt");
- curl_setopt($ch, CURLOPT_COOKIEFILE, "cookie.txt");
- return curl_exec($ch);
- }
- function login($user,$pass){
- $url="https://latestnaapp.oceanofgames.pro/api.php";
- $post="username=$user&access_key=6808&password=$pass&user_login=1&";
- return json_decode(curl($url,$post));
- }
- function spin($user, $point){
- $url="https://latestnaapp.oceanofgames.pro/api.php";
- $post="username=$user&access_key=6808&type=Spin+wheel&add_spin=1&points=$add&";
- return json_decode(curl($url,$post));
- }
- echo "\e[6;33mUsername : ";
- $user = trim(fgets(STDIN));
- echo "\e[6;33mPassword : ";
- $pass = trim(fgets(STDIN));
- echo "\e[6;33mPoint : ";
- $add = trim(fgets(STDIN));
- echo "\e[6;35m=================================================================\n";
- $login=login($user,$pass);
- if ($login->error == "false") {
- echo "\e[6;32m[Login] Sucsessfully login As \e[6;33m{$login->data->username}\n";
- while(true){
- $log = login($user,$pass);
- $spin= spin($log->data->username, $add);
- echo "\e[1;32m[+] \e[6;33m{$log->data->username} | \e[6;35m{$spin->message} | Point : \e[6;36m{$log->data
- ->points}\n";
- }
- }else{
- echo "\e[4;31m[!] gagal login...!";
- }
Add Comment
Please, Sign In to add comment