网站开发 · 2025年4月24日

去除Ecshop后台调用api.ecshop.com官网后门代码

Ecshop后台对ecshop官网的调用的文件有:

  • 1 help.php
  • 2 index.php
  • 3 shop_config.php
  • 4 templates/menu.htm
  • 5 templates/start.htm

1help.php这个不是调用,是header到ecshop帮助文档的首页http://help.ecshop.com   2 index.php里面 elseif ($_REQUEST[‘act’] == ‘main_api’) $api_comment = $t->request(‘http://api.ecshop.com/checkver.php’,$apiget); 这个是检查版本的,显示在后台首页最上面,如果有更新就提示您有更新的版本   在templates/start.htm里面有Ajax.call(‘index.php?is_ajax=1&act=main_api’,”,start_api, ‘GET’, ‘TEXT’,’FLASE’); 把这句注释掉就不会调用main_api里。   3 shop_config.php            $spt = ‘       $spt .=”&shop_name=” .urlencode($_CFG[‘shop_name’]);       $spt .=”&shop_title=”.urlencode($_CFG[‘shop_title’]);       $spt .=”&shop_desc=” .urlencode($_CFG[‘shop_desc’]);       $spt .=”&shop_keywords=”.urlencode($_CFG[‘shop_keywords’]);       $spt .=”&country=”.urlencode($shop_country).”&province=”.urlencode($shop_province).”&city=”.urlencode($shop_city);       $spt .=”&address=”.urlencode($_CFG[‘shop_address’]);       $spt .=”&qq=$_CFG[qq]&ww=$_CFG[ww]&ym=$_CFG[ym]&msn=$_CFG[msn]”;       $spt .=”&email=$_CFG[service_email]&phone=$_CFG[service_phone]&icp=”.urlencode($_CFG[‘icp_number’]);       $spt .=”&version=”.VERSION.”&language=$_CFG[lang]&php_ver=”.PHP_VERSION. “&mysql_ver=”.$db->version();       $spt .=”&charset=”.EC_CHARSET;       $spt .='”>’;     4  templates/menu.htm  这个应该是调用ecshop那边提供的菜单选项   5templates/start.htm   如果不要就把注释掉