ma - PHP Online

Form of PHP Sandbox

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.



Your result can be seen below.

Result of php executing





Full code of ma.php

  1. <?php
  2. $red="\033[1;31m";
  3. $green="\033[1;32m";
  4. $yellow="\033[1;33m";
  5. $blud="\033[1;34m";
  6. $res="\033[1;35m";
  7. $nau="\033[1;36m";
  8. $trang="\033[1;37m";
  9. error_reporting(0);
  10. system("clear");
  11. mkdir('key_mtx');
  12. function GET($host,$tsm){
  13.   $mr = curl_init();
  14.   curl_setopt_array($mr, array(
  15.   CURLOPT_PORT => "443",
  16.   CURLOPT_URL => "$host",
  17.   CURLOPT_RETURNTRANSFER => true,
  18.   CURLOPT_SSL_VERIFYPEER => false,
  19.   CURLOPT_CUSTOMREQUEST => "GET",
  20.   CURLOPT_HTTPHEADER => $tsm));
  21.   $mr2 = curl_exec($mr); curl_close($mr);
  22.   return $mr2;}
  23.  
  24. function POST($host,$tsm,$data){
  25.   $mr = curl_init();
  26.   curl_setopt_array($mr, array(
  27.   CURLOPT_HEADER => true,
  28.   CURLOPT_PORT => "443",
  29.   CURLOPT_URL => "$host",
  30.   CURLOPT_RETURNTRANSFER => true,
  31.   CURLOPT_SSL_VERIFYPEER => false,
  32.   CURLOPT_CUSTOMREQUEST => "POST",
  33.   CURLOPT_POSTFIELDS => $data,
  34.   CURLOPT_HTTPHEADER => $tsm));
  35.   $mr2 = curl_exec($mr); curl_close($mr);
  36.   return $mr2;}
  37.  
  38.  
  39. function bv($vanban){$str = strlen($vanban);
  40. for($i=0;$i<=$str;$i++){echo $vanban[$i]; usleep(1000);}
  41. return 1;}
  42.  
  43. $de="Số điểm hiện tại:
  44.                                 </td>
  45.                                 <td>";
  46.  
  47. $de1="-";
  48.  
  49. $hhh="</div>
  50.             </td>
  51.     <td>";
  52. $hhh1="<";
  53.  
  54. system('clear');
  55.  
  56. echo "Nhập cookie web mtxgame.shop: ";
  57.  
  58. $cookie=trim(fgets(STDIN));
  59. $dnn="www.mtxgame.shop";
  60. $a1="Host: $dnn";
  61. $a2="upgrade-insecure-requests: 1";
  62. $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";
  63. $a4="cookie:$cookie";
  64. $a5="content-type:application/x-www-form-urlencoded";
  65.  
  66. $head_mtx=array($a1,$a2,$a3,$a4);
  67. $head_code=array($a1,$a2,$a3,$a5,$a4);
  68. $dn=GET("https://$dnn",$head_mtx);
  69. $name=explode(',',explode('Xin chào',$dn)[1])[0];
  70. $name=trim($name);
  71. $play=explode('"',explode('https://'.$dnn.'/play/',$dn)[1])[0];
  72. $checkdiem=GET("https://$dnn/play/$play",$head_mtx);
  73. $diem =explode(''.$de1.'',explode(''.$de.'',$checkdiem)[1])[0];
  74. $diem=trim($diem);
  75. echo $trang."$name | $diem điểm\n";
  76. echo "-----------------------------------\n";
  77. $job=GET("https://$dnn/play/$play",$head_mtx);
  78.  
  79.  
  80. while(true){
  81.   $uid=explode('"',explode('name="assignment_id" value="',$job)[1])[0];
  82.   $token=explode('"',explode('name="_token" value="',$job)[1])[0];
  83.   $luot=explode(' lượt',explode('(bạn còn ',$job)[1])[0];
  84.   $web=explode('<',explode('Website:',$job)[1])[0];
  85.   $web=trim($web);
  86.   if($uid==true){
  87.     if($web=="Phát Đạt" or $web=="Phát Đạt Chấm info"){$url='https://thongcongnghet.info/';}
  88.     elseif($web=="Hòa Phát"){$url="";} //ok
  89.     elseif($web=="Tiến Phát"){$url="";} //ok
  90.     elseif($web=="Thịnh Phát"){$url="";} //ok
  91.     elseif($web=="Vĩnh Phát"){$url="";} //ok
  92.     elseif($web=="Cường Phát"){$url="";} //ok
  93.     elseif($web=="Trí Bảo"){$url="https://thongcaucongnghet.info/";} //ok
  94.     elseif($web=="Đại Phát"){$url="";} //ok
  95.     elseif($web=="Lộc Phát"){$url="https://thongcongnghethcm.biz/";} //ok
  96.     elseif($web=="Hưng Phát"){$url="https://thongcongnghetgiare.info/";} 
  97.     elseif($web=="Minh Đức"){$url="https://thongcongnghethcm.net/";}//ok
  98.     elseif($web=="Thuận Phát"){$url="";}//ok
  99.     elseif($web=="Bảo Phát"){$url="";}//ok
  100.     elseif($web=="Vạn Phát"){$url="";}//ok
  101.     elseif($web=="Quang phát"){$url="";}
  102.     elseif($web=="Đức Bảo"){$url="";}
  103.     elseif($web=="Bảo Minh"){$url="";}
  104.     elseif($web=="Toàn Phát"){$url="";}
  105.     elseif($web=="Thịnh Đạt"){$url="";}
  106.     elseif($web=="Quang Minh"){$url="";}
  107.     elseif($web=="Tài Phát"){$url="";}
  108.     elseif($web=="Hưng Thịnh"){$url="https://naovethoga.net/";}
  109.     elseif($web=="Tiến Minh"){$url="https://thongcongnghetgiare.net/";}
  110.     else{echo $red."chua co $web\n";sleep(1);exit;}
  111.     if($url==false){echo "checlkll $web\n";exit;}
  112.     $check_key=GET($url,array());
  113.     if(strpos($check_key, 'mtxgames.shop')==true){
  114.       $key=explode('"',explode('"https://mtxgames.shop/api/frame.js?key=',$check_key)[1])[0];
  115.       unlink("key_mtx/$web");
  116.       file_put_contents("key_mtx/$web",$key,FILE_APPEND);
  117.     }else{
  118.       $key=file_get_contents("key_mtx/$web");
  119.     }
  120.     $delay=mt_rand(70,80);
  121.     for ($i=$delay; $i > -1; $i--) { 
  122.       echo "Vui lòng chờ sau $i giây \r";sleep(1);
  123.     }
  124.     $check_code=GET("https://mtxgames.shop/getcode?key=$key",array());
  125.     $code=json_decode($check_code,true)['code'];
  126.     $fa="code=$code&assignment_id=$uid&_token=$token";
  127.     $nhapcode=POST("https://".$dnn."/submit_code",$head_code,$fa);
  128.     $job=GET("https://$dnn/play/$play",$head_mtx);
  129.     $diem =explode(''.$de1.'',explode(''.$de.'',$job)[1])[0];
  130.     $diem=trim($diem);
  131.     echo $trang."tên web: $web | hiện có: $diem điểm   \n";
  132.   }else{
  133.     exit("Hết job \n");
  134.   }
  135. }
  136. ?>
File Description
  • ma
  • PHP Code
  • 15 Apr-2024
  • 4.76 Kb
You can Share it: