SHARE
TWEET

Untitled

a guest Apr 11th, 2019 95 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP7 Decoder for SourceGuardian Encoder)
  6. *
  7. * @ Version         :   4.0.8.5
  8. * @ Author          :   DeZender
  9. * @ Release on      :   25.03.2019
  10. * @ Official site   :   http://DeZender.Net
  11. *
  12. */
  13.  
  14. namespace app\mobile\controller;
  15.  
  16. function getTopDomainhuo()
  17. {
  18.     $url = $_SERVER['HTTP_HOST'];
  19.     $data = explode('.', $url);
  20.     $co_ta = count($data);
  21.     $zi_tow = true;
  22.     $host_cn = 'com.cn,net.cn,org.cn,gov.cn';
  23.     $host_cn = explode(',', $host_cn);
  24.  
  25.     foreach ($host_cn as $host) {
  26.         if (strpos($url, $host)) {
  27.             $zi_tow = false;
  28.         }
  29.     }
  30.  
  31.     if ($zi_tow) {
  32.         $host = $data[$co_ta - 2] . '.' . $data[$co_ta - 1];
  33.     }
  34.     else {
  35.         $host = $data[$co_ta - 3] . '.' . $data[$co_ta - 2] . '.' . $data[$co_ta - 1];
  36.     }
  37.  
  38.     return $host;
  39. }
  40.  
  41. error_reporting(0);
  42. $domain = getTopDomainhuo();
  43. $real_domain = 'baidu.com';
  44. $http_type = (isset($_SERVER['SERVER_PORT']) && ($_SERVER['SERVER_PORT'] == '443') ? 'https://' : 'http://');
  45. $check_host = '' . $http_type . 'bcso.orcome.com/api/';
  46. $client = '&client=' . base64_encode(str_replace(' ', '+', '现金贷'));
  47. $client_check = $check_host . '?a=client_check&u=' . trim($_SERVER['SERVER_NAME']) . $client;
  48. $check_message = $check_host . '?a=check_message&u=' . trim($_SERVER['SERVER_NAME']) . $client;
  49. $check_info = file_get_contents($client_check);
  50. $message = file_get_contents($check_message);
  51. $ben_string = trim(getTopDomainhuo()) . $real_domain;
  52. $shaben = sha1($ben_string);
  53. $robotstrben = substr(md5($shaben), 0, 8);
  54.  
  55. if ($check_info == $robotstrben) {
  56.     $get_string = trim(getTopDomainhuo()) . $real_domain;
  57. }
  58. else {
  59.     $get_string = trim($_SERVER['SERVER_NAME']) . $real_domain;
  60. }
  61.  
  62. $sha = sha1($get_string);
  63. $robotstr = substr(md5($sha), 0, 8);
  64.  
  65. if ($check_info == '1') {
  66.     header('Content-Type: text/html;charset=utf-8');
  67.     echo '<link href="' . $check_host . 'css/sq.css" rel="stylesheet" type="text/css" />';
  68.     echo '<div class="wrapper">';
  69.     echo '<div class="main">';
  70.     echo '<div class="title">授权信息</div>';
  71.     echo '<div class="content">';
  72.     echo '<p><font color=red>您的特征码:' . $robotstr . '</font></p>';
  73.     echo '<p><font color=red>' . $message . '</font></p>';
  74.     echo '</div>';
  75.     echo '<div class="footer">本臣授权系统';
  76.     echo '</div>';
  77.     echo '</div>';
  78.     echo '</div>';
  79.     exit();
  80. }
  81. else if ($check_info == '2') {
  82.     header('Content-Type: text/html;charset=utf-8');
  83.     echo '<link href="' . $check_host . 'css/sq.css" rel="stylesheet" type="text/css" />';
  84.     echo '<div class="wrapper">';
  85.     echo '<div class="main">';
  86.     echo '<div class="title">授权状态</div>';
  87.     echo '<div class="content">';
  88.     echo '<p><font color=red>' . $message . '</font></p>';
  89.     echo '</div>';
  90.     echo '<div class="footer">本臣授权系统';
  91.     echo '</div>';
  92.     echo '</div>';
  93.     echo '</div>';
  94.     exit();
  95. }
  96. else if ($check_info == '3') {
  97.     header('Content-Type: text/html;charset=utf-8');
  98.     echo '<link href="' . $check_host . 'css/sq.css" rel="stylesheet" type="text/css" />';
  99.     echo '<div class="wrapper">';
  100.     echo '<div class="main">';
  101.     echo '<div class="title">授权状态</div>';
  102.     echo '<div class="content">';
  103.     echo '<p><font color=red>' . $message . '</font></p>';
  104.     echo '</div>';
  105.     echo '<div class="footer">本臣授权系统';
  106.     echo '</div>';
  107.     echo '</div>';
  108.     echo '</div>';
  109.     exit();
  110. }
  111. else if ($check_info == '4') {
  112.     header('Content-Type: text/html;charset=utf-8');
  113.     echo '<link href="' . $check_host . 'css/sq.css" rel="stylesheet" type="text/css" />';
  114.     echo '<div class="wrapper">';
  115.     echo '<div class="main">';
  116.     echo '<div class="title">授权状态</div>';
  117.     echo '<div class="content">';
  118.     echo '<p><font color=red>' . $message . '</font></p>';
  119.     echo '</div>';
  120.     echo '<div class="footer">本臣授权系统';
  121.     echo '</div>';
  122.     echo '</div>';
  123.     echo '</div>';
  124.     exit();
  125. }
  126. else if ($check_info == '5') {
  127.     header('Content-Type: text/html;charset=utf-8');
  128.     echo '<link href="' . $check_host . 'css/sq.css" rel="stylesheet" type="text/css" />';
  129.     echo '<div class="wrapper">';
  130.     echo '<div class="main">';
  131.     echo '<div class="title">授权状态</div>';
  132.     echo '<div class="content">';
  133.     echo '<p><font color=red>' . $message . '</font></p>';
  134.     echo '</div>';
  135.     echo '<div class="footer">本臣授权系统';
  136.     echo '</div>';
  137.     echo '</div>';
  138.     echo '</div>';
  139.     exit();
  140. }
  141.  
  142. $result = $check_info;
  143.  
  144. if (empty($result)) {
  145.     $result_info = '0';
  146. }
  147. else if (!empty($result)) {
  148.     $result_info = $check_info;
  149. }
  150.  
  151. if ($robotstr !== $result_info) {
  152.     if ($domain !== $real_domain) {
  153.         header('Content-Type: text/html;charset=utf-8');
  154.         echo '<link href="' . $check_host . 'css/sq.css" rel="stylesheet" type="text/css" />';
  155.         echo '<div class="wrapper">';
  156.         echo '<div class="main">';
  157.         echo '<div class="content">';
  158.         echo '<p><font color=red>远程检查失败了。请联系授权提供商。</font></p>';
  159.         echo '</div>';
  160.         echo '<div class="footer">本臣授权系统';
  161. ...............................................................
  162. ...................................
  163. ...........
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top