一个源码 生成静态页面的时候 都会自动给首页加2个友情链接 想去掉 卖蜂蜜和减肥广告....
分析源码 怀疑是一个js文件里面的函数 alltoHtml() 但是已经被加密了 请高手指教源码太长 我就给出头部 应该分析下eval后面那部分就可以了吧 如有需要 js源文件在
http://dergao.hk.hl63.com/js/jquery.js/*
* jQuery 1.2.3 - New Wave Javascript
*
* Copyright (c) 2008 John Resig (jquery.com)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* $Date: 2008-02-06 00:21:25 -0500 (Wed, 06 Feb 2008) $
* $Rev: 4663 $
*/
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(J(){7(1e.3N)L w=1e.3N;L E=1e.3N=J(a,b){K 1B E.2l.4T(a,b)};7(1e.$)L D=1e.$;1e.$=E;L u=/^[^<]*(<(.|\\s)+>)[^>]*$|^#(\\w+)$/;L G=/^.[^:#\\[\\.]*$/;E.1n=E.2l={4T:J(d,b){d=d||T;7(d.15){6[0]=d;6.M=1;K 6}N 7(1o d=="25"){L c=u.2O(d);7(c&&(c[1]||!b)){7(c[1])d=E.4a([c[1]],b);N{L a=T.5J(c[3]);7(a)7(a.2w!=c[3])K E().2s(d);N{6[0]=a;6.M=1;K 6}N d=[]}}N K 1B E(b).2s(d)}N 7(E.1q(d))K 1B E(T)[E.1n.21?"21":"3U"](d);K 6.6E(d.1k==1M&&d||(d.5h||d.M&&d!=1e&&!d.15&&d[0]!=10&&d[0].15)
分析源码 怀疑是一个js文件里面的函数 alltoHtml() 但是已经被加密了 请高手指教源码太长 我就给出头部 应该分析下eval后面那部分就可以了吧 如有需要 js源文件在
http://dergao.hk.hl63.com/js/jquery.js/*
* jQuery 1.2.3 - New Wave Javascript
*
* Copyright (c) 2008 John Resig (jquery.com)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* $Date: 2008-02-06 00:21:25 -0500 (Wed, 06 Feb 2008) $
* $Rev: 4663 $
*/
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(J(){7(1e.3N)L w=1e.3N;L E=1e.3N=J(a,b){K 1B E.2l.4T(a,b)};7(1e.$)L D=1e.$;1e.$=E;L u=/^[^<]*(<(.|\\s)+>)[^>]*$|^#(\\w+)$/;L G=/^.[^:#\\[\\.]*$/;E.1n=E.2l={4T:J(d,b){d=d||T;7(d.15){6[0]=d;6.M=1;K 6}N 7(1o d=="25"){L c=u.2O(d);7(c&&(c[1]||!b)){7(c[1])d=E.4a([c[1]],b);N{L a=T.5J(c[3]);7(a)7(a.2w!=c[3])K E().2s(d);N{6[0]=a;6.M=1;K 6}N d=[]}}N K 1B E(b).2s(d)}N 7(E.1q(d))K 1B E(T)[E.1n.21?"21":"3U"](d);K 6.6E(d.1k==1M&&d||(d.5h||d.M&&d!=1e&&!d.15&&d[0]!=10&&d[0].15)
试过在线解密 没效果 所以才来csdn求助
按道理来说 一般是不会输入东西的 。
* jQuery 1.2.3 - New Wave Javascript
*
* Copyright (c) 2008 John Resig (jquery.com)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* $Date: 2008-02-06 00:21:25 -0500 (Wed, 06 Feb 2008) $
* $Rev: 4663 $
*/
(function() {
if (window.jQuery) var w = window.jQuery;
var E = window.jQuery = function(a, b) {
return new E.prototype.init(a, b)
};
if (window.$) var D = window.$;
window.$ = E;
var u = /^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/;
var G = /^.[^:#\[\.]*$/;
E.fn = E.prototype = {
init: function(d, b) {
d = d || document;
if (d.nodeType) {
this[0] = d;
this.length = 1;
return this
} else if (typeof d == "string") {
var c = u.exec(d);
if (c && (c[1] || !b)) {
if (c[1]) d = E.clean([c[1]], b);
else {
var a = document.getElementById(c[3]);
if (a) if (a.id != c[3]) return E().find(d);
else {
this[0] = a;
this.length = 1;
return this
} else d = []
}
} else return new E(b).find(d)
} else if (E.isFunction(d)) return new E(document)[E.fn.ready ? "ready" : "load"](d);
return this.setArray(d.constructor == Array && d || (d.jquery || d.length && d != window && !d.nodeType && d[0] != undefined && d[0].nodeType) && E.makeArray(d) || [d])
},
jquery: "1.2.3",
size: function() {
return this.length
},
length: 0,
get: function(a) {
return a == undefined ? E.makeArray(this) : this[a]
},
pushStack: function(b) {
var a = E(b);
a.prevObject = this;
return a
},
setArray: function(a) {
this.length = 0;
Array.prototype.push.apply(this, a);
return this
},
each: function(a, b) {
return E.each(this, a, b)
},
index: function(b) {
var a = -1;
this.each(function(i) {
if (this == b) a = i
});
return a
},
attr: function(c, a, b) {
var d = c;
if (c.constructor == String) if (a == undefined) return this.length && E[b || "attr"](this[0], c) || undefined;
else {
d = {};
d[c] = a
}
return this.each(function(i) {
for (c in d) E.attr(b ? this.style : this, c, E.prop(this, d[c], b, i, c))
})
},
//...