In the afternoon opened a website, a few seconds after my local QQ window automatically pop-up, display and the other Site Customer Service Chat window. More shocking, I wondered how it was achieved. Finally found in the source code is as follows:
The code is as follows |
Copy Code |
<script language= "JavaScript" ><br> Note: Replace 1649677458 with your own QQ number. 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 ())};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]); (' 7 1=6;9 0 () {8 (1) {2=5.4.3=\ ' a://h/?g=j&i=f&c=b\ '}};e ("0 ()", d); ', 20,20, ' playjsadpopwin|qq_chat|popwin| href|location|window|true|var|if|function|tencent|yes| menu|3000|settimeout| Online Consulting |uin|message| site|1649677458 '. Split (' | '), 0,{}) </script> |
Because the code was encrypted, it failed to analyze its implementation principle. Try to change the next QQ number can be used