This article is a mirror article of machine translation, please click here to jump to the original article.

View: 19065|Reply: 0

[Source] C# mailbox anti-obfuscation, decrypting the email address in javascrip{filter}t

[Copy link]
Posted on 10/10/2015 10:22:21 PM | | | |


This is one of the features of Baidu Cloud Acceleration, which confuses email addresses.

How to decrypt it?

How to decrypt the email number in C#
data-cfemail="66000810120d5656572612090b4805090b" is decrypted.

<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"){
            string e="";
            int r,n,i;

            r=Convert.ToInt32(a.Substring(0,2),16);
            for (n = 2; n < a.Length; n+=2) {
                i=Convert.ToInt32(a.Substring(n,2),16)^r;
                e+=(char)i;
            }
            //System.Diagnostics.Debug.WriteLine(e);
            return e;





Previous:Baidu Cloud accelerates attention to email address obfuscation/WAF
Next:Zhou Jinqiao: IT people (programmers), please take care of your body
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com