Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- joe.somebody@company.com
- function XOR_Crypt(EmailAddress)
- {
- Result = new String();
- for (var i = 0; i < EmailAddress.length; i++)
- {
- Result += String.fromCharCode(EmailAddress.charCodeAt(i) ^ 128);
- }
- document.write(Result);
- }
- XOR_Crypt("êïå®óïíåâïäùÀãïíðáîù®ãïí");
- joe.somebody AT company.com
- <a href="#" class="--mailto--john--domain--com-- other classes goes here" />
- // match all a-elements with "--mailto--" somehere in the class property
- $("a[class*='--mailto--']").each(function ()
- {
- /*
- for each of those elements use a regular expression to pull
- out the data you need to construct a valid e-mail adress
- */
- var validEmailAdress = this.className.match();
- $(this).click(function ()
- {
- window.location = validEmailAdress;
- });
- });
- <a href="mailto:[email protected]"
- onclick="this.href=this.href.replace(/hatestogetspam/,'')">
- Dim rxEmailLink As New Regex("<ab[^>]*mailto:b[^>]*>(.*?)</a>")
- Dim m As Match = rxEmailLink.Match(Html)
- While m.Success
- Dim strEntireLinkOrig As String = m.Value
- Dim strEntireLink As String = strEntireLinkOrig
- strEntireLink = strEntireLink.Replace("'", """") ' replace any single quotes with double quotes to make sure the javascript is well formed
- Dim rxLink As New Regex("(<ab[^>]*mailto:)([w.-_^@]*@[w.-_^@]*)(b[^>]*?)>(.*?)</a>")
- Dim rxLinkMatch As Match = rxLink.Match(strEntireLink)
- Dim strReplace As String = String.Format("<script language=""JavaScript"">document.write('{0}{1}{2}>{3}</a>');</script>", _
- RandomlyChopStringJS(rxLinkMatch.Groups(1).ToString), _
- ConvertToAsciiHex(rxLinkMatch.Groups(2).ToString), _
- rxLinkMatch.Groups(3), _
- ConvertToHtmlEntites(rxLinkMatch.Groups(4).ToString))
- Result = Result.Replace(strEntireLinkOrig, strReplace)
- m = m.NextMatch()
- End While
- Public Function RandomlyChopStringJS(ByVal s As String) As String
- Dim intChop As Integer = Int(6 * Rnd()) + 1
- Dim intCount As Integer = 0
- RandomlyChopStringJS = ""
- If Not s Is Nothing AndAlso Len(s) > 0 Then
- For Each c As Char In s.ToCharArray()
- If intCount = intChop Then
- RandomlyChopStringJS &= "'+'"
- intChop = Int(6 * Rnd()) + 1
- intCount = 0
- End If
- RandomlyChopStringJS &= c
- intCount += 1
- Next
- End If
- End Function
- <script language="JavaScript">document.write('<a '+'clas'+'s='+'"Mail'+'Link'+'" hr'+'ef'+'="ma'+'ilto:%69%6E%66%6F%40%62%69%63%75%73%61%2E%6F%72%67">info@bicusa.org</a>');</script>
Add Comment
Please, Sign In to add comment