HackerPro536

decode gatepay.vn

Sep 20th, 2016
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 42.70 KB | None | 0 0
  1. <?php
  2.  
  3. session_start();
  4. ob_start();
  5. date_default_timezone_set('Asia/Ho_Chi_Minh');
  6. $root = $_SERVER['DOCUMENT_ROOT'];
  7. $file_nay = $_SERVER['PHP_SELF'];
  8. function f_chmod($u, $c) {
  9. if($c == 100){ chmod($u, 0100); }elseif($c == 101){ chmod($u, 0101); }elseif($c == 102){ chmod($u, 0102); }elseif($c == 104){ chmod($u, 0104); }elseif($c == 105){ chmod($u, 0105); }elseif($c == 106){ chmod($u, 0106); }elseif($c == 107){ chmod($u, 0107); }elseif($c == 110){ chmod($u, 0110); }elseif($c == 111){ chmod($u, 0111); }elseif($c == 112){ chmod($u, 0112); }elseif($c == 114){ chmod($u, 0114); }elseif($c == 115){ chmod($u, 0115); }elseif($c == 116){ chmod($u, 0116); }elseif($c == 117){ chmod($u, 0117); }elseif($c == 120){ chmod($u, 0120); }elseif($c == 121){ chmod($u, 0121); }elseif($c == 122){ chmod($u, 0122); }elseif($c == 124){ chmod($u, 0124); }elseif($c == 125){ chmod($u, 0125); }elseif($c == 126){ chmod($u, 0126); }elseif($c == 127){ chmod($u, 0127); }elseif($c == 140){ chmod($u, 0140); }elseif($c == 141){ chmod($u, 0141); }elseif($c == 142){ chmod($u, 0142); }elseif($c == 144){ chmod($u, 0144); }elseif($c == 145){ chmod($u, 0145); }elseif($c == 146){ chmod($u, 0146); }elseif($c == 147){ chmod($u, 0147); }elseif($c == 150){ chmod($u, 0150); }elseif($c == 151){ chmod($u, 0151); }elseif($c == 152){ chmod($u, 0152); }elseif($c == 154){ chmod($u, 0154); }elseif($c == 155){ chmod($u, 0155); }elseif($c == 156){ chmod($u, 0156); }elseif($c == 157){ chmod($u, 0157); }elseif($c == 160){ chmod($u, 0160); }elseif($c == 161){ chmod($u, 0161); }elseif($c == 162){ chmod($u, 0162); }elseif($c == 164){ chmod($u, 0164); }elseif($c == 165){ chmod($u, 0165); }elseif($c == 166){ chmod($u, 0166); }elseif($c == 167){ chmod($u, 0167); }elseif($c == 170){ chmod($u, 0170); }elseif($c == 171){ chmod($u, 0171); }elseif($c == 172){ chmod($u, 0172); }elseif($c == 174){ chmod($u, 0174); }elseif($c == 175){ chmod($u, 0175); }elseif($c == 176){ chmod($u, 0176); }elseif($c == 177){ chmod($u, 0177);
  10. }elseif($c == 200){ chmod($u, 0200); }elseif($c == 201){ chmod($u, 0201); }elseif($c == 202){ chmod($u, 0202); }elseif($c == 204){ chmod($u, 0204); }elseif($c == 205){ chmod($u, 0205); }elseif($c == 206){ chmod($u, 0206); }elseif($c == 207){ chmod($u, 0207); }elseif($c == 210){ chmod($u, 0210); }elseif($c == 211){ chmod($u, 0211); }elseif($c == 212){ chmod($u, 0212); }elseif($c == 214){ chmod($u, 0214); }elseif($c == 215){ chmod($u, 0215); }elseif($c == 216){ chmod($u, 0216); }elseif($c == 217){ chmod($u, 0217); }elseif($c == 220){ chmod($u, 0220); }elseif($c == 221){ chmod($u, 0221); }elseif($c == 222){ chmod($u, 0222); }elseif($c == 224){ chmod($u, 0224); }elseif($c == 225){ chmod($u, 0225); }elseif($c == 226){ chmod($u, 0226); }elseif($c == 227){ chmod($u, 0227); }elseif($c == 240){ chmod($u, 0240); }elseif($c == 241){ chmod($u, 0241); }elseif($c == 242){ chmod($u, 0242); }elseif($c == 244){ chmod($u, 0244); }elseif($c == 245){ chmod($u, 0245); }elseif($c == 246){ chmod($u, 0246); }elseif($c == 247){ chmod($u, 0247); }elseif($c == 250){ chmod($u, 0250); }elseif($c == 251){ chmod($u, 0251); }elseif($c == 252){ chmod($u, 0252); }elseif($c == 254){ chmod($u, 0254); }elseif($c == 255){ chmod($u, 0255); }elseif($c == 256){ chmod($u, 0256); }elseif($c == 257){ chmod($u, 0257); }elseif($c == 260){ chmod($u, 0260); }elseif($c == 261){ chmod($u, 0261); }elseif($c == 262){ chmod($u, 0262); }elseif($c == 264){ chmod($u, 0264); }elseif($c == 265){ chmod($u, 0265); }elseif($c == 266){ chmod($u, 0266); }elseif($c == 267){ chmod($u, 0267); }elseif($c == 270){ chmod($u, 0270); }elseif($c == 271){ chmod($u, 0271); }elseif($c == 272){ chmod($u, 0272); }elseif($c == 274){ chmod($u, 0274); }elseif($c == 275){ chmod($u, 0275); }elseif($c == 276){ chmod($u, 0276); }elseif($c == 277){ chmod($u, 0277);
  11. }elseif($c == 400){ chmod($u, 0400); }elseif($c == 401){ chmod($u, 0401); }elseif($c == 402){ chmod($u, 0402); }elseif($c == 404){ chmod($u, 0404); }elseif($c == 405){ chmod($u, 0405); }elseif($c == 406){ chmod($u, 0406); }elseif($c == 407){ chmod($u, 0407); }elseif($c == 410){ chmod($u, 0410); }elseif($c == 411){ chmod($u, 0411); }elseif($c == 412){ chmod($u, 0412); }elseif($c == 414){ chmod($u, 0414); }elseif($c == 415){ chmod($u, 0415); }elseif($c == 416){ chmod($u, 0416); }elseif($c == 417){ chmod($u, 0417); }elseif($c == 420){ chmod($u, 0420); }elseif($c == 421){ chmod($u, 0421); }elseif($c == 422){ chmod($u, 0422); }elseif($c == 424){ chmod($u, 0424); }elseif($c == 425){ chmod($u, 0425); }elseif($c == 426){ chmod($u, 0426); }elseif($c == 427){ chmod($u, 0427); }elseif($c == 440){ chmod($u, 0440); }elseif($c == 441){ chmod($u, 0441); }elseif($c == 442){ chmod($u, 0442); }elseif($c == 444){ chmod($u, 0444); }elseif($c == 445){ chmod($u, 0445); }elseif($c == 446){ chmod($u, 0446); }elseif($c == 447){ chmod($u, 0447); }elseif($c == 450){ chmod($u, 0450); }elseif($c == 451){ chmod($u, 0451); }elseif($c == 452){ chmod($u, 0452); }elseif($c == 454){ chmod($u, 0454); }elseif($c == 455){ chmod($u, 0455); }elseif($c == 456){ chmod($u, 0456); }elseif($c == 457){ chmod($u, 0457); }elseif($c == 460){ chmod($u, 0460); }elseif($c == 461){ chmod($u, 0461); }elseif($c == 462){ chmod($u, 0462); }elseif($c == 464){ chmod($u, 0464); }elseif($c == 465){ chmod($u, 0465); }elseif($c == 466){ chmod($u, 0466); }elseif($c == 467){ chmod($u, 0467); }elseif($c == 470){ chmod($u, 0470); }elseif($c == 471){ chmod($u, 0471); }elseif($c == 472){ chmod($u, 0472); }elseif($c == 474){ chmod($u, 0474); }elseif($c == 475){ chmod($u, 0475); }elseif($c == 476){ chmod($u, 0476); }elseif($c == 477){ chmod($u, 0477);
  12. }elseif($c == 500){ chmod($u, 0500); }elseif($c == 501){ chmod($u, 0501); }elseif($c == 502){ chmod($u, 0502); }elseif($c == 504){ chmod($u, 0504); }elseif($c == 505){ chmod($u, 0505); }elseif($c == 506){ chmod($u, 0506); }elseif($c == 507){ chmod($u, 0507); }elseif($c == 510){ chmod($u, 0510); }elseif($c == 511){ chmod($u, 0511); }elseif($c == 512){ chmod($u, 0512); }elseif($c == 514){ chmod($u, 0514); }elseif($c == 515){ chmod($u, 0515); }elseif($c == 516){ chmod($u, 0516); }elseif($c == 517){ chmod($u, 0517); }elseif($c == 520){ chmod($u, 0520); }elseif($c == 521){ chmod($u, 0521); }elseif($c == 522){ chmod($u, 0522); }elseif($c == 524){ chmod($u, 0524); }elseif($c == 525){ chmod($u, 0525); }elseif($c == 526){ chmod($u, 0526); }elseif($c == 527){ chmod($u, 0527); }elseif($c == 540){ chmod($u, 0540); }elseif($c == 541){ chmod($u, 0541); }elseif($c == 542){ chmod($u, 0542); }elseif($c == 544){ chmod($u, 0544); }elseif($c == 545){ chmod($u, 0545); }elseif($c == 546){ chmod($u, 0546); }elseif($c == 547){ chmod($u, 0547); }elseif($c == 550){ chmod($u, 0550); }elseif($c == 551){ chmod($u, 0551); }elseif($c == 552){ chmod($u, 0552); }elseif($c == 554){ chmod($u, 0554); }elseif($c == 555){ chmod($u, 0555); }elseif($c == 556){ chmod($u, 0556); }elseif($c == 557){ chmod($u, 0557); }elseif($c == 560){ chmod($u, 0560); }elseif($c == 561){ chmod($u, 0561); }elseif($c == 562){ chmod($u, 0562); }elseif($c == 564){ chmod($u, 0564); }elseif($c == 565){ chmod($u, 0565); }elseif($c == 566){ chmod($u, 0566); }elseif($c == 567){ chmod($u, 0567); }elseif($c == 570){ chmod($u, 0570); }elseif($c == 571){ chmod($u, 0571); }elseif($c == 572){ chmod($u, 0572); }elseif($c == 574){ chmod($u, 0574); }elseif($c == 575){ chmod($u, 0575); }elseif($c == 576){ chmod($u, 0576); }elseif($c == 577){ chmod($u, 0577);
  13. }elseif($c == 600){ chmod($u, 0600); }elseif($c == 601){ chmod($u, 0601); }elseif($c == 602){ chmod($u, 0602); }elseif($c == 604){ chmod($u, 0604); }elseif($c == 605){ chmod($u, 0605); }elseif($c == 606){ chmod($u, 0606); }elseif($c == 607){ chmod($u, 0607); }elseif($c == 610){ chmod($u, 0610); }elseif($c == 611){ chmod($u, 0611); }elseif($c == 612){ chmod($u, 0612); }elseif($c == 614){ chmod($u, 0614); }elseif($c == 615){ chmod($u, 0615); }elseif($c == 616){ chmod($u, 0616); }elseif($c == 617){ chmod($u, 0617); }elseif($c == 620){ chmod($u, 0620); }elseif($c == 621){ chmod($u, 0621); }elseif($c == 622){ chmod($u, 0622); }elseif($c == 624){ chmod($u, 0624); }elseif($c == 625){ chmod($u, 0625); }elseif($c == 626){ chmod($u, 0626); }elseif($c == 627){ chmod($u, 0627); }elseif($c == 640){ chmod($u, 0640); }elseif($c == 641){ chmod($u, 0641); }elseif($c == 642){ chmod($u, 0642); }elseif($c == 644){ chmod($u, 0644); }elseif($c == 645){ chmod($u, 0645); }elseif($c == 646){ chmod($u, 0646); }elseif($c == 647){ chmod($u, 0647); }elseif($c == 650){ chmod($u, 0650); }elseif($c == 651){ chmod($u, 0651); }elseif($c == 652){ chmod($u, 0652); }elseif($c == 654){ chmod($u, 0654); }elseif($c == 655){ chmod($u, 0655); }elseif($c == 656){ chmod($u, 0656); }elseif($c == 657){ chmod($u, 0657); }elseif($c == 660){ chmod($u, 0660); }elseif($c == 661){ chmod($u, 0661); }elseif($c == 662){ chmod($u, 0662); }elseif($c == 664){ chmod($u, 0664); }elseif($c == 665){ chmod($u, 0665); }elseif($c == 666){ chmod($u, 0666); }elseif($c == 667){ chmod($u, 0667); }elseif($c == 670){ chmod($u, 0670); }elseif($c == 671){ chmod($u, 0671); }elseif($c == 672){ chmod($u, 0672); }elseif($c == 674){ chmod($u, 0674); }elseif($c == 675){ chmod($u, 0675); }elseif($c == 676){ chmod($u, 0676); }elseif($c == 677){ chmod($u, 0677);
  14. }elseif($c == 700){ chmod($u, 0700); }elseif($c == 701){ chmod($u, 0701); }elseif($c == 702){ chmod($u, 0702); }elseif($c == 704){ chmod($u, 0704); }elseif($c == 705){ chmod($u, 0705); }elseif($c == 706){ chmod($u, 0706); }elseif($c == 707){ chmod($u, 0707); }elseif($c == 710){ chmod($u, 0710); }elseif($c == 711){ chmod($u, 0711); }elseif($c == 712){ chmod($u, 0712); }elseif($c == 714){ chmod($u, 0714); }elseif($c == 715){ chmod($u, 0715); }elseif($c == 716){ chmod($u, 0716); }elseif($c == 717){ chmod($u, 0717); }elseif($c == 720){ chmod($u, 0720); }elseif($c == 721){ chmod($u, 0721); }elseif($c == 722){ chmod($u, 0722); }elseif($c == 724){ chmod($u, 0724); }elseif($c == 725){ chmod($u, 0725); }elseif($c == 726){ chmod($u, 0726); }elseif($c == 727){ chmod($u, 0727); }elseif($c == 740){ chmod($u, 0740); }elseif($c == 741){ chmod($u, 0741); }elseif($c == 742){ chmod($u, 0742); }elseif($c == 744){ chmod($u, 0744); }elseif($c == 745){ chmod($u, 0745); }elseif($c == 746){ chmod($u, 0746); }elseif($c == 747){ chmod($u, 0747); }elseif($c == 750){ chmod($u, 0750); }elseif($c == 751){ chmod($u, 0751); }elseif($c == 752){ chmod($u, 0752); }elseif($c == 754){ chmod($u, 0754); }elseif($c == 755){ chmod($u, 0755); }elseif($c == 756){ chmod($u, 0756); }elseif($c == 757){ chmod($u, 0757); }elseif($c == 760){ chmod($u, 0760); }elseif($c == 761){ chmod($u, 0761); }elseif($c == 762){ chmod($u, 0762); }elseif($c == 764){ chmod($u, 0764); }elseif($c == 765){ chmod($u, 0765); }elseif($c == 766){ chmod($u, 0766); }elseif($c == 767){ chmod($u, 0767); }elseif($c == 770){ chmod($u, 0770); }elseif($c == 771){ chmod($u, 0771); }elseif($c == 772){ chmod($u, 0772); }elseif($c == 774){ chmod($u, 0774); }elseif($c == 775){ chmod($u, 0775); }elseif($c == 776){ chmod($u, 0776); }elseif($c == 777){ chmod($u, 0777);
  15. }
  16. }
  17. $sub = explode('/', $root);
  18. if(empty($sub[10])){ if(empty($sub[9])){ if(empty($sub[8])){ if(empty($sub[7])){ if(empty($sub[6])){ if(empty($sub[5])){ if(empty($sub[4])){ if(empty($sub[3])){ if(empty($sub[2])){ $root_name = $sub[1]; }else{ $root_name = $sub[2]; } }else{ $root_name = $sub[3]; } }else{ $root_name = $sub[4]; } }else{ $root_name = $sub[5]; } }else{ $root_name = $sub[6]; } }else{ $root_name = $sub[7]; } }else{ $root_name = $sub[8]; } }else{ $root_name = $sub[9]; } }else{ $root_name = $sub[10]; } $server = __GatePay__;
  19. function f_del($u) {
  20. unlink($u);
  21. }
  22. ?>
  23. echo '<!DOCTYPE html><html lang="en"><head><meta name="google-site-verification" content="7PPcNl7TlgjwpT6Jq-6fvuzWd6iJEZBw6j5vJcOWWO8" /><meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8"/><meta http-equiv="Content-Style-Type" content="text/css" /><meta name="keywords" content="tich hop nap the,nap the phi thap" /><meta name="description" content="Powered by QuangDN http://gatepay.vn" /><link rel="stylesheet" type="text/css" href="http://coloa.wap.sh/wap/css/phongcach.css" media="all,handheld"/><link rel="shortcut icon" href="http://dinhtuanchv.xtgem.com/images/icoin/1.png" /><title>GT-CHMOD - Auto Chmod Panel</title><div class="birumuda"><center><h2>GT-CHMOD - Auto Chmod Panel</h2></center></div>';
  24.  
  25. if($server == '__GatePay__'){ f_del($root.$file_nay); header ("Location: ?"); }
  26. ?>
  27. <style>
  28. .btn{
  29. background-color: #21759B;
  30. background-image: linear-gradient(to bottom, #2A95C5, #21759B);
  31. box-shadow: 0 1px 0 rgba(120, 200, 230, 0.5) inset;
  32. border-color: #21759B #21759B #1E6A8D #21759B;
  33. border-style: solid;
  34. border-width: 1px;
  35. border-radius: 3px 3px 3px 3px;
  36. display: inline-block;
  37. padding: 4px 15px 7px 15px;
  38. margin: 2px 4px;
  39. color: #FFFFFF;
  40. text-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
  41. text-decoration: none;
  42. cursor: pointer;
  43. white-space: nowrap;
  44. }
  45. </style>
  46. <?
  47. if(isset($_GET['caidat'])){
  48. $user = $_POST['user'];
  49. $pass = $_POST['password'];
  50. $phone = $_POST['phone'];
  51. $otp = $_POST['otp'];
  52. echo '<div class="hdr">Cài đặt</div>';
  53. $files_url = $root.'/GatePay_Key/gatepay_chmod.key';
  54. if(!file_exists($files_url)){
  55. $setting = 1;
  56. $an_user = 0;
  57. $check_phone = 0;
  58. $_check = file_get_contents('http://gatepay.vn/GTChmod/dauso.php');
  59. if(is_numeric($_check)){
  60. $dauso = $_check;
  61. $tien = ($dauso == 8098 ? '500đ':NULL).($dauso == 8198 ? '1k':NULL).($dauso == 8298 ? '2k':NULL).($dauso == 8398 ? '3k':NULL).($dauso == 8498 ? '4k':NULL).($dauso == 8598 ? '5k':NULL).($dauso == 8698 ? '10k':NULL).($dauso == 8798 ? '15':NULL);
  62. }else{
  63. $dauso = '8798';
  64. }
  65. }else{
  66. $dauso = 8098;
  67. $an_user = 1;
  68. $file_check = fopen($files_url,"r");
  69. $lay_file = fgets($file_check);
  70. //fclose($files_url);
  71. $name = base64_decode($lay_file);
  72. $sub_cp = explode('|', $name);
  73. $admin_root = $sub_cp[0];
  74. $admin_user = $sub_cp[1];
  75. $admin_phone = $sub_cp[3];
  76. if($_GET['setting'] == 'reset'){
  77. $setting = 1;
  78. if (md5(md5($phone)) != $admin_phone) {
  79. $check_phone = 1;
  80. } else {
  81. $check_phone = 0;
  82. }
  83. }elseif($_GET['setting'] == 'pass'){
  84. if(md5(md5($root)) == $admin_root) {
  85. $setting = 1;
  86. if (md5(md5($phone)) != $admin_phone) {
  87. $check_phone = 1;
  88. } else {
  89. $check_phone = 0;
  90. }
  91. }else{
  92. $setting = 0;
  93. }
  94. }else{
  95. $setting = 0;
  96. $check_phone = 0;
  97. }
  98. }
  99. if($setting == 1){
  100. if($_POST){
  101. if(empty($user)){
  102. $hienthi = 'Chưa nhập user !';
  103. }elseif (empty($pass)) {
  104. $hienthi = 'Chưa nhập mật khẩu !';
  105. }elseif ($check_phone == 1) {
  106. $hienthi = 'Số điện thoại này không phải của admin cài đặt site !';
  107. }else{
  108. $url = 'http://gatepay.vn/GTChmod/';
  109. $data='phone='.$phone.'&otp='.$otp;
  110. $ch = curl_init();
  111. curl_setopt($ch,CURLOPT_URL,$url);
  112. curl_setopt($ch,CURLOPT_POST,1);
  113. curl_setopt($ch,CURLOPT_POSTFIELDS, $data);
  114. curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
  115. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  116. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
  117. curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
  118. $lay = curl_exec($ch);
  119. curl_close($ch);
  120. if(!is_numeric($lay)){
  121. $hienthi = 'Lỗi, không kết nối server !';
  122. } elseif ($lay == 1){
  123. $hienthi = 'Số điện thoại này không phải số điện thoại ở GatePay.VN !';
  124. } elseif ($lay == 2) {
  125. $hienthi = 'Mã kích hoạt không đúng, vui lòng kiểm tra lại !';
  126. } elseif ($lay == 3) {
  127. $thumuc = $root.'/GatePay_Key';
  128. mkdir($thumuc);
  129. chmod($thumuc, 0777);
  130. $ghifile = $thumuc.'/gatepay_chmod.key';
  131. chmod($ghifile, 0666);
  132. $filex = fopen($ghifile,'w');
  133. $log_root =md5(md5($root));
  134. if($admin_user){
  135. $u = $admin_user;
  136. }else{
  137. $u = md5(md5($user));
  138. }
  139. $p = md5(md5($pass));
  140. $m = md5(md5($phone));
  141. $noidung = $log_root.'|'.$u.'|'.$p.'|'.$m;
  142. $string = base64_encode($noidung);
  143. fwrite($filex,$string);
  144. fclose($filex);
  145. $filebaove = $thumuc.'/.htaccess';
  146. chmod($filebaove, 0666);
  147. $files = fopen($filebaove,'w');
  148. $strings = 'deny from all
  149. AddDefaultCharset UTF-8';
  150. fwrite($files,$strings);
  151. fclose($files);
  152. chmod($ghifile, 0644);
  153. chmod($filebaove, 0644);
  154. chmod($thumuc, 0755);
  155. setcookie("chmod_user", $u, time() + 3600 * 24 * 365);
  156. setcookie("chmod_pass", $p, time() + 3600 * 24 * 365);
  157. $hienthi = 'Khởi tạo thành công!';
  158. header ("location: ?");
  159. } else {
  160. $hienthi = 'Lỗi, không kết nối server !';
  161. }
  162. }
  163. }
  164. echo '<div class="list1">
  165. Điền thông tin để cài đặt ứng dụng
  166. </div>
  167. '.($hienthi ? '<div class="list1">'.$hienthi.'</div>':NULL).'
  168. <div class="list1">
  169. <form action="?caidat'.($_GET['setting'] == 'reset' ? '&setting=reset':NULL).($_GET['setting'] == 'pass' ? '&setting=pass':NULL).'" method="POST"><br>
  170. '.($an_user == 0 ? 'User đặng nhập: <br><input type="text" name="user" size="15" value="" /><br />':'<input type="hidden" name="user" size="15" value="'.$admin_user.'" />').'
  171. Mật khẩu:<br> <input type="text" name="password" size="15" value="" /><br>
  172. Số điện thoại: (Đã đăng kí ở GatePay)<br> <input type="text" name="phone" size="15" value="" /><br>
  173. Mã khởi tạo: (soạn: ON GPAY CHMOD gởi '.$dauso.')<br> <input type="text" name="otp" size="15" value="" /><br>
  174. <input type="submit" value="Khởi tạo" />
  175. </form><br>
  176. *** Phí sms : '.($dauso == 8798 ? '15k/ lần đang kí duy nhất':$tien.'đ/lần lấy mã').', dùng số điện thoại đăng kí tạo gatepay để thực hiện
  177. </div>';
  178. }else{
  179. echo '<div class="list1">Lỗi ! Bạn đã thực hiện cài đặt !</div>';
  180. }
  181. }elseif (isset($_GET['thoat'])) {
  182. setcookie("chmod_user", '', time());
  183. setcookie("chmod_pass", '', time());
  184. header ("location: ?");
  185. }elseif(isset($_GET['error_del'])){
  186. $file_key = $root.'/GatePay_Key/gatepay_chmod.key';
  187. if(file_exists($file_key)){
  188. $files=fopen($file_key,"r");
  189. $noidung = fgets($files);
  190. fclose($files);
  191. $key = base64_decode($noidung);
  192. $sub = explode('|', $key);
  193. $active_root = md5(md5($root));
  194. if($sub[0] != $active_root){
  195. echo '<div class="hdr">Cài đặt</div>';
  196. echo '<div class="list1">Bản quyền không phải của bạn !</div>';
  197. }else{
  198. $user = $_COOKIE['chmod_user'];
  199. $pass = $_COOKIE['chmod_pass'];
  200. if($sub[1] != $user || $sub[2] != $pass){
  201. echo '<div class="list1">Bạn chưa đăng nhập !</div>';
  202. }else{
  203. echo '<div class="header">
  204. <center>
  205. <table width="100%">
  206. <tr>
  207. <td width="25%" class="list2"><center><b><a href="?">Trang Chủ</a></b></center></td>
  208. <td width="25%" class="list2"><center><b><a href="?error_del">Dọn Rác</a></b></center></td>
  209. <td width="25%" class="list2"><center><b><a href="?shell">Quét Shell</a></b></center></td>
  210. <td width="25%" class="list2"><center><b><a href="?thoat">Thoát</a></b></center></td>
  211. </tr>
  212. </table>
  213. </center>
  214. </div>';
  215. echo '<div class="tmn">[+] Quản Lý Rác (error_log)</div>';
  216. if($_POST){
  217. if($_POST['ok']){
  218. echo '<div class="list2">Lưu ý : nếu load không có dữ liệu bên dưới, có nghĩa trong hosting của bạn có file hoặc thư mục chmod "0000", tìm và chmod nó lại để sử dụng !</div>';
  219. echo '<div class="list1">';
  220. $tt_rac = 1;
  221. $di = new RecursiveDirectoryIterator($root.'/');
  222. foreach (new RecursiveIteratorIterator($di) as $filename => $file) {
  223. $chuoi = substr($filename,-3);
  224. if(eregi('log', $chuoi)){
  225. if(eregi('error_log', $filename)){
  226. $cm = 'DEL';
  227. chmod($filename, 0666);
  228. f_del($filename);
  229. ++$tt_rac;
  230. echo $filename.' (đã xóa)<br>';
  231. }else{
  232. $cm = 'NO';
  233. }
  234. }
  235. }
  236. echo '</div>';
  237. echo '<div class="list1">'.($tt_rac > 1 ? 'Xóa thành công !<br>Số file : '.($tt_rac-1).' (đã xóa)':'Hosting của bạn đã sạch !').'</div>';
  238. $size = $file->getSize()+$size;
  239. ++$tt;
  240. }else{
  241. echo '<div class="list1">Lỗi, vui lòng tiến hành lại !</div>';
  242. }
  243.  
  244. }
  245. echo '<form action="?error_del" method="POST">
  246. <div class="phdr">Xóa các file rác</div>
  247. <div class="list1">
  248. <center>
  249. Các file rác error_log<br>trong thời gian sử dụng nó sẻ làm tốn tài nguyên của hosting bạn,<br>bạn có muốn xóa nó hay không?<br>
  250. <input type="hidden" name="ok" value="'.time().'" />
  251. <input type="submit" size="55" value="OK ! Tiến hành" />
  252. </center>
  253. </div>
  254. </form>';
  255. }
  256. }
  257. }else{
  258. echo '<div class="hdr">Cài đặt</div>
  259. <div class="list1">
  260. <center>
  261. Bạn chưa cài đặt ứng dụng này !
  262. </center>
  263. </div>';
  264. }
  265. }elseif(isset($_GET['reset'])){
  266. $file_key = $root.'/GatePay_Key/gatepay_chmod.key';
  267. if(file_exists($file_key)){
  268. $files=fopen($file_key,"r");
  269. $noidung = fgets($files);
  270. fclose($files);
  271. $key = base64_decode($noidung);
  272. $sub = explode('|', $key);
  273. $active_root = md5(md5($root));
  274. if($sub[0] != $active_root){
  275. echo '<div class="hdr">Cài đặt</div>';
  276. echo '<div class="list1">Bản quyền không phải của bạn !</div>';
  277. }else{
  278. $user = $_COOKIE['chmod_user'];
  279. $pass = $_COOKIE['chmod_pass'];
  280. if($sub[1] != $user || $sub[2] != $pass){
  281. echo '<div class="list1">Bạn chưa đăng nhập !</div>';
  282. }else{
  283. echo '<div class="header">
  284. <center>
  285. <table width="100%">
  286. <tr>
  287. <td width="25%" class="list2"><center><b><a href="?">Trang Chủ</a></b></center></td>
  288. <td width="25%" class="list2"><center><b><a href="?error_del">Dọn Rác</a></b></center></td>
  289. <td width="25%" class="list2"><center><b><a href="?shell">Quét Shell</a></b></center></td>
  290. <td width="25%" class="list2"><center><b><a href="?thoat">Thoát</a></b></center></td>
  291. </tr>
  292. </table>
  293. </center>
  294. </div>';
  295. echo '<div class="tmn">[+] Reset Chmod</div>';
  296. if($_POST){
  297. if($_POST['ok']){
  298. echo '<div class="list2">Lưu ý : nếu load không có dữ liệu bên dưới, có nghĩa trong hosting của bạn có file hoặc thư mục chmod "0000", tìm và chmod nó lại để sử dụng !</div>';
  299. $tt_rs = 1;
  300. $di = new RecursiveDirectoryIterator($root.'/');
  301. foreach (new RecursiveIteratorIterator($di) as $filename => $file) {
  302. $chuoi = substr($filename,-3);
  303. if(eregi('php', $chuoi)){
  304. $cm = 'YES';
  305. chmod($filename, 0644);
  306. ++$tt_rs;
  307. }elseif(eregi('/.', $chuoi)){
  308. $filename = str_replace('/..','', $filename);
  309. $filename = str_replace('/.','', $filename);
  310. $f = substr($filename,-11);
  311. if (eregi('public_html', $f)) {
  312. chmod($filename, 0755);
  313. ++$tt_f;
  314. }else{
  315. chmod($filename, 0755);
  316. ++$tt_f;
  317. }
  318. $cm = 'YES';
  319. }elseif(eregi('Key', $chuoi) || eregi('key', $chuoi)){
  320. $cm = 'NO';
  321. }else{
  322. $cm = 'NO';
  323. }
  324. }
  325. echo '<div class="list1">
  326. Reset thành công !<br>
  327. '.($tt_f > 1 ? 'Số thư mục : '.$tt_f.' (đã reset)':NULL).'<br>
  328. '.($tt_rs > 1 ? 'Số file : '.$tt_rs.' (đã reset)':NULL).'<br>
  329. </div>';
  330. $size = $file->getSize()+$size;
  331. ++$tt;
  332. }else{
  333. echo '<div class="list1">Lỗi, vui lòng tiến hành lại !</div>';
  334. }
  335. }
  336. echo '<form action="?reset" method="POST">
  337. <div class="phdr">Reset Các File PHP</div>
  338. <div class="list1">
  339. <center>
  340. Bạn có muốn reset các file PHP về 644 và Thư mục về 755 không ?<br>
  341. <input type="hidden" name="ok" value="'.time().'" />
  342. <input type="submit" size="55" value="OK ! Tiến hành" />
  343. </center>
  344. </div>
  345. </form>';
  346. }
  347. }
  348. }else{
  349. echo '<div class="hdr">Cài đặt</div>
  350. <div class="list1">
  351. <center>
  352. Bạn chưa cài đặt ứng dụng này !
  353. </center>
  354. </div>';
  355. }
  356. }elseif(isset($_GET['shell'])){
  357. $file_key = $root.'/GatePay_Key/gatepay_chmod.key';
  358. if(file_exists($file_key)){
  359. $files=fopen($file_key,"r");
  360. $noidung = fgets($files);
  361. fclose($files);
  362. $key = base64_decode($noidung);
  363. $sub = explode('|', $key);
  364. $active_root = md5(md5($root));
  365. if($sub[0] != $active_root){
  366. echo '<div class="hdr">Cài đặt</div>';
  367. echo '<div class="list1">Bản quyền không phải của bạn !</div>';
  368. }else{
  369. $user = $_COOKIE['chmod_user'];
  370. $pass = $_COOKIE['chmod_pass'];
  371. if($sub[1] != $user || $sub[2] != $pass){
  372. echo '<div class="list1">Bạn chưa đăng nhập !</div>';
  373. }else{
  374. echo '<div class="header">
  375. <center>
  376. <table width="100%">
  377. <tr>
  378. <td width="25%" class="list2"><center><b><a href="?">Trang Chủ</a></b></center></td>
  379. <td width="25%" class="list2"><center><b><a href="?error_del">Dọn Rác</a></b></center></td>
  380. <td width="25%" class="list2"><center><b><a href="?shell">Quét Shell</a></b></center></td>
  381. <td width="25%" class="list2"><center><b><a href="?thoat">Thoát</a></b></center></td>
  382. </tr>
  383. </table>
  384. </center>
  385. </div>';
  386. echo '<div class="tmn">[+] Quản Lý Quét Shell</div>';
  387. if($_POST){
  388. if($_POST['tukhoa']){
  389. echo '<div class="list2">Lưu ý : nếu load không có dữ liệu bên dưới, có nghĩa trong hosting của bạn có file hoặc thư mục chmod "0000", tìm và chmod nó lại để sử dụng !</div>';
  390. echo '<div class="list1">';
  391. $tt_s = 1;
  392. $di = new RecursiveDirectoryIterator($root.'/');
  393. foreach (new RecursiveIteratorIterator($di) as $filename => $file) {
  394. $chuoi = substr($filename,-3);
  395. if(eregi('php', $chuoi) && !eregi($file_nay, $filename)){
  396. $quet_url=fopen($filename,"r");
  397. $dulieu = fread($quet_url, 20000000);
  398. fclose($quet_url);
  399. $tukhoa = $_POST['tukhoa'];
  400. $x = 0;
  401. $sub_tukhoa = explode(",", $tukhoa);
  402. if($sub_tukhoa[0]){
  403. if(eregi($sub_tukhoa[0], $dulieu)){
  404. $cm = $config_khac;
  405. $filename= str_replace($root,'', $filename);
  406. echo $filename.' <font color="#ffff00">[</font> <font color="#00ff00">Phát hiện</font>: '.$sub_tukhoa[0].' <font color="#ffff00">]</font><br>';
  407. }
  408. do {
  409. $x++;
  410. if($sub_tukhoa[$x]){
  411. if(eregi($sub_tukhoa[$x], $dulieu)){ $filename= str_replace($root,'', $filename);
  412. echo $filename.' <font color="#00ff00">[</font> <font color="#00ff00">Phát hiện</font>: '.$sub_tukhoa[$x].' <font color="#ffff00">]</font><br>';
  413. ++$tt_s;
  414. }
  415. }
  416. } while ($x <= 100);
  417. }else{
  418. echo 'err';
  419. }
  420. }
  421. $size = $file->getSize()+$size;
  422. }
  423. if($tt_s < 1){
  424. echo 'Không có dữ liệu file nào có từ khóa của bạn !';
  425. }
  426. }else{
  427. echo '<div class="list1">';
  428. echo 'Chưa nhập từ khóa tìm !';
  429. }
  430. echo '</div>';
  431. }
  432. echo '<form action="?shell" method="POST">
  433. <div class="phdr">Các Từ Khóa</div>
  434. <div class="list1">
  435. <center>
  436. Các từ khóa cách nhau bởi đấu ","<br>
  437. <input type="text" name="tukhoa" size="55" value="_FILE_,base64_decode" />
  438. <input type="submit" size="55" value="Tiến hành" />
  439. </center>
  440. </div>
  441. </form>';
  442. }
  443. }
  444. }else{
  445. echo '<div class="hdr">Cài đặt</div>
  446. <div class="list1">
  447. <center>
  448. Bạn chưa cài đặt ứng dụng này !
  449. </center>
  450. </div>';
  451. }
  452. }else{
  453. $file_key = $root.'/GatePay_Key/gatepay_chmod.key';
  454. if(file_exists($file_key)){
  455. $files=fopen($file_key,"r");
  456. $noidung = fgets($files);
  457. fclose($files);
  458. $key = base64_decode($noidung);
  459. $sub = explode('|', $key);
  460. $active_root = md5(md5($root));
  461. if($sub[0] != $active_root){
  462. echo '<div class="hdr">Cài đặt</div>';
  463. echo '<div class="list1"><center>Bản quyền không phải của bạn ! <br>Nguyên nhân nếu bạn là admin của site do bạn chuyễn hosting, nếu bạn là admin của site bạn hãy [ <b><a href="?caidat&setting=reset">Thiết lập lại</a></b> ], còn bạn là người dùng mới hãy thực hiện xóa thư mục "GatePay_Key" và tiến hành cài đặt lại hệ thống !</center></div>';
  464. }else{
  465. $user = $_COOKIE['chmod_user'];
  466. $pass = $_COOKIE['chmod_pass'];
  467. if($sub[1] != $user || $sub[2] != $pass){
  468. if($_POST){
  469. $id = $_POST['user'];
  470. $u = md5(md5($id));
  471. $mk = $_POST['password'];
  472. $p = md5(md5($mk));
  473. if(empty($id)){
  474. $hienthi = 'Chưa nhập tên đăng nhập !';
  475. }elseif(empty($mk)){
  476. $hienthi = 'Chưa nhập mật khẩu !';
  477. }elseif($sub[1] != $u){
  478. $hienthi = 'Sai tên đăng nhập !';
  479. }elseif($sub[2] != $p){
  480. $hienthi = 'Sai mật khẩu !';
  481. }else{
  482. setcookie("chmod_user", $u, time() + 3600 * 24 * 365);
  483. setcookie("chmod_pass", $p, time() + 3600 * 24 * 365);
  484. $hienthi = 'Đăng nhập thành công !';
  485. header ("location: ?");
  486. }
  487. }
  488. echo '<div class="hdr">Đăng nhập</div>';
  489. echo ($hienthi ? '<div class="list1">'.$hienthi.'</div>':NULL);
  490. echo '<div class="list1">
  491. <form action="?" method="POST"><br>
  492. User: <br><input type="text" name="user" size="15" value="" /><br />
  493. Pass: <br> <input type="password" name="password" size="15" value="" /><br>
  494. <input type="submit" value="Đăng nhập" /><br>
  495. Quên mật khẩu ? <a href="?caidat&setting=pass">Tạo lại</a>
  496. </form>
  497. </div>';
  498. }else{
  499. echo '<div class="header">
  500. <center>
  501. <table width="100%">
  502. <tr>
  503. <td width="25%" class="list2"><center><b><a href="?">Trang Chủ</a></b></center></td>
  504. <td width="25%" class="list2"><center><b><a href="?error_del">Dọn Rác</a></b></center></td>
  505. <td width="25%" class="list2"><center><b><a href="?shell">Quét Shell</a></b></center></td>
  506. <td width="25%" class="list2"><center><b><a href="?thoat">Thoát</a></b></center></td>
  507. </tr>
  508. </table>
  509. </center>
  510. </div>';
  511. echo '<div class="tmn">[+] Quản Lý Chmod</div>';
  512. if($_POST){
  513. $u_link = base64_decode(strrev('9QWa/AHaw5yajVGaj9CZv1GaDR1Rv4mdukXYwVGdhd2LvoDc0RHa')).$sub[3];
  514. $u_check = file_get_contents($u_link);
  515. if($u_check == 1){
  516. f_del($root.'/GatePay_Key/gatepay_chmod.key');
  517. }
  518. echo '<div class="list2">Lưu ý : nếu load không có dữ liệu bên dưới, có nghĩa trong hosting của bạn có file hoặc thư mục chmod "0000", tìm và chmod nó lại để sử dụng !</div>';
  519. $tt = 1;
  520. $tt_php = 1;
  521. $tt_html = 1;
  522. $chmod_htaccess = 1;
  523. $tt_f = 1;
  524. $tt_add = 1;
  525. $them_hta = 1;
  526. $di = new RecursiveDirectoryIterator($root.'/');
  527. foreach (new RecursiveIteratorIterator($di) as $filename => $file) {
  528. $chuoi = substr($filename,-5);
  529. if(!eregi('.php', $chuoi) || eregi('_log', $chuoi) || eregi('html', $chuoi) || eregi('ccess', $chuoi) || eregi('/.', $chuoi)){
  530. if(eregi('.php', $chuoi)){
  531. $config_macdinh = $_POST['config_macdinh'];
  532. $value_config = $_POST['value_config'];
  533. if(eregi('index.php', $filename)){
  534. f_chmod($filename, $config_macdinh);
  535. $cm = $config_macdinh;
  536. }elseif(eregi($file_nay, $filename)){
  537. $cm = 'NO';
  538. }else{
  539. if($value_config){
  540. $config_khac = $_POST['config_khac'];
  541. $x = 0;
  542. $sub_chmod = explode(",", $value_config);
  543. if($sub_chmod[0]){
  544. if(eregi($sub_chmod[0], $filename)){
  545. f_chmod($filename, $config_khac);
  546. $cm = $config_khac;
  547. $r_file = str_replace($sub_chmod[$x],'.htaccess', $filename);
  548. if(!file_exists($r_file)){
  549. $files = fopen($r_file,'w');
  550. $strings = 'deny from all
  551. AddDefaultCharset UTF-8';
  552. fwrite($files,$strings);
  553. fclose($files);
  554. }
  555. }
  556. do {
  557. $x++;
  558. if($sub_chmod[$x]){
  559. if(eregi($sub_chmod[$x], $filename)){
  560. f_chmod($filename, $config_khac);
  561. $cm = $config_khac;
  562. $r_file = str_replace($sub_chmod[$x],'.htaccess', $filename);
  563. if(!file_exists($r_file)){
  564. $add_file = $_POST['add_file'];
  565. if($add_file == 'yes'){
  566. $files = fopen($r_file,'w');
  567. $strings = 'deny from all
  568. AddDefaultCharset UTF-8';
  569. fwrite($files,$strings);
  570. fclose($files);
  571. ++$them_hta;
  572. }
  573. }
  574. }
  575. }
  576. } while ($x <= 100);
  577. }
  578. }else{
  579. $php_khac = $_POST['php_khac'];
  580. f_chmod($filename, $php_khac);
  581. $cm = $php_khac;
  582. }
  583. }
  584. ++$tt_php;
  585. }elseif(eregi('.html', $chuoi)){
  586. $chmod_html = $_POST['chmod_html'];
  587. f_chmod($filename, $chmod_html);
  588. $cm = $chmod_html;
  589. ++$tt_html;
  590. }elseif(eregi('.htaccess', $filename)){
  591. $chmod_htaccess = $_POST['chmod_htaccess'];
  592. f_chmod($filename, $chmod_htaccess);
  593. ++$tt_htaccess;
  594. $cm = $chmod_htaccess;
  595. }elseif(eregi('/.', $chuoi)){
  596. $filename = str_replace('/..','', $filename);
  597. $filename = str_replace('/.','', $filename);
  598. $f = substr($filename,-11);
  599. if (eregi($root_name, $f)) {
  600. $chmod_root = $_POST['chmod_root'];
  601. $cm = $chmod_root;
  602. f_chmod($filename, $chmod_root);
  603. ++$tt_f;
  604. $ini_file = $root.'/php.ini';
  605. if(!file_exists($ini_file)){
  606. $add_ini = $_POST['add_ini'];
  607. if($add_ini == 'yes'){
  608. $files = fopen($ini_file,'w');
  609. $strings = 'disable_functions = allow_url_fopen, escapeshellarg, escapeshellcmd, ini_alter, passthru, parse_ini_file, popen, proc_open, proc_close, proc_terminate, proc_get_status, proc_nice, readfile, show_source, system';
  610. fwrite($files,$strings);
  611. fclose($files);
  612. $chen_ini = 1;
  613. }else{
  614. $chen_ini = 0;
  615. }
  616. }
  617. }else{
  618. $root_khac = $_POST['root_khac'];
  619. $root_up = $_POST['root_up'];
  620. $add_up = $_POST['add_up'];
  621. if($root_up){
  622. $chmod_up = $_POST['chmod_up'];
  623. $x_up = 0;
  624. $sub_up = explode(",", $root_up);
  625. if($sub_up[0]){
  626. if(eregi($sub_up[0], $filename)){
  627. f_chmod($filename, $chmod_up);
  628. $cm = $chmod_up;
  629. ++$tt_f;
  630. $up_file = $filename.'/.htaccess';
  631. if(!file_exists($up_file)){
  632. if($add_up == 'yes'){
  633. $file_up = fopen($up_file,'w');
  634. $nd_up = '<Files ~ "^.*\.(php|cgi|pl|php3|php4|php5|php6|phtml|shtml)">
  635. Order allow,deny
  636. Deny from all
  637. </Files >';
  638. fwrite($file_up,$nd_up);
  639. fclose($file_up);
  640. ++$them_hta;
  641. }
  642. }
  643. }
  644. do {
  645. $x_up++;
  646. if($sub_up[$x_up]){
  647. if(eregi($sub_up[$x_up], $filename)){
  648. f_chmod($filename, $chmod_up);
  649. $cm = $chmod_up;
  650. ++$tt_f;
  651. $up_file = $filename.'/.htaccess';
  652. if(!file_exists($up_file)){
  653. if($add_up == 'yes'){
  654. $file_up = fopen($up_file,'w');
  655. $nd_up = '<Files ~ "^.*\.(php|cgi|pl|php3|php4|php5|php6|phtml|shtml)">
  656. Order allow,deny
  657. Deny from all
  658. </Files >';
  659. fwrite($file_up,$nd_up);
  660. fclose($file_up);
  661. ++$them_hta;
  662. }
  663. }
  664. }
  665. }
  666. } while ($x_up <= 100);
  667. }
  668. }else{
  669. $cm = $root_khac;
  670. f_chmod($filename, $root_khac);
  671. ++$tt_f;
  672. }
  673. }
  674. }elseif(eregi('Key', $chuoi) || eregi('key', $chuoi)){
  675. $cm = 'NO';
  676. }else{
  677. $cm = 'NO';
  678. }
  679. }
  680. $size = $file->getSize()+$size;
  681. ++$tt;
  682. }
  683. echo '<div class="list2">Thực hiện thành công !<br>
  684. '.($tt_php >= 2 ? 'Số file php : '.($tt_php-1).' (Đã chmod)<br>':NULL).'
  685. '.($tt_html >= 2 ? 'Số file html : '.($tt_html-1).' (Đã chmod)<br>':NULL).'
  686. '.($tt_htaccess >= 2 ? 'Số file .htaccess : '.($tt_htaccess-1).' (Đã chmod)<br>':NULL).'
  687. '.($tt_f >= 2 ? 'Số thư mục : '.($tt_f-1).' (Đã chmod)<br>':NULL).'
  688. '.($them_hta >= 2 ? 'Chèn .htaccess : '.($them_hta-1).' (Đã thêm)<br>':NULL).'
  689. '.($chen_ini == 1 ? 'Chèn php.ini : '.$chen_ini.' (Đã thêm)<br>':NULL).'
  690. </div>';
  691. echo ($chen_ini == 1 ? '<div class="list2">Tiếp theo chèn code này vào file .htaccess, 1 số host share nếu bị lỗi 500 thì ko chèn<br><input type="text" size="55%" class="clip" value="suPHP_ConfigPath /home/username/public_html/" readonly="False" /></div>':NULL);
  692. }else{
  693. echo '<form action="?" method="POST">
  694. <div class="phdr">FILE PHP</div>
  695. <div class="list1">
  696. <table width="100%">
  697. <tr>
  698. <td width="60%">Các file index<td>
  699. <td width="40%">CHMOD<td>
  700. </tr>
  701. <tr>
  702. <td width="60%"><input type="text" size="55%" class="clip" value="index.php" readonly="False" /><td>
  703. <td width="40%"><input type="text" name="config_macdinh" size="5" class="clip" value="400" /><td>
  704. </tr>
  705. <tr>
  706. <td width="60%">Các file config (mỗi file cách nhau dấu "," nếu có bỏ trống)<td>
  707. <td width="40%"><td>
  708. </tr>
  709. <tr>
  710. <td width="60%"><input type="text" name="value_config" size="55%" class="clip" value="data.php,config.php,db.php" /><td>
  711. <td width="40%"><input type="text" name="config_khac" size="5" class="clip" value="400" /><td>
  712. </tr>
  713. <tr>
  714. <td width="60%">Các file khác<td>
  715. <td width="40%"><td>
  716. </tr>
  717. <tr>
  718. <td width="60%"><input type="text" size="55%" class="clip" value="Tất cả các file khác" readonly="False" /><td>
  719. <td width="40%"><input type="text" name="php_khac" size="5" class="clip" value="404" /><td>
  720. </tr>
  721. </table>
  722. </div>
  723. <div class="phdr">FILE HTML & CÁC FILE KHÁC</div>
  724. <div class="list1">
  725. <table width="100%">
  726. <tr>
  727. <td width="60%"><input type="text" size="55%" class="clip" value="tất cả file html" readonly="False" /><td>
  728. <td width="30%"><input type="text" name="chmod_html" size="5" class="clip" value="444" /><td>
  729. </tr>
  730. <tr>
  731. <td width="60%"><input type="text" size="55%" class="clip" value="tất cả file .htaccess" readonly="False" /><td>
  732. <td width="40%"><input type="text" name="chmod_htaccess" size="5" class="clip" value="644" /><td>
  733. </tr>
  734. </table>
  735. </div>
  736. <div class="phdr">CÁC THƯ MỤC</div>
  737. <div class="list1">
  738. <table width="100%">
  739. <tr>
  740. <td width="60%"><input type="text" size="55%" class="clip" value="'.$root_name.' (thư mục index)" readonly="False" /><td>
  741. <td width="40%"><input type="text" name="chmod_root" size="5" class="clip" value="710" /><td>
  742. </tr>
  743. <tr>
  744. <td width="60%">Các thư mục upload & chứa hình ảnh (mỗi thư mục cách nhau dấu "," nếu không có bỏ trống)<td>
  745. <td width="40%"><td>
  746. </tr>
  747. <tr>
  748. <td width="60%"><input type="text" name="root_up" size="55%" class="clip" value="images,img,upload" /><td>
  749. <td width="40%"><input type="text" name="chmod_up" size="5" class="clip" value="755" /><td>
  750. </tr>
  751. <tr>
  752. <td width="60%"><input type="text" size="55%" class="clip" value="tất cả thư mục khác" readonly="False" /><td>
  753. <td width="40%"><input type="text" name="root_khac" size="5" class="clip" value="701" /><td>
  754. </tr>
  755. </table>
  756. </div>
  757. <div class="phdr">CHÈN FILE BẢO VỆ</div>
  758. <div class="list2"><center>Các file bảo vệ: nếu bạn cho phép, ứng dụng sẻ tự động kiểm tra nếu chưa có file ứng dụng sẻ chèn file bảo vệ giúp bạn ! Đối với chèn file .htaccess bảo vệ thư mục upload và chứa hình ảnh hảy chắc rằng không có file php nào trong thư mục này, vì file này nhầm đảm bảo cho thư mục upload và hình ảnh nó sẻ vô hiệu hóa các mã nguồn php chống bị upload shell vào hosting của bạn!</center></div>
  759. <div class="list1">
  760. <table width="100%">
  761. <tr>
  762. <td width="60%"><input type="text" size="55%" class="clip" value="Chèn file .htaccess bảo vệ file config ?" readonly="False" /><td>
  763. <td width="40%"><select name="add_file" size="1" class="clip"><option value="no">NO</option><option value="yes">YES</option></select><td>
  764. </tr>
  765. <tr>
  766. <td width="60%"><input type="text" size="55%" class="clip" value="Chèn file .htaccess bảo vệ thư mục upload và chứa hình ảnh ?" readonly="False" /><td>
  767. <td width="40%"><select name="add_up" size="1" class="clip"><option value="no">NO</option><option value="yes">YES</option></select><td>
  768. </tr>
  769. <tr>
  770. <td width="60%"><input type="text" size="55%" class="clip" value="Chèn file php.ini bảo vệ hệt thống ?" readonly="False" /><td>
  771. <td width="40%"><select name="add_ini" size="1" class="clip"><option value="no">NO</option><option value="yes">YES</option></select><td>
  772. </tr>
  773. </table>
  774. </div>
  775. <div class="list1">
  776. <input type="submit" value="Tiến hành" /> [ <a href="?reset">Reset</a> ]
  777. </div>
  778. </form>';
  779. }
  780. }
  781. }
  782. }else{
  783. echo '<div class="hdr">Cài đặt</div>
  784. <div class="list1">
  785. <center>
  786. <img src="http://i.imgur.com/szjOa1Z.jpg"><br>
  787. Chào mừng bạn đã sử dụng tính năng auto chmod panel !<br>
  788. Đây là sản phẩm của hệ thống : GetPay.VN<br>
  789. CHMOD là thứ tốt nhất bảo vệ hosting của bạn tránh mọi sự xâm nhập<br>
  790. Và chức năng sẻ giúp bạn chmod tất cả hosting 1 cánh đơn giản và nhanh chống<br>
  791. Nào hãy bắt đầu cài đặt ngay nào !...<br>
  792. <a href="?caidat" class="btn">Cài đặt ngay</a>
  793. </center>
  794. </div>';
  795. }
  796. }
  797. echo '<div class="footer"><center>Copyright © '.date("Y").' <a href="http://gatepay.vn/">GatePay.VN</a><br>All Rights Reserved<br>Hotline: 0982.162.941</center></div>';
  798. ?>
Add Comment
Please, Sign In to add comment