分享

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

 昵称69478410 2020-04-14

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.

2 index.php里面

elseif ($_REQUEST['act'] == 'main_api')

$api_comment = $t->request('http://api./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

如果不要就把注释掉

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多