DEDECMS去除Power by DedeCms

今天在使用{dede:global.cfg_powerby/} 这个标签的时候发现网站底部除了自己添加的版权信息外,还多了一句Power by DedeCms 而且还加了链接,这对网站优化肯定不好,所以想办法去掉它。

自己通过查找资料发现了有两个方法:

1、自己新建一个变量,不用这个默认的。

2、就是找到源码删掉 Power by DedeCms 这句话。这个怎么删呢?在include/dedesql.class.php 文件的587到592行之间的

$arrs1 = array(0x63,0x66,0x67,0x5f,0x70,0x6f,0x77,0x65,0x72,0x62,0x79);
$arrs2 = array(0x20,0x3c,0x61,0x20,0x68,0x72,0x65,0x66,0x3d,0x68,0x74,0x74,0x70,0x3a,0x2f,0x2f,
0x77,0x77,0x77,0x2e,0x64,0x65,0x64,0x65,0x63,0x6d,0x73,0x2e,0x63,0x6f,0x6d,0x20,0x74,0x61,0x72,
0x67,0x65,0x74,0x3d,0x27,0x5f,0x62,0x6c,0x61,0x6e,0x6b,0x27,0x3e,0x50,0x6f,0x77,0x65,0x72,0x20,
0x62,0x79,0x20,0x44,0x65,0x64,0x65,0x43,0x6d,0x73,0x3c,0x2f,0x61,0x3e);

这段代码给删掉,或者注释掉都可以,这样我们再看底部版权,发现已经正常了,没有Power by DedeCms这句话了。

通过Pop的分析,可以看出$arrs1和$arrs2这个代码后面的代码使用的十六进制编码

可以打开 http://www.jb51.net/tools/zhuanhuan.htm 进行十六进制编码和解码将其直接修改掉,如

0x34,0x32,0x39,0x30,0x30,0x36,0x2e,0x63,0x6f,0x6d,

解码后就是

429006.com

主要就是0x后面对应的数值的变化。

This entry was posted in Technology and tagged , , . Bookmark the permalink. 124,530 views

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *