ma - PHP Online
Form of PHP Sandbox
*** This page was generated with the meta tag "noindex, nofollow". This happened because you selected this option before saving or the system detected it as spam. This means that this page will never get into the search engines and the search bot will not crawl it. There is nothing to worry about, you can still share it with anyone.
Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php
in the places where the PHP script should be executed.
Result of php executing
Full code of ma.php
- <?php
- $red="\033[1;31m";
- $green="\033[1;32m";
- $yellow="\033[1;33m";
- $blud="\033[1;34m";
- $res="\033[1;35m";
- $nau="\033[1;36m";
- $trang="\033[1;37m";
- error_reporting(0);
- system("clear");
- mkdir('key_mtx');
- function GET($host,$tsm){
- $mr = curl_init();
- curl_setopt_array($mr, array(
- CURLOPT_PORT => "443",
- CURLOPT_URL => "$host",
- CURLOPT_RETURNTRANSFER => true,
- CURLOPT_SSL_VERIFYPEER => false,
- CURLOPT_CUSTOMREQUEST => "GET",
- CURLOPT_HTTPHEADER => $tsm));
- $mr2 = curl_exec($mr); curl_close($mr);
- return $mr2;}
- function POST($host,$tsm,$data){
- $mr = curl_init();
- curl_setopt_array($mr, array(
- CURLOPT_HEADER => true,
- CURLOPT_PORT => "443",
- CURLOPT_URL => "$host",
- CURLOPT_RETURNTRANSFER => true,
- CURLOPT_SSL_VERIFYPEER => false,
- CURLOPT_CUSTOMREQUEST => "POST",
- CURLOPT_POSTFIELDS => $data,
- CURLOPT_HTTPHEADER => $tsm));
- $mr2 = curl_exec($mr); curl_close($mr);
- return $mr2;}
- function bv($vanban){$str = strlen($vanban);
- for($i=0;$i<=$str;$i++){echo $vanban[$i]; usleep(1000);}
- return 1;}
- $de="Số điểm hiện tại:
- </td>
- <td>";
- $de1="-";
- $hhh="</div>
- </td>
- <td>";
- $hhh1="<";
- system('clear');
- echo "Nhập cookie web mtxgame.shop: ";
- $cookie=trim(fgets(STDIN));
- $dnn="www.mtxgame.shop";
- $a1="Host: $dnn";
- $a2="upgrade-insecure-requests: 1";
- $a3="user-agent:Mozilla/5.0 (iPad; CPU OS 17_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/118.0.5993.92 Mobile/15E148 Safari/604.1";
- $a4="cookie:$cookie";
- $a5="content-type:application/x-www-form-urlencoded";
- $head_mtx=array($a1,$a2,$a3,$a4);
- $head_code=array($a1,$a2,$a3,$a5,$a4);
- $dn=GET("https://$dnn",$head_mtx);
- $name=explode(',',explode('Xin chào',$dn)[1])[0];
- $name=trim($name);
- $play=explode('"',explode('https://'.$dnn.'/play/',$dn)[1])[0];
- $checkdiem=GET("https://$dnn/play/$play",$head_mtx);
- $diem =explode(''.$de1.'',explode(''.$de.'',$checkdiem)[1])[0];
- $diem=trim($diem);
- echo $trang."$name | $diem điểm\n";
- echo "-----------------------------------\n";
- $job=GET("https://$dnn/play/$play",$head_mtx);
- while(true){
- $uid=explode('"',explode('name="assignment_id" value="',$job)[1])[0];
- $token=explode('"',explode('name="_token" value="',$job)[1])[0];
- $luot=explode(' lượt',explode('(bạn còn ',$job)[1])[0];
- $web=explode('<',explode('Website:',$job)[1])[0];
- $web=trim($web);
- if($uid==true){
- if($web=="Phát Đạt" or $web=="Phát Đạt Chấm info"){$url='https://thongcongnghet.info/';}
- elseif($web=="Hòa Phát"){$url="";} //ok
- elseif($web=="Tiến Phát"){$url="";} //ok
- elseif($web=="Thịnh Phát"){$url="";} //ok
- elseif($web=="Vĩnh Phát"){$url="";} //ok
- elseif($web=="Cường Phát"){$url="";} //ok
- elseif($web=="Trí Bảo"){$url="https://thongcaucongnghet.info/";} //ok
- elseif($web=="Đại Phát"){$url="";} //ok
- elseif($web=="Lộc Phát"){$url="https://thongcongnghethcm.biz/";} //ok
- elseif($web=="Hưng Phát"){$url="https://thongcongnghetgiare.info/";}
- elseif($web=="Minh Đức"){$url="https://thongcongnghethcm.net/";}//ok
- elseif($web=="Thuận Phát"){$url="";}//ok
- elseif($web=="Bảo Phát"){$url="";}//ok
- elseif($web=="Vạn Phát"){$url="";}//ok
- elseif($web=="Quang phát"){$url="";}
- elseif($web=="Đức Bảo"){$url="";}
- elseif($web=="Bảo Minh"){$url="";}
- elseif($web=="Toàn Phát"){$url="";}
- elseif($web=="Thịnh Đạt"){$url="";}
- elseif($web=="Quang Minh"){$url="";}
- elseif($web=="Tài Phát"){$url="";}
- elseif($web=="Hưng Thịnh"){$url="https://naovethoga.net/";}
- elseif($web=="Tiến Minh"){$url="https://thongcongnghetgiare.net/";}
- else{echo $red."chua co $web\n";sleep(1);exit;}
- if($url==false){echo "checlkll $web\n";exit;}
- $check_key=GET($url,array());
- if(strpos($check_key, 'mtxgames.shop')==true){
- $key=explode('"',explode('"https://mtxgames.shop/api/frame.js?key=',$check_key)[1])[0];
- unlink("key_mtx/$web");
- file_put_contents("key_mtx/$web",$key,FILE_APPEND);
- }else{
- $key=file_get_contents("key_mtx/$web");
- }
- $delay=mt_rand(70,80);
- for ($i=$delay; $i > -1; $i--) {
- echo "Vui lòng chờ sau $i giây \r";sleep(1);
- }
- $check_code=GET("https://mtxgames.shop/getcode?key=$key",array());
- $code=json_decode($check_code,true)['code'];
- $fa="code=$code&assignment_id=$uid&_token=$token";
- $nhapcode=POST("https://".$dnn."/submit_code",$head_code,$fa);
- $job=GET("https://$dnn/play/$play",$head_mtx);
- $diem =explode(''.$de1.'',explode(''.$de.'',$job)[1])[0];
- $diem=trim($diem);
- echo $trang."tên web: $web | hiện có: $diem điểm \n";
- }else{
- exit("Hết job \n");
- }
- }
- ?>