Detta är en av funktionerna i Baidu Cloud Acceleration, som förvirrar e-postadresser.
Hur dekrypterar man den?
Hur man dekrypterar e-postadressnumret i C# data-cfemail="66000810120d5656572612090b4805090b" är dekrypterad.
<a class="__cf_email__" href="/cdn-cgi/l/email-protection" data-cfemail="66000810120d5656572612090b4805090b">[email protected]</a><scrip{filter}t cf-hash='f9e31' type="text/javascrip{filter}t">
/* <![CDATA[ */!function(){try{var t="currentscrip{过滤}t"in document?document.currentscrip{过滤}t:function(){for(var t=document.getElementsByTagName("scrip{过滤}t"),e=t.length;e--;)if(t[e].getAttribute("cf-hash"))return t[e]}();if(t&&t.previousSibling){var e,r,n,i,c=t.previousSibling,a=c.getAttribute("data-cfemail");if(a){for(e="",r=parseInt(a.substr(0,2),16),n=2;a.length-n;n+=2)i=parseInt(a.substr(n,2),16)^r,e+=String.fromCharCode(i);e=document.createTextNode(e),c.parentNode.replaceChild(e,c)}}}catch(u){}}();/* ]]> */</scrip{过滤}t> string Demo(string a="66000810120d5656572612090b4805090b"){ sträng e=""; int r,n,i;
r=Konvertera.TillInt32(a.Substring(0,2),16); för (n = 2; n < a.Längd; n+=2) { i=Konvertera.ToInt32(a.Substring(n,2),16)^r; e+=(char)i; } System.Diagnostics.Debug.WriteLine(e); återvänd e;
|