代码如下:
eval(function(p,a,c,k,e,d){e=function(c){return(c35?string.fromcharcode(c+29):c.tostring(36))};if(!''.replace(/^/,string)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[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;}('$(y).x(3(){$(\'a[1p=#]\').k(3(){$(4).2l(\'1p\',\'2h:2w(0)\')});$(\'.2v 8\').k(3(){7 o=$(4);$(4).r(\'.s\').d(3(){7 j=$(4).1j();o.r(\'.s\').6(\'5\').b(j).9(\'5\');o.r(\'.2u
我做的是淘宝客网站,采集商品时需要通过程序的提供方服务器 ,请鉴定这段代码是干什么用的,谢谢
回复讨论(解决方案) 这是整篇代码:
eval(function(p,a,c,k,e,d){e=function(c){return(c35?string.fromcharcode(c+29):c.tostring(36))};if(!''.replace(/^/,string)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[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;}('$(y).x(3(){$(\'a[1p=#]\').k(3(){$(4).2l(\'1p\',\'2h:2w(0)\')});$(\'.2v 8\').k(3(){7 o=$(4);$(4).r(\'.s\').d(3(){7 j=$(4).1j();o.r(\'.s\').6(\'5\').b(j).9(\'5\');o.r(\'.2u\').q().b(j).14(j)})});$(\'.2b 8\').k(3(m){$(4).r(\'a\').v(\'t\',-$(4).u());$(4).e(3(){$(4).r(\'a\').h({\'t\':\'0\'},x)},3(){$(4).r(\'a\').h({\'t\':$(4).u()},{1u:x,23:3(){$(4).v(\'t\',-$(4).u(\'8\').u())}})})});$(\'#1q 1n\').1z(\'1y\',3(){$(\'#1q 1n\').6(\'e\');$(4).9(\'e\')});$(\'.1h .1r\').k(3(i){$(4).e(3(){$(\'.1h .1r\').6(\'5\').b(i).9(\'5\');$(\'.1h 1o\').q().b(i).c()},3(){$(4).r(\'1o\').q();$(4).6(\'5\')})});$(\'.22 8\').k(3(i){$(4).d(3(){f(i==10)m l;$(\'.z 8\').6(\'5\').b(i).9(\'5\');$(\'.z p\').q().b(i).c()})});7 f=0;7 w=0;$(\'.z .1b\').d(3(){f(f==1){$(4).6(\'5\');$(\'.q\').q(x);f=0}n{$(4).9(\'5\');$(\'.q\').c(x);f=1}m l});$(\'.q\').e(3(){w=1},3(){w=0});$(\'1k\').1q(\'d\',3(){f(f==1&&w==0){$(\'.q\').q(x);$(\'.z .1b\').6(\'5\');f=0}});3 1z(){f($(\'.i 8\').1s\'});$(\'#a\').16(s).1c(1b);$(\'#g .2o\').16(s);$(\'#g .2k\').v(\'1m\',15);$(\'#a\').v(\'1m\',15+13);$(\'#a e:1p\').9(\'5\');3 17(d,1k){d=$(d)?$(d):d;d.9(1k).2j().6(1k)}$(\'#g .2n\').d(3(){11(1)});$(\'#g .2m\').d(3(){11(-1)});3 11(j){f($(\'#g\').2i(\':2d\')==l){c+=j;f(c!=-1&&c!=n){$(\'#g\').h({\'y\':-c*w+\'z\'},v)}n f(c==-1){c=n-1;$(#g).v({y:-(w*(c-1))+z});$(#g).h({y:-(w*c)+z},v)}n f(c==n){c=0;$(#g).v({y:-w+z});$(#g).h({y:0+z},v)}17($(\'#a e\').b(c),\'5\')}}$(\'#a e\').d(3(){c=$(4).1j();1l(c);17($(\'#a e\').b(c),\'5\')});3 1l(i){f($(\'#g\').v(\'y\')!=-i*w+\'z\'){$(\'#g\').v(\'y\',-i*w+\'z\');$(\'#g\').1n(0,3(){$(\'#g\').14(j)})}}3 1e(){t=1r(3(){11(1)},1f)}3 1m(){f(t)1x(t)}$(#g).e(3(){1m()},3(){1e()});1e()});$(y).x(3(){7 b=l;7 l=l;$(\'.1g .s\').d(3(){f(b==l){$(\'.k\').c(x);$(4).9(\'5\');b=1i}n{$(\'.k\').q(x);$(4).6(\'5\');b=l}m l});$(\'.k\').e(3(){l=1i},3(){l=l});$(\'1k\').1q(\'d\',3(){f(b==1i&&l==l){$(\'.k\').q(x);$(\'.1g .s\').6(\'5\');b=l}})});$(y).x(3(){$(\'.1i\').k(3(i){$(4).r(\'.r\').d(3(){$(\'.1i\').b(i).r(\'p\').1g()})});$(.r).1g(3(){$(4).9(r-2)},3(){$(4).6(r-2)})});3 20(){7 1j=$(\'.21\').u();7 1d=$(\'.p\').u();7 1h=$(\'.p .28\').u();7 1f=1j-1d;f(1f>0){7 h=1d+1f-12;$(\'.p\').u(h)}f(1j-1h
刚找了个工具进行解密,解密后:
$(document).ready(function() {
$('a[href=#]').each(function() {
$(this).attr('href', 'javascript:void(0)')
});
$('.perform li').each(function() {
var o = $(this);
$(this).find('.s').click(function() {
var j = $(this).index();
o.find('.s').removeclass('on').eq(j).addclass('on');
o.find('.info').hide().eq(j).fadein(500)
})
});
$('.artist_l li').each(function(m) {
$(this).find('a').css('top', -$(this).height());
$(this).hover(function() {
$(this).find('a').animate({
'top': '0'
},
200)
},
function() {
$(this).find('a').animate({
'top': $(this).height()
},
{
duration: 200,
complete: function() {
$(this).css('top', -$(this).parent('li').height())
}
})
})
});
$('#calendar td').live('mouseover',
function() {
$('#calendar td').removeclass('hover');
$(this).addclass('hover')
});
$('.category_list .item').each(function(i) {
$(this).hover(function() {
$('.category_list .item').removeclass('on').eq(i).addclass('on');
$('.category_list ol').hide().eq(i).show()
},
function() {
$(this).find('ol').hide();
$(this).removeclass('on')
})
});
$('.u_city_a li').each(function(i) {
$(this).click(function() {
if (i == 10) return false;
$('.u_city_nav li').removeclass('on').eq(i).addclass('on');
$('.u_city_nav p').hide().eq(i).show()
})
});
var intindexcity = 0;
var inthovercity = 0;
$('.u_city_nav .more').click(function() {
if (intindexcity == 1) {
$(this).removeclass('on');
$('.s_citys').hide(200);
intindexcity = 0
} else {
$(this).addclass('on');
$('.s_citys').show(200);
intindexcity = 1
}
return false
});
$('.s_citys').hover(function() {
inthovercity = 1
},
function() {
inthovercity = 0
});
$('body').bind('click',
function() {
if (intindexcity == 1 && inthovercity == 0) {
$('.s_citys').hide(200);
$('.u_city_nav .more').removeclass('on');
intindexcity = 0
}
});
function scrolllist() {
if ($('.scroll_txt li').length var temp = $('.scroll_txt li:last');
temp.hide();
$('.scroll_txt li:last').remove();
$('.scroll_txt li:first').before(temp);
temp.slidedown(500)
}
window.setinterval(scrolllist, 5000);
$('.live_top li').each(function(i) {
$(this).hover(function() {
$('.live_top li').removeclass('on').eq(i).addclass('on')
})
});
$('.list_1 li').each(function(i) {
$(this).hover(function() {
$('.list_1 li').removeclass('on').eq(i).addclass('on')
})
});
$('.vote_m dd').each(function(i) {
$(this).click(function() {
$('.vote_m dd').removeclass('on').eq(i).addclass('on')
})
});
$('.tr_commend dl').each(function(i) {
$(this).hover(function() {
$('.tr_commend dl').removeclass('on').eq(i).addclass('on')
})
});
$('.ticketinfo .help').hover(function() {
$('.mintips').fadein('fast')
},
function() {
$('.mintips').fadeout('fast')
});
$('.videolist li').hover(function() {
$(this).addclass('on')
},
function() {
$(this).removeclass('on')
});
$('.min_tip .tab_min_b a').each(function(i) {
$(this).click(function() {
$('.tab_min_b a').removeclass('on').eq(i).addclass('on')
})
});
$('.news_list li').hover(function() {
$(this).addclass('on')
},
function() {
$(this).removeclass('on')
});
$('.tr_pic_list li').hover(function() {
$(this).addclass('on')
},
function() {
$(this).removeclass('on')
});
$('.sift .expand').toggle(function() {
$('#city').height(24);
$(this).html('\u5c55\u5f00')
},
function() {
$('#city').height('auto');
$(this).html('\u6536\u7f29')
});
$('.buy_caption .tab_t a').each(function(i) {
$(this).click(function() {
$('.buy_caption .tab_t a').removeclass('on').eq(i).addclass('on');
$('.buy_caption dl').hide().eq(i).show()
})
});
$('.vocal_list li .t .c7').click(function() {
$(this).parent().parent().find('.t').show();
$(this).parent().hide()
})
});
$(document).ready(function() {
var t = false;
var str = '';
var speed = 500;
var w = 960;
var n = $('#actor li').length;
var numwidth = n * 18;
var _left = (w - (numwidth + 26)) / 2;
var c = 0;
$('#actor').width(w * n);
$('#actor li').each(function(i) {
str += ''
});
$('#numinner').width(numwidth).html(str);
$('#imgplay .mc').width(numwidth);
$('#imgplay .num').css('left', _left);
$('#numinner').css('left', _left + 13);
$('#numinner span:first').addclass('on');
function cur(ele, currentclass) {
ele = $(ele) ? $(ele) : ele;
ele.addclass(currentclass).siblings().removeclass(currentclass)
}
$('#imgplay .next').click(function() {
slide(1)
});
$('#imgplay .prev').click(function() {
slide( - 1)
});
function slide(j) {
if ($('#actor').is(':animated') == false) {
c += j;
if (c != -1 && c != n) {
$('#actor').animate({
'marginleft': -c * w + 'px'
},
speed)
} else if (c == -1) {
c = n - 1;
$(#actor).css({
marginleft: -(w * (c - 1)) + px
});
$(#actor).animate({
marginleft: -(w * c) + px
},
speed)
} else if (c == n) {
c = 0;
$(#actor).css({
marginleft: -w + px
});
$(#actor).animate({
marginleft: 0 + px
},
speed)
}
cur($('#numinner span').eq(c), 'on')
}
}
$('#numinner span').click(function() {
c = $(this).index();
fade(c);
cur($('#numinner span').eq(c), 'on')
});
function fade(i) {
if ($('#actor').css('marginleft') != -i * w + 'px') {
$('#actor').css('marginleft', -i * w + 'px');
$('#actor').fadeout(0,
function() {
$('#actor').fadein(500)
})
}
}
function start() {
t = setinterval(function() {
slide(1)
},
5000)
}
function stopt() {
if (t) clearinterval(t)
}
$(#imgplay).hover(function() {
stopt()
},
function() {
start()
});
start()
});
$(document).ready(function() {
var isshowcity = false;
var ishovercitys = false;
$('.s_city .s').click(function() {
if (isshowcity == false) {
$('.s_c_links').show(200);
$(this).addclass('on');
isshowcity = true
} else {
$('.s_c_links').hide(200);
$(this).removeclass('on');
isshowcity = false
}
return false
});
$('.s_c_links').hover(function() {
ishovercitys = true
},
function() {
ishovercitys = false
});
$('body').bind('click',
function() {
if (isshowcity == true && ishovercitys == false) {
$('.s_c_links').hide(200);
$('.s_city .s').removeclass('on');
isshowcity = false
}
})
});
$(document).ready(function() {
$('.sd').each(function(i) {
$(this).find('.hztitle').click(function() {
$('.sd').eq(i).find('p').toggle()
})
});
$(.hztitle).toggle(function() {
$(this).addclass(hztitle-2)
},
function() {
$(this).removeclass(hztitle-2)
})
});
function artheight() {
var rh = $('.artists_r').height();
var lh = $('.artists_l').height();
var list = $('.artists_l .tab_min_in').height();
var dh = rh - lh;
if (dh > 0) {
var h = lh + dh - 12;
$('.artists_l').height(h)
}
if (rh - list $('.artists_l').height('auto')
}
}
这是 jq 代码
没有危险性
这个图片是360网站安全检测中 后门检测,查出来的
点击查看后门位置后出现了这段代码:
第1行:eval(function(p,a,c,k,e,d){e=function(c){return(c35?string.fromcharcode(c+29):c.tostring(36))};if(!''.replace(/^/,string)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[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;}('$(y).x(3(){$(\'a[1p=#]\').k(3(){$(4).2l(\'1p\',\'2h:2w(0)\')});$(\'.2v 8\').k(3(){7 o=$(4);$(4).r(\'.s\').d(3(){7 j=$(4).1j();o.r(\'.s\').6(\'5\').b(j).9(\'5\');o.r(\'.2u
就是帖子首层发的那个。 难到说360 误报?
你把 js 代码发到 javascript 版面,请权威人士鉴定一下就知道书否误报了