程氏CMS去掉静态页面的隐藏性版权方法
程氏CMS去掉静态页面的隐藏性版权方法
实例如图:
因为之前自己找了好久都没找到这俩代码写在那个文件夹的,经过跟asqq8讨论了也没有得到结果,今天突然发现,原来这些代码都经过base64加密,用加密码写进去的,所以导致我搜索的时候搜索不到实质显示的代码,
我们打开文件 app/models/csdjskins.php
我们查找如下代码:
//模版解析 function skins($template,$data = null,$return_template_string = false){ $template_string = $this->Common_Mark($template,$data); //通用标签解析 if(!is_bool($return_template_string)) $return_template_string = false; if(!$return_template_string){ $template_string.=$this->base_decode('DQo8IS0tDQogICAgICAgICBPT09PTyAgIE9PT09PICAgICBPT09PTyAgIE9PT09PTyAgICAgIE9PT09PICAgT09PT08NCiAgICAgICAgT08gICAgICAgT08gICAgICAgT08gICAgICAgT08gICAgT08gIE9PICAgT08gICBPTw0KICAgICAgICBPTyAgICAgICBPT09PTyAgICBPTyAgICAgICBPTyAgICAgIE8gTyAgICBPTyAgIE9PT09PDQogICAgICAgIE9PICAgICAgICAgIE9PICAgIE9PICAgICAgIE9PICAgICAgIE8gICAgIE9PICAgICAgT08NCiAgICAgICAgIE9PT09PICAgT08gT08gICAgIE9PT09PICAgT08gICAgICAgICAgICAgT08gICBPTyBPTyAgDQogDQogICAgICAgQ3NjbXMgVGVhbSBhbmQgQ2hzaGNtcyBVSSBUZWFtIDIwMDgtMjAxNCBDaHNoY21zLmNvbSBJbmMuDQotLT4-c'); echo $template_string; }
找到以下代码:
DQo8IS0tDQogICAgICAgICBPT09PTyAgIE9PT09PICAgICBPT09PTyAgIE9PT09PTyAgICAgIE9PT09PICAgT09PT08NCiAgICAgICAgT08gICAgICAgT08gICAgICAgT08gICAgICAgT08gICAgT08gIE9PICAgT08gICBPTw0KICAgICAgICBPTyAgICAgICBPT09PTyAgICBPTyAgICAgICBPTyAgICAgIE8gTyAgICBPTyAgIE9PT09PDQogICAgICAgIE9PICAgICAgICAgIE9PICAgIE9PICAgICAgIE9PICAgICAgIE8gICAgIE9PICAgICAgT08NCiAgICAgICAgIE9PT09PICAgT08gT08gICAgIE9PT09PICAgT08gICAgICAgICAgICAgT08gICBPTyBPTyAgDQogDQogICAgICAgQ3NjbXMgVGVhbSBhbmQgQ2hzaGNtcyBVSSBUZWFtIDIwMDgtMjAxNCBDaHNoY21zLmNvbSBJbmMuDQotLT4-c
经过base64解码之后得到以下内容:
以上就是每个页面最底部的程氏版权,同样的方法我们去掉头部上面的三条版权,查找以下代码:
$Mark_T='<head>'.$content[0].$this->base_decode('PG1ldGEgbmFtZT0iZ2VuZXJhdG9yIiBjb250ZW50PSJDc2NtcyB2My41IiAvPg0KPG1ldGEgbmFtZT0iYXV0aG9yIiBjb250ZW50PSJDc2NtcyBUZWFtIGFuZCBDaHNoY21zIFVJIFRlYW0iIC8-bDQo8bWV0YSBuYW1lPSJjb3B5cmlnaHQiIGNvbnRlbnQ9IjIwMDgtMjAxNCBDaHNoY21zLmNvbSBJbmMuIiAvPg0KPC9oZWFkPg-c-c'); @$Mark_Text=$temp[0].$Mark_T.$content[1];
从以上代码得到的加密码为以下:
PG1ldGEgbmFtZT0iZ2VuZXJhdG9yIiBjb250ZW50PSJDc2NtcyB2My41IiAvPg0KPG1ldGEgbmFtZT0iYXV0aG9yIiBjb250ZW50PSJDc2NtcyBUZWFtIGFuZCBDaHNoY21zIFVJIFRlYW0iIC8-bDQo8bWV0YSBuYW1lPSJjb3B5cmlnaHQiIGNvbnRlbnQ9IjIwMDgtMjAxNCBDaHNoY21zLmNvbSBJbmMuIiAvPg0KPC9oZWFkPg-c-c
经过解码如图:
以上就是程氏CMS静态文件当中每个页面包含的隐藏版权去除方法.
注:
我删除只是为了页面代码的整洁好看,同时会在主页给官方做个版权描述链接,请各位没有购买官方版权的给官网做个版权链接在主页,请保护尊重互联网商务版权!