JS escaped string decryption

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jordguitar
    New Member
    • Sep 2007
    • 5

    #1

    JS escaped string decryption

    long story short, staff member went nuts on my site and now i need to remove some of his stuff but he decoded everything.

    [HTML]<script>
    <!--
    document.write( unescape("%3Cbr %3E%0A%3Ccenter %3E%0A%3Ctable% 20width%3D%2241 5%22%20border%3 D%220%22%3E%0A% 20%20%3Ctr%3E%0 A%20%20%20%20%3 Ctd%20width%3D% 22100%22%3E%3Ca %20href%3D%22in dex.php%22%3E%3 Cimg%20src%3D%2 2images/news_allgrey.pn g%22%20border%3 D%220%22%3E%3C/a%3E%3C/td%3E%0A%20%20% 20%20%3Ctd%20wi dth%3D%225%22%3 E%26nbsp%3B%3C/td%3E%0A%20%20% 20%20%3Ctd%20wi dth%3D%22100%22 %3E%3Ca%20href% 3D%22news_site. php%22%3E%3Cimg %20src%3D%22ima ges/news_sitegrey.p ng%22%20border% 3D%220%22%3E%3C/a%3E%3C/td%3E%0A%0A%20% 20%20%20%3Ctd%2 0width%3D%22100 %22%3E%3Cimg%20 src%3D%22images/news_neocolor.p ng%22%3E%3C/td%3E%0A%20%20% 20%20%3Ctd%20wi dth%3D%225%22%3 E%26nbsp%3B%3C/td%3E%0A%20%20% 20%20%3Ctd%20wi dth%3D%22100%22 %3E%3Ca%20href% 3D%22news_fca.p hp%22%3E%3Cimg% 20src%3D%22imag es/news_fcagrey.pn g%22%20border%3 D%220%22%3E%3C/a%3E%3C/td%3E%0A%20%20% 3C/tr%3E%0A%3C/table%3E%3Cbr%3 E%0A%0A%3Ccente r%3E%3C%3FPHP%0 A%24number%3D15 %3B%0A%24templa te%3D%22Default %22%3B%0A%24cat egory%3D%223%22 %3B%0Ainclude%2 8%22/misc/14/244/411/338/8/user/web/neo-excitement.com/newsadmin/show_news.php%2 2%29%3B%0A%3F%3 E%3C/center%3E"));
    //-->
    </script>
    [/HTML]

    All of this is mine and not sure if this is in the right section or not but if you can do that will bee great.

    Wont respond much to this thread as my host just broke alot of servers and one of those servers have my site on it
  • ronverdonk
    Recognized Expert Specialist
    • Jul 2006
    • 4259

    #2
    I'll move this to the JavaScript forum, since the problem is in a JS statement.

    moderator

    Comment

    • jordguitar
      New Member
      • Sep 2007
      • 5

      #3
      Originally posted by ronverdonk
      I'll move this to the JavaScript forum, since the problem is in a JS statement.

      moderator

      Gah... Thanks for moving it

      Comment

      • acoder
        Recognized Expert MVP
        • Nov 2006
        • 16032

        #4
        Welcome to TSDN!

        I've changed the thread title to include more information about the problem.

        You want to know what that string translates into? Replace document.write with alert.

        Comment

        • jordguitar
          New Member
          • Sep 2007
          • 5

          #5
          Originally posted by acoder
          Welcome to TSDN!

          I've changed the thread title to include more information about the problem.

          You want to know what that string translates into? Replace document.write with alert.

          Ok. I thought the sidebar code was in it but I guess not. I will look around again. Thanks


          EDIT: I am a idiot. header.php

          note to self: dont work on .php files at 8 am


          Need this decoded so i can get rid of the iframe that is messing up the site

          [PHP]document.write( unescape("%3Cht ml%3E%0A%0A%3Ch ead%3E%0A%3Ctit le%3ENeo-Excitement%3C/title%3E%0A%0A% 3Clink%20rel%3D %22stylesheet%2 2%20type%3D%22t ext/css%22%20href%3 D%22style.css%2 2%3E%0A%0A%3Csc ript%20language %3D%22JavaScrip t%22%3E%0A%3C%2 1--%0Afunction%20c alcHeight%28%29 %0A%7B%0A%20%20//find%20the%20he ight%20of%20the %20internal%20p age%0A%20%20var %20the_height%3 D%0A%20%20%20%2 0document.getEl ementById%28%27 interact%27%29. contentWindow.% 0A%20%20%20%20% 20%20document.b ody.scrollHeigh t%3B%0A%0A%20%2 0//change%20the%20 height%20of%20t he%20iframe%0A% 20%20document.g etElementById%2 8%27interact%27 %29.height%3D%0 A%20%20%20%20%2 0%20the_height% 3B%0A%7D%0A//--%3E%0A%3C/script%3E%0A%0A %3C/head%3E%0A%0A%3 Cbody%20backgro und%3D%22http%3 A//neo-excitement.com/images/page_bg.png%22% 3E%0A%0A%3Ctabl e%20style%3D%22 position%3Aabso lute%3B%20top%3 A10px%3B%20left %3A0px%3B%22%3E %0A%3Ctr%3E%3Ct d%20width%3D%22 10%22%3E%26nbsp %3B%3C/td%3E%0A%0A%3Ct d%3E%0A%0A%0A%3 Ctable%20cellpa dding%3D%220%22 %20cellspacing% 3D%220%22%20bor der%3D%220%22%2 0width%3D%22800 %22%20height%3D %22169%22%3E%0A %3Ctr%3E%3Ctd%3 E%0A%0A%3Cimg%2 0src%3D%22http% 3A//neo-excitement.com/images/layout_header.p ng%22%20width%3 D%22800%22%20he ight%3D%22169%2 2%3E%0A%0A%3C/td%3E%3C/tr%3E%0A%3C/table%3E%0A%0A% 0A%3Ctable%20ce llpadding%3D%22 0%22%20cellspac ing%3D%220%22%2 0border%3D%220% 22%20wclassth%3 D%22800%22%20ba ckground%3D%22h ttp%3A//neo-excitement.com/images/layout_bg.png%2 2%3E%0A%0A%3C%2 1--BORDER--%3E%3Ctr%3E%3Ct d%20width%3D%22 22%22%3E%3C/td%3E%3C%21--END%20BORDER--%3E%0A%0A%3Ctd% 20width%3D%2215 6%22%20valign%3 D%22top%22%3E%0 A%0A%3Ca%20href %3D%22http%3A//neo-excitement.com/site_home.php%2 2%3E%3Cimg%20sr c%3D%22http%3A//neo-excitement.com/images/links_thesite.p ng%22%20border% 3D%220%22%3E%3C/a%3E%3Cbr%3E%3C br%3E%0A%0A%3Ci mg%20src%3D%22h ttp%3A//neo-excitement.com/images/links_spacer.pn g%22%3E%3Ca%20h ref%3D%22http%3 A//neo-excitement.com/index.php%22%3E News%20Articles %3C/a%3E%3Cbr%3E%0A %3Cimg%20src%3D %22http%3A//neo-excitement.com/images/links_spacer.pn g%22%3E%3Ca%20h ref%3D%22http%3 A//neo-excitement.com/site_about.php% 22%3EAbout%20Ne o-Excitement%3C/a%3E%3Cbr%3E%0A %3Cimg%20src%3D %22http%3A//neo-excitement.com/images/links_spacer.pn g%22%3E%3Ca%20h ref%3D%22http%3 A//neo-excitement.com/site_support.ph p%22%3ESupport% 20Neo-Excitement%3C/a%3E%3Cbr%3E%0A %3Cimg%20src%3D %22http%3A//neo-excitement.com/images/links_spacer.pn g%22%3E%3Ca%20h ref%3D%22http%3 A//neo-excitement.com/site_contact.ph p%22%3EContact% 20Neo-Excitement%3C/a%3E%3Cbr%3E%3C br%3E%0A%3Cimg% 20src%3D%22http %3A//neo-excitement.com/images/links_spacer.pn g%22%3E%3Ca%20h ref%3D%22http%3 A//neo-excitement.com/site_hosting.ph p%22%3EHosting% 20Services%3C/a%3E%3Cbr%3E%0A %3Cimg%20src%3D %22http%3A//neo-excitement.com/images/links_spacer.pn g%22%3E%3Ca%20h ref%3D%22http%3 A//neo-excitement.com/site_employees. php%22%3ECurren t%20Employees%3 C/a%3E%3Cbr%3E%0A %3Cimg%20src%3D %22http%3A//neo-excitement.com/images/links_spacer.pn g%22%3E%3Ca%20h ref%3D%22http%3 A//neo-excitement.com/site_openings.p hp%22%3EEmploym ent%20Openings% 3C/a%3E%3Cbr%3E%0A %3Cimg%20src%3D %22http%3A//neo-excitement.com/images/links_spacer.pn g%22%3E%3Ca%20h ref%3D%22http%3 A//neo-excitement.com/site_credits.ph p%22%3ESite%20C redits%20%26%20 Status%3C/a%3E%3Cbr%3E%0A %0A%0A%3Cbr%3E% 3Ca%20href%3D%2 2http%3A//neo-excitement.com/interact/%22%3E%3Cimg%20 src%3D%22http%3 A//neo-excitement.com/images/links_interacti ve.png%22%20bor der%3D%220%22%3 E%3C/a%3E%3Cbr%3E%3C br%3E%3Ccenter% 3E%3Ca%20href%3 D%22http%3A//neo-excitement.com/interactive.php %22%3EAbout%20N E%20Interactive %3C/a%3E%3Cbr%3E%0A %3Ciframe%20wid th%3D%22156%22% 20id%3D%22inter act%22%20%0A%09 onLoad%3D%22cal cHeight%28%29%3 B%22%20%0A%09sr c%3D%22http%3A//neo-excitement.com/interact/iframe.php%22%2 0%0A%09scrollin g%3D%22NO%22%20 %0A%09framebord er%3D%220%22%20 %0A%09height%3D %221%22%3E%0A%3 C/iframe%3E%0A%3C/center%3E%3Ctex t%20align%3D%22 justify%22%3E%0 A%3Cimg%20src%3 D%22http%3A//neo-excitement.com/images/links_spacer.pn g%22%3E%3Ca%20h ref%3D%22http%3 A//neo-excitement.com/interact/%22%3EMain%20Fo rums%3C/a%3E%3Cbr%3E%0A %3Cimg%20src%3D %22http%3A//neo-excitement.com/images/links_spacer.pn g%22%3E%3Ca%20h ref%3D%22http%3 A//neo-excitement.com/interact/misc.php%3Facti on%3Dsearch%22% 3ESearch%20Foru ms%3C/a%3E%3Cbr%3E%0A %3Cimg%20src%3D %22http%3A//neo-excitement.com/images/links_spacer.pn g%22%3E%3Ca%20h ref%3D%22http%3 A//neo-excitement.com/interact/faq.php%3Fpage% 3Dforumrules%22 %3ETerms%20%26% 20Conditions%3C/a%3E%3Cbr%3E%0A %0A%0A%3Cbr%3E% 3Ca%20href%3D%2 2http%3A//neo-excitement.com/designs_home.ph p%22%3E%3Cimg%2 0src%3D%22http% 3A//neo-excitement.com/images/links_designs.p ng%22%20border% 3D%220%22%3E%3C/a%3E%3Cbr%3E%3C br%3E%0A%3Cimg% 20src%3D%22http %3A//neo-excitement.com/images/links_spacer.pn g%22%3E%3Ca%20h ref%3D%22http%3 A//neo-excitement.com/designs_icons.p hp%22%3EAvatars %20%26%20Icons% 3C/a%3E%3Cbr%3E%0A %3Cimg%20src%3D %22http%3A//neo-excitement.com/images/links_spacer.pn g%22%3E%3Ca%20h ref%3D%22http%3 A//neo-excitement.com/designs_banners .php%22%3EBanne rs%20%26%20Sign s%3C/a%3E%3Cbr%3E%0A %3Cimg%20src%3D %22http%3A//neo-excitement.com/images/links_spacer.pn g%22%3E%3Ca%20h ref%3D%22http%3 A//neo-excitement.com/designs_guilds. php%22%3EGuild% 20Layouts%3C/a%3E%3Cbr%3E%0A %3Cimg%20src%3D %22http%3A//neo-excitement.com/images/links_spacer.pn g%22%3E%3Ca%20h ref%3D%22http%3 A//neo-excitement.com/designs_web.php %22%3EWebsite%2 0Templates%3C/a%3E%3Cbr%3E%0A %3Cimg%20src%3D %22http%3A//neo-excitement.com/images/links_spacer.pn g%22%3E%3Ca%20h ref%3D%22http%3 A//neo-excitement.com/designs_lookup. php%22%3EUser-Lookup%20Layout s%3C/a%3E%3Cbr%3E%0A %0A%0A%3Cbr%3E% 3Ca%20href%3D%2 2http%3A//neo-excitement.com/guides_home.php %22%3E%3Cimg%20 src%3D%22http%3 A//neo-excitement.com/images/links_neoguides .png%22%20borde r%3D%220%22%3E% 3C/a%3E%3Cbr%3E%3C br%3E%0A%3Cimg% 20src%3D%22http %3A//neo-excitement.com/images/links_spacer.pn g%22%3E%3Ca%20h ref%3D%22http%3 A//neo-excitement.com/guides_site.php %22%3ESite%20Gu ides%3C/a%3E%3Cbr%3E%0A %3Cimg%20src%3D %22http%3A//neo-excitement.com/images/links_spacer.pn g%22%3E%3Ca%20h ref%3D%22http%3 A//neo-excitement.com/guides_games.ph p%22%3EGame%20G uides%3C/a%3E%3Cbr%3E%0A %3Cimg%20src%3D %22http%3A//neo-excitement.com/images/links_spacer.pn g%22%3E%3Ca%20h ref%3D%22http%3 A//neo-excitement.com/guides_finders. php%22%3EFinder s%20%26%20Lists %3C/a%3E%3Cbr%3E%0A %3Cimg%20src%3D %22http%3A//neo-excitement.com/images/links_spacer.pn g%22%3E%3Ca%20h ref%3D%22http%3 A//neo-excitement.com/guides_articles .php%22%3EFeatu red%20Articles% 3C/a%3E%3Cbr%3E%0A %0A%0A%3Cbr%3E% 3Ca%20href%3D%2 2http%3A//neo-excitement.com/tutorials_home. php%22%3E%3Cimg %20src%3D%22htt p%3A//neo-excitement.com/images/links_tutorials .png%22%20borde r%3D%220%22%3E% 3C/a%3E%3Cbr%3E%3C br%3E%0A%3Cimg% 20src%3D%22http %3A//neo-excitement.com/images/links_spacer.pn g%22%3E%3Ca%20h ref%3D%22http%3 A//neo-excitement.com/tutorials_web.p hp%22%3EWebsite %20Design%3C/a%3E%3Cbr%3E%0A %3Cimg%20src%3D %22http%3A//neo-excitement.com/images/links_spacer.pn g%22%3E%3Ca%20h ref%3D%22http%3 A//neo-excitement.com/tutorials_desig n.php%22%3EDesi gn%20Programs%3 C/a%3E%3Cbr%3E%0A %3Cimg%20src%3D %22http%3A//neo-excitement.com/images/links_spacer.pn g%22%3E%3Ca%20h ref%3D%22http%3 A//neo-excitement.com/tutorials_progr amming.php%22%3 EProgramming%20 Languages%3C/a%3E%3Cbr%3E%0A %0A%0A%3Cbr%3E% 3Ca%20href%3D%2 2http%3A//neo-excitement.com/affiliates_home .php%22%3E%3Cim g%20src%3D%22ht tp%3A//neo-excitement.com/images/links_affiliate s.png%22%20bord er%3D%220%22%3E %3C/a%3E%3Cbr%3E%3C br%3E%0A%0A%3Cc enter%3E%5BAFFI LIATES%20HERE%5 D%3Cbr%3E%3Cbr% 3E%0A%0A%5BTOPS ITES%20HERE%5D% 3C/center%3E%3Cbr% 3E%0A%0A%0A%0A% 3C/td%3E%0A%0A%0A% 3C%21--BORDER--%3E%3Ctd%20widt h%3D%2212%22%3E %3C/td%3E%3C%21--END%20BORDER--%3E%0A%0A%3Ctd% 20width%3D%2258 4%22%20valign%3 D%22top%22%20al ign%3D%22justif y%22%3E%0A%0A%0 A%0A%0A%0A%3Cdi v%3E%0A%0A%3Cce nter%3E%3Ctable %20width%3D%225 75%22%20class%3 D%22navtd%22%3E %3Ctr%3E[/PHP]

          Comment

          • acoder
            Recognized Expert MVP
            • Nov 2006
            • 16032

            #6
            Use this as a test:
            [HTML]<html>
            <body>
            <form>
            <textarea id="test" rows="20" cols="50"></textarea>
            </form>
            <script>
            document.getEle mentById("test" ).value = unescape('the escaped code goes here');
            </script>
            </body>
            </html>[/HTML]

            Comment

            • jordguitar
              New Member
              • Sep 2007
              • 5

              #7
              Originally posted by acoder
              Use this as a test:
              [HTML]<html>
              <body>
              <form>
              <textarea id="test" rows="20" cols="50"></textarea>
              </form>
              <script>
              document.getEle mentById("test" ).value = unescape('the escaped code goes here');
              </script>
              </body>
              </html>[/HTML]

              I now love this site. That worked perfectly. Thanks

              *lock thread*

              Comment

              • acoder
                Recognized Expert MVP
                • Nov 2006
                • 16032

                #8
                You're welcome. Glad to hear you got your problem solved.

                Comment

                Working...