Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 8 of 8
  1. #1
    Senior Coder
    Join Date
    May 2006
    Posts
    1,673
    Thanks
    28
    Thanked 4 Times in 4 Posts

    printing unescaped characters

    Hello
    I want to print the unescaped characters in this sequence:
    unescape('%66%75%6E%63%74%69%6F%6E%20%')

    so I tried to do this on a page, but it did not display anything.

    What have I missed out ?

    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    
    <html>
    <head>
    <title>Untitled</title>
    </head>
    <body>
    <script type="text/javascript">
    <!--
    
    print unescape('%66%75%6E%63%74%69%6F%6E%20%')
    
    
    // -->
    </script>
    </body>
    </html>
    If you want to attract and keep more clients, then offer great customer support.

    Support-Focus.com. automates the process and gives you a trust seal to place on your website.
    I recommend that you at least take the 30 day free trial.

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,017
    Thanks
    203
    Thanked 2,538 Times in 2,516 Posts
    document.write(unescape('%66%75%6E%63%74%69%6F%6E%20%'))

    function %

  • #3
    Senior Coder
    Join Date
    May 2006
    Posts
    1,673
    Thanks
    28
    Thanked 4 Times in 4 Posts
    Thanks
    That has helped somewhat but I guess tha eval() works differently from document.write() becuase I can only display some of the code

    eg

    document.write(unescape('%66%75%6E%63%74%69%6F%6E%20%64%32%37%28%73%74%72%31%29%7B%0D%0A%76%61%72%20 %73%74%72%32%3D%75%6E%65%73%63%61%70%65%28%73%74%72%31%2E%73%75%62%73%74%72%28%30%2C%73%74%72%31%2E% 6C%65%6E%67%74%68%2D%31%29%29%3B%20%76%61%72%20%73%74%72%33%3D%27%27%3B%0D%0A%66%6F%72%28%6A%3D%30%3 B%6A%3C%73%74%72%32%2E%6C%65%6E%67%74%68%3B%6A%2B%2B%29%73%74%72%33%2B%3D%53%74%72%69%6E%67%2E%66%72 %6F%6D%43%68%61%72%43%6F%64%65%28%73%74%72%32%2E%63%68%61%72%43%6F%64%65%41%74%28%6A%29%2D%73%74%72% 31%2E%73%75%62%73%74%72%28%73%74%72%31%2E%6C%65%6E%67%74%68%2D%31%2C%31%29%29%3B%0D%0A%64%6F%63%75%6 D%65%6E%74%2E%77%72%69%74%65%28%75%6E%65%73%63%61%70%65%28%73%74%72%33%29%29%3B%0D%0A%7D'));d27('&4D tdsjqu&31mbohvbhf&4E&33kbwbtdsjqu&33&4F%261E%261Bwbs%2631est%264E1%263Dnpwjoh%264E1%263Dsftj%7Bjoh%2 64E1%263Dtig%263Defg%263Dsti%263Deti%263Dceg%264E1%263Dtiu%264E1%263Dtmu%264E1%263Dcb6%264E1%263Dqmb %26'))

    will only work as far as the "));d27" (4th line from bottom)

    I dont know what ;d27 does but all the characters after that point dont seem to be escape characters

    how do I print out the rest?
    If you want to attract and keep more clients, then offer great customer support.

    Support-Focus.com. automates the process and gives you a trust seal to place on your website.
    I recommend that you at least take the 30 day free trial.

  • #4
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,017
    Thanks
    203
    Thanked 2,538 Times in 2,516 Posts
    Quote Originally Posted by jeddi View Post
    Thanks
    That has helped somewhat but I guess tha eval() works differently from document.write() becuase I can only display some of the code

    eg

    document.write(unescape('%66%75%6E%63%74%69%6F%6E%20%64%32%37%28%73%74%72%31%29%7B%0D%0A%76%61%72%20 %73%74%72%32%3D%75%6E%65%73%63%61%70%65%28%73%74%72%31%2E%73%75%62%73%74%72%28%30%2C%73%74%72%31%2E% 6C%65%6E%67%74%68%2D%31%29%29%3B%20%76%61%72%20%73%74%72%33%3D%27%27%3B%0D%0A%66%6F%72%28%6A%3D%30%3 B%6A%3C%73%74%72%32%2E%6C%65%6E%67%74%68%3B%6A%2B%2B%29%73%74%72%33%2B%3D%53%74%72%69%6E%67%2E%66%72 %6F%6D%43%68%61%72%43%6F%64%65%28%73%74%72%32%2E%63%68%61%72%43%6F%64%65%41%74%28%6A%29%2D%73%74%72% 31%2E%73%75%62%73%74%72%28%73%74%72%31%2E%6C%65%6E%67%74%68%2D%31%2C%31%29%29%3B%0D%0A%64%6F%63%75%6 D%65%6E%74%2E%77%72%69%74%65%28%75%6E%65%73%63%61%70%65%28%73%74%72%33%29%29%3B%0D%0A%7D'));d27('&4D tdsjqu&31mbohvbhf&4E&33kbwbtdsjqu&33&4F%261E%261Bwbs%2631est%264E1%263Dnpwjoh%264E1%263Dsftj%7Bjoh%2 64E1%263Dtig%263Defg%263Dsti%263Deti%263Dceg%264E1%263Dtiu%264E1%263Dtmu%264E1%263Dcb6%264E1%263Dqmb %26'))

    will only work as far as the "));d27" (4th line from bottom)

    I dont know what ;d27 does but all the characters after that point dont seem to be escape characters

    how do I print out the rest?
    The document.write statement ends at )); All the rest is garbage or obfuscated code. I guess that you are trying to peek where someone does to wish you to.

  • #5
    Senior Coder rnd me's Avatar
    Join Date
    Jun 2007
    Location
    Urbana
    Posts
    4,349
    Thanks
    11
    Thanked 589 Times in 570 Posts
    you must eval the first part, which gives you a function: "function d27(str1)"

    you then pass the second part to d27 and it un-ciphers the text.

    i am not sure exactly where the key versus where the text is passed, i think it might work on itself going backwards.
    my site (updated 13/9/26)
    BROWSER STATS [% share] (2014/5/28) IE7:0.1, IE8:5.3, IE11:8.4, IE9:3.2, IE10:3.2, FF:18.2, CH:46, SF:7.9, NON-MOUSE:32%

  • #6
    Senior Coder
    Join Date
    May 2006
    Posts
    1,673
    Thanks
    28
    Thanked 4 Times in 4 Posts
    Hi thanks for the input.

    I have read in several places - this forum included probably - that you can NOT hide your code - well if that is true, I should be able to see this bit of code, understand it and make the some changes.

    However I can not see how to evaluate this code without first decoding it.
    I am a bit stuck
    If you want to attract and keep more clients, then offer great customer support.

    Support-Focus.com. automates the process and gives you a trust seal to place on your website.
    I recommend that you at least take the 30 day free trial.

  • #7
    Senior Coder
    Join Date
    May 2006
    Posts
    1,673
    Thanks
    28
    Thanked 4 Times in 4 Posts
    How do I unravel this function
    - any ideas ?

    Code:
    document.write(unescape('%66%75%6E%63%74%69%6F%6E%20%64%32%37%28%73%74%72%31%29%7B%0D%0A%76%61%72%20 %73%74%72%32%3D%75%6E%65%73%63%61%70%65%28%73%74%72%31%2E%73%75%62%73%74%72%28%30%2C%73%74%72%31%2E% 6C%65%6E%67%74%68%2D%31%29%29%3B%20%76%61%72%20%73%74%72%33%3D%27%27%3B%0D%0A%66%6F%72%28%6A%3D%30%3 B%6A%3C%73%74%72%32%2E%6C%65%6E%67%74%68%3B%6A%2B%2B%29%73%74%72%33%2B%3D%53%74%72%69%6E%67%2E%66%72 %6F%6D%43%68%61%72%43%6F%64%65%28%73%74%72%32%2E%63%68%61%72%43%6F%64%65%41%74%28%6A%29%2D%73%74%72% 31%2E%73%75%62%73%74%72%28%73%74%72%31%2E%6C%65%6E%67%74%68%2D%31%2C%31%29%29%3B%0D%0A%64%6F%63%75%6 D%65%6E%74%2E%77%72%69%74%65%28%75%6E%65%73%63%61%70%65%28%73%74%72%33%29%29%3B%0D%0A%7D'));d27('&4D tdsjqu&31mbohvbhf&4E&33kbwbtdsjqu&33&4F%261E%261Bwbs%2631est%264E1%263Dnpwjoh%264E1%263Dsftj%7Bjoh%2 64E1%263Dtig%263Defg%263Dsti%263Deti%263Dceg%264E1%263Dtiu%264E1%263Dtmu%264E1%263Dcb6%264E1%263Dqmb %26'))
    When unescaped it reads:
    function d27(str1)

    but thats as far as I can get
    If you want to attract and keep more clients, then offer great customer support.

    Support-Focus.com. automates the process and gives you a trust seal to place on your website.
    I recommend that you at least take the 30 day free trial.

  • #8
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,017
    Thanks
    203
    Thanked 2,538 Times in 2,516 Posts
    One more time ....

    The document.write statement ends at )); All the rest is garbage or obfuscated code. I guess that you are trying to peek where someone does to wish you to.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •