Decoding html pages

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Santander

    Decoding html pages

    how to decode HTML pages encoded like this:

    Is there script that will do this automatically and generate normal fully
    readable HTML?

    Santander

  • Bart Van der Donck

    #2
    Re: Decoding html pages

    Santander wrote:
    how to decode HTML pages encoded like this:

    Is there script that will do this automatically and generate normal fully
    readable HTML?
    It can be decrypted with relatively little effort. Line 5 is the
    percent-encoding of (line-ends and intervals added):

    <SCRIPT LANGUAGE="JavaS cript">
    <!--
    hp_ok=true;
    function hp_d01(s) {
    if (!hp_ok) return;
    var o="",
    ar=new Array(),
    os="",
    ic=0;
    for (i=0;i<s.length ;i++) {
    c=s.charCodeAt( i);
    if (c<128)
    c=c^2;
    os+=String.from CharCode(c);
    if (os.length>80) {
    ar[ic++]=os;
    os=""
    }
    }
    o=ar.join("")+o s;
    document.write( o)
    }
    //-->
    </SCRIPT>

    Info:


    Function 'hp_d01' takes the square number of the character code when
    it's below 128. For a decryption, this operation can be reversed by
    taking the square root, eg. Math.sqrt(64).

    Hope this helps,

    --
    Bart

    Comment

    • Santander

      #3
      Re: Decoding html pages

      well, I've decoded the very top part of script:

      <SCRIPT LANGUAGE="JavaS cript"><!--
      hp_ok=true;func tion hp_d01(s){if(!h p_ok)return;var o="",ar=new
      Array(),os="",i c=0;for(i=0;i<s .length;i ){c=s.charCodeA t(i);if(c<128)c =c^2;os
      =String.fromCha rCode(c);if(os. length>80){ar[ic ]=os;os=""}}o=ar .join("")
      os;document.wri te(o)}//--></SCRIPT>


      but it tells me nothing though. How to decode the rest part of page? any
      automated tool/script availble?
      ------------------------

      "Santander" <santander@comp .lang.javascrip twrote in message
      news:49007a82$0 $90270$14726298 @news.sunsite.d k...
      how to decode HTML pages encoded like this:

      Is there script that will do this automatically and generate normal fully
      readable HTML?

      Comment

      • Gregor Kofler

        #4
        Re: Decoding html pages

        Santander meinte:
        how to decode HTML pages encoded like this:

        >
        Is there script that will do this automatically and generate normal
        fully readable HTML?
        LOL. Tells me something about both the authors of this page and you as
        the upcoming hakk3r...

        Just have a look at "generated source" with FF's web developer
        extension, or inspect the page with Firebug.


        Gregor

        Comment

        • Gregor Kofler

          #5
          Re: Decoding html pages

          Gregor Kofler meinte:
          Santander meinte:
          >how to decode HTML pages encoded like this:
          >http://www.long2consulting.com/seein...able/index.htm
          >>
          >Is there script that will do this automatically and generate normal
          >fully readable HTML?
          >
          LOL. Tells me something about both the authors of this page and you as
          the upcoming hakk3r...
          >
          Forget my above posting. Working with the mentioned tools without the
          experience can lead to a complete loss of data and system crashes.
          Seriously.

          I do have an offer here: Get the full and completely disclosed template
          for, say, 40 bucks? Perhaps you're interested in a few more templates?
          Bulk discounts are negotiable...

          Gregor

          Comment

          • Santander

            #6
            Re: Decoding html pages

            yes, I find this. But how to use this key? Just tried insert that script
            into page header section and run, not help, strange.
            any ideas? Automated tool encode/ decode?

            S.
            ---------

            "Bart Van der Donck" <bart@nijlen.co mwrote in message
            news:54ad6fa4-90bb-40f6-9334-dabcd75f4614@v5 6g2000hsf.googl egroups.com...
            Santander wrote:
            >
            >how to decode HTML pages encoded like this:
            >http://www.long2consulting.com/seein...able/index.htm
            >Is there script that will do this automatically and generate normal fully
            >readable HTML?
            >
            It can be decrypted with relatively little effort. Line 5 is the
            percent-encoding of (line-ends and intervals added):
            >
            <SCRIPT LANGUAGE="JavaS cript">
            <!--
            hp_ok=true;
            function hp_d01(s) {
            if (!hp_ok) return;
            var o="",
            ar=new Array(),
            os="",
            ic=0;
            for (i=0;i<s.length ;i++) {
            c=s.charCodeAt( i);
            if (c<128)
            c=c^2;
            os+=String.from CharCode(c);
            if (os.length>80) {
            ar[ic++]=os;
            os=""
            }
            }
            o=ar.join("")+o s;
            document.write( o)
            }
            //-->
            </SCRIPT>
            >
            Info:

            >
            Function 'hp_d01' takes the square number of the character code when
            it's below 128. For a decryption, this operation can be reversed by
            taking the square root, eg. Math.sqrt(64).
            >
            Hope this helps,
            >
            --
            Bart

            Comment

            • Santander

              #7
              Re: Decoding html pages

              any *positive* ideas? if not - no probs.. I already decode 1/2 and even
              without your valuable help..

              S.
              ------

              "Gregor Kofler" <usenet@gregork ofler.atwrote in message
              news:Po0Mk.45$X b7.43@nntpserve r.swip.net...
              Gregor Kofler meinte:
              >Santander meinte:
              >>how to decode HTML pages encoded like this:
              >>http://www.long2consulting.com/seein...able/index.htm
              >>Is there script that will do this automatically and generate normal
              >>fully readable HTML?
              >>
              >LOL. Tells me something about both the authors of this page and you as
              >the upcoming hakk3r...
              >>
              >
              Forget my above posting. Working with the mentioned tools without the
              experience can lead to a complete loss of data and system crashes.
              Seriously.
              >
              I do have an offer here: Get the full and completely disclosed template
              for, say, 40 bucks? Perhaps you're interested in a few more templates?
              Bulk discounts are negotiable...
              >
              Gregor
              >

              Comment

              • Gregor Kofler

                #8
                Re: Decoding html pages

                Santander meinte:
                any *positive* ideas? if not - no probs.. I already decode 1/2 and even
                without your valuable help..
                Must be tough, since you've problems perhaps not with reading, but
                definitely with *understanding* . Just have a look at the "generated
                source" in FF's "web developer extension" (or a similiar tool, Firebug
                and I suppose Opera Dragonfly works, too).

                Since you are posting with Outlook Express, and are raiding a web site
                offering templates for FrontPage and Expression Web, you've probably
                never heard of alternatives to IE...

                To be even mor constructive: here's the complete source. This time for
                free [1]. Make sure to scroll to the bottom...

                Gregor


                [1]
                <html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml" lang="en"><head >
                <!--hppage status="protect ed"-->

                <meta http-equiv="Content-Type" content="text/html;
                charset=windows-1252"><script language="JavaS cript"><!--
                document.write( unescape("%3C%5 3%43%52%49%50%5 4%20%4C%41%4E%4 7%55%41%47%45%3 D%22%4A%61%76%6 1%53%63%72%69%7 0%74%22%3E%3C%2 1%2D%2D%0D%0A%6 8%70%5F%6F%6B%3 D%74%72%75%65%3 B%66%75%6E%63%7 4%69%6F%6E%20%6 8%70%5F%64%30%3 1%28%73%29%7B%6 9%66%28%21%68%7 0%5F%6F%6B%29%7 2%65%74%75%72%6 E%3B%76%61%72%2 0%6F%3D%22%22%2 C%61%72%3D%6E%6 5%77%20%41%72%7 2%61%79%28%29%2 C%6F%73%3D%22%2 2%2C%69%63%3D%3 0%3B%66%6F%72%2 8%69%3D%30%3B%6 9%3C%73%2E%6C%6 5%6E%67%74%68%3 B%69%2B%2B%29%7 B%63%3D%73%2E%6 3%68%61%72%43%6 F%64%65%41%74%2 8%69%29%3B%69%6 6%28%63%3C%31%3 2%38%29%63%3D%6 3%5E%32%3B%6F%7 3%2B%3D%53%74%7 2%69%6E%67%2E%6 6%72%6F%6D%43%6 8%61%72%43%6F%6 4%65%28%63%29%3 B%69%66%28%6F%7 3%2E%6C%65%6E%6 7%74%68%3E%38%3 0%29%7B%61%72%5 B%69%63%2B%2B%5 D%3D%6F%73%3B%6 F%73%3D%22%22%7 D%7D%6F%3D%61%7 2%2E%6A%6F%69%6 E%28%22%22%29%2 B%6F%73%3B%64%6 F%63%75%6D%65%6 E%74%2E%77%72%6 9%74%65%28%6F%2 9%7D%2F%2F%2D%2 D%3E%3C%2F%53%4 3%52%49%50%54%3 E"));//--></script><script
                language="JavaS cript"><!--
                hp_ok=true;func tion hp_d01(s){if(!h p_ok)return;var o="",ar=new
                Array(),os="",i c=0;for(i=0;i<s .length;i++){c= s.charCodeAt(i) ;if(c<128)c=c^2 ;os+=String.fro mCharCode(c);if (os.length>80){ ar[ic++]=os;os=""}}o=ar .join("")+os;do cument.write(o) }//--></script><script
                language="JavaS cript"><!--
                hp_d01(unescape (">QAPKRV%22NCL EWCEG? HctcQapkrv
                %3C>#//dwlavkml%22jr]fl*c+ypgvwpl%22 dcnqg%7Fdwlavkm l%22jr]ao*+ycngpv*
                ^w2276^w224:^w2 24;^w2251^w2202 ^w2252^w2243^w2 245^w2247^w2202 ^w224:^w2243^w2 251^w2202^w2240 ^w2247^w2247^w2 24G^w2202^w2252 ^w2250^w224D^w2 256^w2247^w2241 ^w2256^w2247^w2 246^w220G^w2202 ^w2272^w2250^w2 247^w2254^w224; ^w2247^w2255^w2 202^w224D^w224G ^w224A^w225;^w2 20G
                +9pgvwpl%22dcnq g%7Fdwlavkml%22 jr]fg*g+ypgvwpl*g, vcpegv,vceLcog# ?lwnn$$g,vcpegv ,vceLcog,qgcpaj *%25%5C*KLRWV~V GZVCPGC~@WVVML~ QGNGAV+&%25+#?/3+%7F9dwlavkml% 22jr]of*g+yoca?lctke cvmp,wqgpCeglv, klfgzMd*%25Oca% 25+#?/39kd*fmawoglv,c nn+ykd*gtglv,`w vvml??0~~*oca$$ *gtglv,avpnIg{~ ~gtglv,ig{Amfg? ?;3+++ycngpv*
                ^w2276^w224:^w2 24;^w2251^w2202 ^w2252^w2243^w2 245^w2247^w2202 ^w224:^w2243^w2 251^w2202^w2240 ^w2247^w2247^w2 24G^w2202^w2252 ^w2250^w224D^w2 256^w2247^w2241 ^w2256^w2247^w2 246^w220G^w2202 ^w2272^w2250^w2 247^w2254^w224; ^w2247^w2255^w2 202^w224D^w224G ^w224A^w225;^w2 20G
                +9pgvwpl*dcnqg+ %7F%7Fgnqgykd*g ,ujkaj??1~~*oca $$*g,omfkdkgpq? ?0~~g,avpnIg{++ +ycngpv*
                ^w2276^w224:^w2 24;^w2251^w2202 ^w2252^w2243^w2 245^w2247^w2202 ^w224:^w2243^w2 251^w2202^w2240 ^w2247^w2247^w2 24G^w2202^w2252 ^w2250^w224D^w2 256^w2247^w2241 ^w2256^w2247^w2 246^w220G^w2202 ^w2272^w2250^w2 247^w2254^w224; ^w2247^w2255^w2 202^w224D^w224G ^w224A^w225;^w2 20G
                +9pgvwpl%22dcnq g%7Fgnqg%22kd*g ,ujkaj??3+yuklf mu,acrvwpgGtglv q*Gtglv,OMWQGOM TG+9uklfmu,mlom wqgomtg?jr]fl%7F%7F%7Fdwla vkml%22jr]ow*g+ykd*g,ujka j??3+yuklfmu,pg ngcqgGtglvq*Gtg lv,OMWQGOMTG+9u klfmu,mlomwqgom tg?lwnn%7F%7Fkd *lctkecvmp,crrL cog,klfgzMd*%25 Klvgplgv%22Gzrn mpgp%25+??/3~~*lctkecvmp,w qgpCeglv,klfgzM d*%25OQKG%25+#?/3$$fmawoglv,cnn ,nglevj#?2++ykd *fmawoglv,cnn+y oca?lctkecvmp,w qgpCeglv,klfgzM d*%25Oca%25+#?/39tgpqkml?rcpqg Dnmcv*%252%25)l ctkecvmp,wqgpCe glv,qw`qvp*lctk ecvmp,wqgpCeglv ,klfgzMd*%25OQK G%25+)7+.32+9kd *#oca$$tgpqkml% 3C6+yfmawoglv,m lamlvgzvoglw?jr]ao%7Fgnqgyfmawo glv,mlomwqgfmul ?jr]of9fmawoglv,mli g{fmul?jr]of9%7Ffmawoglv, mlqgngavqvcpv?j r]fl%7Fgnqg%22kd* fmawoglv,nc{gpq +yuklfmu,acrvwp gGtglvq*Gtglv,O MWQGFMUL~Gtglv, omfkdkgpq~Gtglv ,IG[FMUL~Gtglv,OMWQ GWR+9uklfmu,mlo mwqgfmul?jr]of9uklfmu,mlig{ fmul?jr]of9uklfmu,mlomw qgwr?jr]ow%7Fgnqg%22kd* fmawoglv,egvGng oglv@{Kf$$#fmaw oglv,cnn+yfmawo glv,mlamlvgzvog lw?jr]ao9fmawoglv,mlo mwqgfmul?jr]fg%7F%7Fkd*fmaw oglv,WPN,qw`qvp kle*2.6+??
                dkng +yjr]mi?dcnqg9uklfmu ,nmacvkml? c`mwv8`ncli
                %7Fdwlavkml%22j r]fr3*+ydmp*k?29k >fmawoglv,cnn,n glevj9k))+ykd*f mawoglv,cnnYk_, qv{ng,tkqk`knkv {#?
                jkffgl +yfmawoglv,cnnY k_,qv{ng,tkqk`k nkv{? jkffgl 9fmawoglv,cnnYk _,kf?
                jr]kf
                %7F%7F%7F9dwlav kml%22jr]fr0*+ydmp*k?29k >fmawoglv,cnn,n glevj9k))+ykd*f mawoglv,cnnYk_, kf??
                jr]kf +fmawoglv,cnnYk _,qv{ng,tkqk`kn kv{?
                %7F%7F9uklfmu,m l`gdmpgrpklv?jr]fr39uklfmu,mlcd vgprpklv?jr]fr09fmawoglv,up kvg*%25>qv{ng%2 2v{rg?
                vgzv-aqq %22ogfkc? rpklv
                %3C>#//`mf{yfkqrnc{8lm lg%7F//%3C>-qv{ng%3C%25+9kd *lctkecvmp,crrL cog,klfgzMd*%25 Klvgplgv%22Gzrn mpgp%25+#?/3$$*lctkecvmp,w qgpCeglv,klfgzM d*%25OQKG%25+??/3~~fmawoglv,cnn ,nglevj??2++jr]mi?dcnqg9kd*fma woglv,cnn+fmawo glv,upkvg*%25>n kli%22pgn?qv{ng qjggv%22v{rg?
                vgzv-aqq %22jpgd? jr]lwnn,aqq
                %3C%25+9--//%3C>-QAPKRV%3C"));//--></script><script
                language="JavaS cript"><!--
                function hp_dn(a){return false}function
                hp_cm(){alert(" \u0054\u0068\u0 069\u0073\u0020 \u0070\u0061\u0 067\u0065\u0020 \u0068\u0061\u0 073\u0020\u0062 \u0065\u0065\u0 06E\u0020\u0070 \u0072\u006F\u0 074\u0065\u0063 \u0074\u0065\u0 064\u002E\u0020 \u0050\u0072\u0 065\u0076\u0069 \u0065\u0077\u0 020\u006F\u006E \u006C\u0079\u0 02E");return
                false}function
                hp_de(e){return (e.target.tagNa me!=null&&e.tar get.tagName.sea rch('^(INPUT|TE XTAREA|BUTTON|S ELECT)$')!=-1)};function
                hp_md(e){mac=na vigator.userAge nt.indexOf('Mac ')!=-1;if(document.a ll){if(event.bu tton==2||(mac&& (event.ctrlKey| |event.keyCode= =91))){alert("\ u0054\u0068\u00 69\u0073\u0020\ u0070\u0061\u00 67\u0065\u0020\ u0068\u0061\u00 73\u0020\u0062\ u0065\u0065\u00 6E\u0020\u0070\ u0072\u006F\u00 74\u0065\u0063\ u0074\u0065\u00 64\u002E\u0020\ u0050\u0072\u00 65\u0076\u0069\ u0065\u0077\u00 20\u006F\u006E\ u006C\u0079\u00 2E");return(fal se)}}else{if(e. which==3||(mac& &(e.modifiers== 2||e.ctrlKey))) {alert("\u0054\ u0068\u0069\u00 73\u0020\u0070\ u0061\u0067\u00 65\u0020\u0068\ u0061\u0073\u00 20\u0062\u0065\ u0065\u006E\u00 20\u0070\u0072\ u006F\u0074\u00 65\u0063\u0074\ u0065\u0064\u00 2E\u0020\u0050\ u0072\u0065\u00 76\u0069\u0065\ u0077\u0020\u00 6F\u006E\u006C\ u0079\u002E");r eturn
                false}else
                if(e.which==1){ window.captureE vents(Event.MOU SEMOVE);window. onmousemove=hp_ dn}}}function
                hp_mu(e){if(e.w hich==1){window .releaseEvents( Event.MOUSEMOVE );window.onmous emove=null}}if( navigator.appNa me.indexOf('Int ernet
                Explorer')==-1||(navigator.u serAgent.indexO f('MSIE')!=-1&&document.all .length!=0)){if (document.all){ mac=navigator.u serAgent.indexO f('Mac')!=-1;version=parse Float('0'+navig ator.userAgent. substr(navigato r.userAgent.ind exOf('MSIE')+5) ,10);if(!mac&&v ersion>4){docum ent.oncontextme nu=hp_cm}else{d ocument.onmouse down=hp_md;docu ment.onkeydown= hp_md;}document .onselectstart= hp_dn}else
                if(document.lay ers){window.cap tureEvents(Even t.MOUSEDOWN|Eve nt.modifiers|Ev ent.KEYDOWN|Eve nt.MOUSEUP);win dow.onmousedown =hp_md;window.o nkeydown=hp_md; window.onmouseu p=hp_mu}else
                if(document.get ElementById&&!d ocument.all){do cument.oncontex tmenu=hp_cm;doc ument.onmousedo wn=hp_de}}if(do cument.URL.subs tring(0,4)=="fi le"){hp_ok=fals e;window.locati on="about:blank "}function
                hp_dp1(){for(i= 0;i<document.al l.length;i++){i f(document.all[i].style.visibili ty!="hidden"){d ocument.all[i].style.visibili ty="hidden";doc ument.all[i].id="hp_id"}}}; function
                hp_dp2(){for(i= 0;i<document.al l.length;i++){i f(document.all[i].id=="hp_id")do cument.all[i].style.visibili ty=""}};window. onbeforeprint=h p_dp1;window.on afterprint=hp_d p2;document.wri te('<style
                type="text/css"
                media="print">< !--body{display:no ne}--></style>');if(nav igator.appName. indexOf('Intern et
                Explorer')!=-1&&(navigator.u serAgent.indexO f('MSIE')==-1||document.all .length==0))hp_ ok=false;if(doc ument.all)docum ent.write('<lin k
                rel=stylesheet type="text/css"
                href="hp_null.c ss">');//--></script><style type="text/css"
                media="print">< !--body{display:no ne}--></style>
                <title>Home</title>

                <meta name="descripti on" content="websit e template">
                <meta name="keywords" content="websit e, template, long2 consulting">
                <meta name="owner" content="">
                <meta name="copyright " content="">

                <meta name="author" content="YourNa meHere">
                <meta name="rating" content="Genera l">
                <meta name="revisit-after" content="7 days">
                <link rel="stylesheet " type="text/css" href="styles.cs s">
                </head><body><nos cript>To display this page you need a browser with
                JavaScript support.</noscript><scrip t language="JavaS cript"><!--
                hp_d01(unescape (">`mf{%3C>fk t%22kf? upcrrgp
                %3C>vc`ng%3C  >vp%3C >vf%22kf? jgcfgp3 %3C>fkt%22ancqq ?
                jgcfgpamlvglv %3C >#//ug``mv%22`mv? Klanwfg %22W/Klanwfg?
                klanwfgq-amorcl{lcog,jvo %22VCE? @MF[
                %22qvcpvqrcl%22//%3CAmorcl{% 22Lcog>#//ug``mv%22`mv? Klanwfg
                %22k/ajgaiqwo? 1;043
                %22glfqrcl%22//%3C>-fkt%3C>-vf%3C >-vp%3C >vp%3C >vf%22kf? vmrlct %3C >#//ug``mv%22`mv?
                Klanwfg %22W/Klanwfg? klanwfgq-vmrlctnkliq,jvo %22VCE? @MF[
                %22qvcpvqrcl%22//%3C >fkt%22ancqq? vmrlctnkliq %3C >c%22jpgd?
                klfgz,jvo %3CJmog>-c%3C >c%22jpgd? dcsq,jvo %3CDCSq>-c%3C >c%22jpgd?
                qvmpg,jvo %3CMwp%22Qvmpg>-c%3C >c%22jpgd? nc{mwv3,jvo
                %3CNc{mwv%223>-c%3C >c%22jpgd? nc{mwv0,jvo
                %3CNc{mwv%220>-c%3C >c%22jpgd? nc{mwv1,jvo
                %3CNc{mwv%221>-c%3C >c%22jpgd? egvvkleqvcpvgf, jvo
                %3CEgvvkle%22Qv cpvgf>-c%3C >-fkt%3C>#//ug``mv%22`mv? Klanwfg
                %22k/ajgaiqwo? 350:7
                %22glfqrcl%22//%3C>-vf%3C >-vp%3C>-vc`ng%3C>vc`n g%22ancqq? `mf{vc`ng
                %3C >vp%3C  >vf%22kf? `mf{0 %3C>fkt%22ancqq ?
                `mf{0amlvglv %3C >#//ug``mv%22`mv? Klanwfg %22W/Klanwfg?
                klanwfgq-qkfgnkliq,jvo %22VCE? @MF[ %22qvcpvqrcl%22//%3C>fkt%22anc qq?
                oglwjgcfgp3 %3C>c%22jpgd? ! %3COckl%22Oglw>-c%3C>-fkt%3C>fkt%22 ancqq?
                qkfgnkliq %3C >c%22jpgd? klfgz,jvo
                %3CJmog>-c%3C >c%22jpgd? dcsq,jvo %3CDCSq>-c%3C >c%22jpgd?
                qgptkagq,jvo %3CQgptkagq>-c%3C >c%22jpgd? amlvcavwq,jvo
                %3CAmlvcav%22Wq >-c%3C>-fkt%3C>fkt% 22ancqq? oglwjgcfgp3
                %3C>c%22jpgd? qvmpg %3CMwp%22Qvmpg>-c%3C>-fkt%3C>fkt%22 ancqq?
                qkfgnkliq %3C >c%22jpgd? rpmfwav3,jvo
                %3CRpmfwav%223>-c%3C>-fkt%3C >fkt%22ancqq? oglwjgcfgp3
                %3C>c%22jpgd? ! %3CNc{mwvq>-c%3C>-fkt%3C>fkt%22 ancqq?
                qkfgnkliq %3C >c%22jpgd? nc{mwv3,jvo
                %3CNc{mwv%223>-c%3C >c%22jpgd? nc{mwv0,jvo
                %3CNc{mwv%220>-c%3C >c%22jpgd? nc{mwv1,jvo
                %3CNc{mwv%221>-c%3C>-fkt%3C >fkt%22ancq q? oglwjgcfgp3
                %3C>c%22jpgd? ! %3CVgorncvg%22K ldm>-c%3C>-fkt%3C>fkt%22 ancqq?
                qkfgnkliq %3C >c%22jpgd? egvvkleqvcpvgf, jvo
                %3CEgvvkle%22Qv cpvgf>-c%3C >c%22jpgd? v{rmepcrj{,jvo
                %3CV{rmepcrj{>-c%3C>-fkt%3C>#//ug``mv%22`mv? Klanwfg %22k/ajgaiqwo?
                77;:7 %22glfqrcl%22//%3C>-fkt%3C>-vf%3C >vf%22kf? `mf{3
                %3C>fkt%22ancqq ? `mf{3amlvglv %3C >j0%3CVjkq%22vg orncvg%22dgcvwp gq,,,>-j0%3C >wn%3C >nk%3CC%22>`%3C qvcpvgp%22ug`%2 2vgorncvg>-`%3C%22vm%22jgn r%22{mw%22apgcv g%22 c%22lgu%22ug`%2 2qkvg,%22[mw%22oc{%22gcqk n{%22cff%22{mwp %22mul%22amlvgl v%22 clf%22ompg%22rc egq,>-nk%3C >nk%3C>`%3CFgqk elgf%22dmp%2232 06%22Z%2254:,%2 2 Vjpgg%22nc{mwvq %22/%223.%220.%22cl f%221%22amnwolq ,>-`%3C>-nk%3C >nk%3C>`%3CVc`n g/`cqgf%22nc{mwv>-`%3C%22dmp%22gc q{%22wqg%22kl%2 2 DpmlvRceg%22022 0%22clf%220221, %22Vjkq%22vgorn cvg%22acl%22cnq m%22`g%22 wqgf%22ukvj%22G zrpgqqkml%22Ug` ,>-nk%3C >nk%3C>`%3CKlan wfg%22rcegq>-`%3C%22cpg%22wq gf%22dmp%22amor cl{%22lcog.%22  lctkecvkml%22nk liq.%22lguq.%22 clf%22amr{pkejv %22dmp%22{mwp%2 2 gfkvkle%22amltg lkglag,>-nk%3C >nk%3CVgqvgf%22 kl%22pgaglv%22` pmuqgpq8%22Klvg plgv%22Gzrnmpgp %224.%22 Lgvqacrg%225).% 22Mrgpc%22;.%22 clf%22DkpgDmz,>-nk%3C >nk%3C>`%3CTcnk fcvgf>-`%3C%22ZJVON%
                223,2%22qvpkav. %22AQQ,%22Rpkmp kv{%223%22clf%2 20%22 UACE%223,2%22cl f%22Qgavkml%227 2:%22caagqqk`ng ,>-nk%3C >-wn%3C >j0%3CAcqacfkle %22Qv{ng%22Qjgg vq>-j0%3C >r%3CVjkq%22vgo rncvg%22wqgq%22 vc`ngq%22clf%22 AQQ%22dmp%22vjg %22nc{mwv,%22@g acwqg%22vjg%22  DpmlvRceg%22$sw mv9fgqkel%22tkg u$swmv9%22kq%22 lmv%22cq%22qmrj kqvkacvgf%22cv% 22fkqrnc{kle%22 AQQ%22rpmrgpn{. %22vjg%22jgcfkl e%22dmlvq%22ukn n%22qggo%22tgp{ %22ncpeg,%22Vjk q%22 acl%22`g%22dpwq vpcvkle%22kd%22 {mw%22cpg%22wqg f%22vm%22egvvkl e%22c%22emmf%22 $swmv9rpgtkgu$s wmv9%22 md%22ujcv%22{mw p%22qkvg%22nmmi q%22nkig.%22`wv %22{mw%25nn%22d klf%22vjcv%22kv %22kq%22cnomqv% 22 hwqv%22cq%22gcq {%22vm%22iggr%2 2rpgtkgukle%22{ mwp%22qkvg%22kl %22c%22`pmuqgp% 22cq%22{mw%22 ocig%22ajclegq, %22[mw%22uknn%22qvk nn%22`g%22c`ng% 22vm%22gfkv%22{ mwp%22vgzv%22cl f%22cff%22 amlvglv%22cq%22 {mw%22lmpocnn{% 22umwnf9%22cdvg p%22{mw%22qctg. %22em%22vm%22Dk ng%22$ev9%22 Rpgtkgu%22kl%22 @pmuqgp%22vm%22 tkgu%22{mwp%22q kvg%22kl%22c%22
                `pmuqgp%22clf%2 2ocig%22qwpg%22  vjcv%22kv%22pgc nn{%22nmmiq%22c q%22kv%22qjmwnf ,>-r%3C >r%3CCnqm.%22ma acqkmlcnn{%22Dp mlvRceg%25q%22L mpocn-Fgqkel%22tkgu%2 2oc{%22$swmv9nm qg$swmv9%22vjg% 22 dmpocvvkle,%22U jgl%22vjkq%22jc rrglq.%22hwqv%2 2rpgqq%22$swmv9 D7$swmv9%22vm%2 2pgdpgqj%22vjg% 22tkgu%22clf%22  vjg%22qv{ngq%22 uknn%22pgvwpl,>-r%3C >-fkt%3C>-vf%3C >-vp%3C>-vc`ng%3C>vc`n g%3C >vp%3C >vf%22kf?
                dmmvgp %3C>fkt%22ancqq ? dmmvgpamlvglv %3C >#//ug``mv%22`mv? Klanwfg
                %22W/Klanwfg? klanwfgq-amr{pkejv,jvo %22VCE? @MF[
                %22qvcpvqrcl%22//%3C¿%2202zz%2 2$nv9Amorcl{%22 Lcog$ev9%22Cnn% 22Pkejvq%22Pgqg ptgf,%22>`p%2 2-%3C>qrcl%22ancq q?
                vkl{ %3CFgqkel%22`{% 22>c%22jpgd? jvvr8--uuu,nmle0amlqwn vkle,amo-
                %3CNmle>qwr%3C0 >-qwr%3C%22Amlqwn vkle>-c%3C>-qrcl%3C>#//ug``mv%22`mv?
                Klanwfg %22k/ajgaiqwo? 5326
                %22glfqrcl%22//%3C>-fkt%3C>-vf%3C >-vp%3C>-vc`ng%3C>-fkt%3C>-`mf{%3C"));//--></script>
                <div id="wrapper">
                <table>
                <tbody><tr>
                <td id="header1"><d iv class="headerco ntent">
                <!--webbot bot="Include" U-Include="includ es/companyname.htm "
                TAG="BODY" startspan -->

                Company Name


                <!--webbot bot="Include" i-checksum="39261 " endspan --></div></td>
                </tr>
                <tr>
                <td id="topnav">
                <!--webbot bot="Include" U-Include="includ es/topnavlinks.htm "
                TAG="BODY" startspan -->
                <div class="topnavli nks">
                <a href="index.htm ">Home</a>
                <a href="faqs.htm" >FAQs</a>

                <a href="store.htm ">Our Store</a>
                <a href="layout1.h tm">Layout 1</a>
                <a href="layout2.h tm">Layout 2</a>
                <a href="layout3.h tm">Layout 3</a>
                <a href="gettingst arted.htm">Gett ing Started</a>
                </div>

                <!--webbot bot="Include" i-checksum="17285 " endspan --></td>
                </tr>
                </tbody></table>
                <table class="bodytabl e">
                <tbody><tr>

                <td id="body2"><di v class="body2con tent">
                <!--webbot bot="Include" U-Include="includ es/sidelinks.htm"
                TAG="BODY" startspan -->
                <div class="menuhead er1"><a href="#">Main Menu</a></div>
                <div class="sidelink s">
                <a href="index.htm ">Home</a>

                <a href="faqs.htm" >FAQs</a>
                <a href="services. htm">Services</a>
                <a href="contactus .htm">Contact Us</a>
                </div>

                <div class="menuhead er1"><a href="store">Ou r Store</a></div>
                <div class="sidelink s">
                <a href="product1. htm">Product 1</a>

                </div>

                <div class="menuhead er1"><a href="#">Layout s</a></div>
                <div class="sidelink s">
                <a href="layout1.h tm">Layout 1</a>
                <a href="layout2.h tm">Layout 2</a>
                <a href="layout3.h tm">Layout 3</a>
                </div>

                <div class="menuhead er1"><a href="#">Templa te Info</a></div>

                <div class="sidelink s">
                <a href="gettingst arted.htm">Gett ing Started</a>
                <a href="typograph y.htm">Typograp hy</a>
                </div>
                <!--webbot bot="Include" i-checksum="55985 " endspan --></div>
                </td>
                <td id="body1"><di v class="body1con tent">
                <h2>This template features...</h2>
                <ul>

                <li>A <b>starter web template</bto help you create
                a new web site. You may easily add your own content
                and more pages.</li>
                <li><b>Design ed for 1024 X 768.
                Three layouts - 1, 2, and 3 columns.</b></li>
                <li><b>Table-based layout</bfor easy use in
                FrontPage 2002 and 2003. This template can also be
                used with Expression Web.</li>
                <li><b>Includ e pages</bare used for company name,
                navigation links, news, and copyright for your
                editing convenience.</li>

                <li>Tested in recent browsers: Internet Explorer 6,
                Netscape 7+, Opera 9, and FireFox.</li>
                <li><b>Validate d</bXHTML 1.0 strict, CSS. Priority 1 and 2
                WCAG 1.0 and Section 508 accessible.</li>
                </ul>
                <h2>Cascading Style Sheets</h2>
                <p>This template uses tables and CSS for the layout. Because the
                FrontPage "design view" is not as sophisticated at displaying CSS
                properly, the heading fonts will seem very large. This
                can be frustrating if you are used to getting a good "preview"
                of what your site looks like, but you'll find that it is almost
                just as easy to keep previewing your site in a browser as you
                make changes. You will still be able to edit your text and add
                content as you normally would; after you save, go to File &gt;
                Preview in Browser to view your site in a browser and make sure
                that it really looks as it should.</p>

                <p>Also, occasionally FrontPage's Normal/Design view may "lose" the
                formatting. When this happens, just press "F5" to refresh the view and
                the styles will return.</p>

                </div>
                </td>
                </tr>
                </tbody></table>
                <table>
                <tbody><tr>
                <td id="footer"><di v class="footerco ntent">
                <!--webbot bot="Include" U-Include="includ es/copyright.htm"
                TAG="BODY" startspan -->

                ¿ 20xx &lt;Company Name&gt; All Rights Reserved.
                <br><span class="tiny">De sign by <a
                href="http://www.long2consul ting.com/">Long<sup> 2</sup>
                Consulting</a></span>
                <!--webbot bot="Include" i-checksum="7104" endspan --></div></td>
                </tr>
                </tbody></table>
                </div>
                </body></html>

                Comment

                • Dr J R Stockton

                  #9
                  Re: Decoding html pages

                  In comp.lang.javas cript message <54ad6fa4-90bb-40f6-9334-dabcd75f4614@v5
                  6g2000hsf.googl egroups.com>, Thu, 23 Oct 2008 07:37:12, Bart Van der
                  Donck <bart@nijlen.co mposted:
                  c=s.charCodeAt( i);
                  if (c<128)
                  c=c^2;
                  os+=String.from CharCode(c);
                  >Function 'hp_d01' takes the square number of the character code when
                  >it's below 128.
                  ! c=c^2 squares? I thought it did 32-bit bitwise XOR.

                  --
                  (c) John Stockton, nr London, UK. ?@merlyn.demon. co.uk Turnpike v6.05 MIME.
                  Web <URL:http://www.merlyn.demo n.co.uk/- FAQqish topics, acronyms & links;
                  Astro stuff via astron-1.htm, gravity0.htm ; quotings.htm, pascal.htm, etc.
                  No Encoding. Quotes before replies. Snip well. Write clearly. Don't Mail News.

                  Comment

                  • Spamless

                    #10
                    Re: Decoding html pages

                    On 2008-10-23, Santander <santander@comp .lang.javascrip twrote:
                    how to decode HTML pages encoded like this:

                    Is there script that will do this automatically and generate normal fully
                    readable HTML?
                    I loaded into vim, piped the first line through an "unescape" script
                    to get the definition of the decoding function, hp_d01(.), changed the
                    document.write to print (to pipe through a javascript interpreter whose
                    output is given by "print(.)") and piped it through the interpreter.

                    The top part is more Javascript when decoded. The trick I use to reformat
                    that is to wrap it in:

                    function mycrap(){
                    ... the javascript ...
                    };print(mycrap. toString())

                    since the interpreter I use (the firefox spider monkey) reformats and
                    neatens things. The result is something I often used to see on spamvertized
                    pages to "protect them". The first section "protects" the page, defining various
                    functions and assigning them to onmousedown, oncontextmenu, etc. events so that
                    it controls what you see when you try to examine the page. The functions
                    simply block you from doing things. For example, note the
                    document.URL.su bstring(0, 4) == "file"
                    section below. If you make a copy of the file and attempt to load it
                    in your browser (a local copy will be accessed with a "file://" URL)
                    you get nothing
                    window.location = "about:blan k"

                    The decoding is not hard (I have seen code using arguments.calle e.toString()
                    along with the referrer and page URL as part of the decoding key and others
                    on UTF8 web pages where one had to use a UTF8 locale (or something like
                    uni2ascii, a utility which can convert UTF8 into \u#### escaped unicode
                    which javascript can handle without a browser) and as I said, I have seen
                    this used on spamvertized sites, but this appears not to be one.


                    The second part decodes to HTML, a sample page (as another has displayed).
                    The decoded and reformatted top section is
                    =============== =============== ============

                    function hp_dn(a) {
                    return false;
                    }


                    function hp_cm() {
                    alert("This page has been protected. Preview only.");
                    return false;
                    }


                    function hp_de(e) {
                    return e.target.tagNam e != null &&
                    e.target.tagNam e.search("^(INP UT|TEXTAREA|BUT TON|SELECT)$") != -1;
                    }


                    function hp_md(e) {
                    mac = navigator.userA gent.indexOf("M ac") != -1;
                    if (document.all) {
                    if (event.button == 2 ||
                    mac && (event.ctrlKey || event.keyCode == 91)) {
                    alert("This page has been protected. Preview only.");
                    return false;
                    }
                    } else {
                    if (e.which == 3 || mac && (e.modifiers == 2 || e.ctrlKey)) {
                    alert("This page has been protected. Preview only.");
                    return false;
                    } else if (e.which == 1) {
                    window.captureE vents(Event.MOU SEMOVE);
                    window.onmousem ove = hp_dn;
                    }
                    }
                    }


                    function hp_mu(e) {
                    if (e.which == 1) {
                    window.releaseE vents(Event.MOU SEMOVE);
                    window.onmousem ove = null;
                    }
                    }

                    if (navigator.appN ame.indexOf("In ternet Explorer") == -1 ||
                    navigator.userA gent.indexOf("M SIE") != -1 &&
                    document.all.le ngth != 0) {
                    if (document.all) {
                    mac = navigator.userA gent.indexOf("M ac") != -1;
                    version = parseFloat("0" + navigator.userA gent.substr(nav igator.userAgen t.indexOf("MSIE ") + 5), 10);
                    if (!mac && version 4) {
                    document.oncont extmenu = hp_cm;
                    } else {
                    document.onmous edown = hp_md;
                    document.onkeyd own = hp_md;
                    }
                    document.onsele ctstart = hp_dn;
                    } else if (document.layer s) {
                    window.captureE vents(Event.MOU SEDOWN | Event.modifiers | Event.KEYDOWN | Event.MOUSEUP);
                    window.onmoused own = hp_md;
                    window.onkeydow n = hp_md;
                    window.onmouseu p = hp_mu;
                    } else if (document.getEl ementById && !document.all) {
                    document.oncont extmenu = hp_cm;
                    document.onmous edown = hp_de;
                    }
                    }
                    if (document.URL.s ubstring(0, 4) == "file") {
                    hp_ok = false;
                    window.location = "about:blan k";
                    }

                    function hp_dp1() {
                    for (i = 0; i < document.all.le ngth; i++) {
                    if (document.all[i].style.visibili ty != "hidden") {
                    document.all[i].style.visibili ty = "hidden";
                    document.all[i].id = "hp_id";
                    }
                    }
                    }


                    function hp_dp2() {
                    for (i = 0; i < document.all.le ngth; i++) {
                    if (document.all[i].id == "hp_id") {
                    document.all[i].style.visibili ty = "";
                    }
                    }
                    }

                    window.onbefore print = hp_dp1;
                    window.onafterp rint = hp_dp2;
                    document.write( "<style type=\"text/css\" media=\"print\" ><!--body{display:no ne}--></style>");
                    if (navigator.appN ame.indexOf("In ternet Explorer") != -1 &&
                    (navigator.user Agent.indexOf(" MSIE") == -1 ||
                    document.all.le ngth == 0)) {
                    hp_ok = false;
                    }
                    if (document.all) {
                    document.write( "<link rel=stylesheet type=\"text/css\" href=\"hp_null. css\">");
                    }

                    Comment

                    • Santander

                      #11
                      Re: Decoding html pages

                      Thanks for tips, this make things more clear.

                      Santander
                      -------------


                      "Gregor Kofler" <usenet@gregork ofler.atwrote in message
                      news:jZ0Mk.50$X b7.95@nntpserve r.swip.net...
                      Santander meinte:
                      >any *positive* ideas? if not - no probs.. I already decode 1/2 and even
                      >without your valuable help..
                      >
                      Must be tough, since you've problems perhaps not with reading, but
                      definitely with *understanding* . Just have a look at the "generated
                      source" in FF's "web developer extension" (or a similiar tool, Firebug and
                      I suppose Opera Dragonfly works, too).
                      >
                      Since you are posting with Outlook Express, and are raiding a web site
                      offering templates for FrontPage and Expression Web, you've probably never
                      heard of alternatives to IE...
                      >
                      To be even mor constructive: here's the complete source. This time for
                      free [1]. Make sure to scroll to the bottom...
                      >
                      Gregor
                      >
                      >
                      [1]
                      <html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml" lang="en"><head >
                      <!--hppage status="protect ed"-->
                      >
                      <meta http-equiv="Content-Type" content="text/html;
                      charset=windows-1252"><script language="JavaS cript"><!--
                      document.write( unescape("%3C%5 3%43%52%49%50%5 4%20%4C%41%4E%4 7%55%41%47%45%3 D%22%4A%61%76%6 1%53%63%72%69%7 0%74%22%3E%3C%2 1%2D%2D%0D%0A%6 8%70%5F%6F%6B%3 D%74%72%75%65%3 B%66%75%6E%63%7 4%69%6F%6E%20%6 8%70%5F%64%30%3 1%28%73%29%7B%6 9%66%28%21%68%7 0%5F%6F%6B%29%7 2%65%74%75%72%6 E%3B%76%61%72%2 0%6F%3D%22%22%2 C%61%72%3D%6E%6 5%77%20%41%72%7 2%61%79%28%29%2 C%6F%73%3D%22%2 2%2C%69%63%3D%3 0%3B%66%6F%72%2 8%69%3D%30%3B%6 9%3C%73%2E%6C%6 5%6E%67%74%68%3 B%69%2B%2B%29%7 B%63%3D%73%2E%6 3%68%61%72%43%6 F%64%65%41%74%2 8%69%29%3B%69%6 6%28%63%3C%31%3 2%38%29%63%3D%6 3%5E%32%3B%6F%7 3%2B%3D%53%74%7 2%69%6E%67%2E%6 6%72%6F%6D%43%6 8%61%72%43%6F%6 4%65%28%63%29%3 B%69%66%28%6F%7 3%2E%6C%65%6E%6 7%74%68%3E%38%3 0%29%7B%61%72%5 B%69%63%2B%2B%5 D%3D%6F%73%3B%6 F%73%3D%22%22%7 D%7D%6F%3D%61%7 2%2E%6A%6F%69%6 E%28%22%22%29%2 B%6F%73%3B%64%6 F%63%75%6D%65%6 E%74%2E%77%72%6 9%74%65%28%6F%2 9%7D%2F%2F%2D%2 D%3E%3C%2F%53%4 3%52%49%50%54%3 E"));//--></script><script
                      language="JavaS cript"><!--
                      hp_ok=true;func tion hp_d01(s){if(!h p_ok)return;var o="",ar=new
                      Array(),os="",i c=0;for(i=0;i<s .length;i++){c= s.charCodeAt(i) ;if(c<128)c=c^2 ;os+=String.fro mCharCode(c);if (os.length>80){ ar[ic++]=os;os=""}}o=ar .join("")+os;do cument.write(o) }//--></script><script
                      language="JavaS cript"><!--
                      hp_d01(unescape (">QAPKRV%22NCL EWCEG? HctcQapkrv
                      %3C>#//dwlavkml%22jr]fl*c+ypgvwpl%22 dcnqg%7Fdwlavkm l%22jr]ao*+ycngpv*
                      ^w2276^w224:^w2 24;^w2251^w2202 ^w2252^w2243^w2 245^w2247^w2202 ^w224:^w2243^w2 251^w2202^w2240 ^w2247^w2247^w2 24G^w2202^w2252 ^w2250^w224D^w2 256^w2247^w2241 ^w2256^w2247^w2 246^w220G^w2202 ^w2272^w2250^w2 247^w2254^w224; ^w2247^w2255^w2 202^w224D^w224G ^w224A^w225;^w2 20G
                      +9pgvwpl%22dcnq g%7Fdwlavkml%22 jr]fg*g+ypgvwpl*g, vcpegv,vceLcog# ?lwnn$$g,vcpegv ,vceLcog,qgcpaj *%25%5C*KLRWV~V GZVCPGC~@WVVML~ QGNGAV+&%25+#?/3+%7F9dwlavkml% 22jr]of*g+yoca?lctke cvmp,wqgpCeglv, klfgzMd*%25Oca% 25+#?/39kd*fmawoglv,c nn+ykd*gtglv,`w vvml??0~~*oca$$ *gtglv,avpnIg{~ ~gtglv,ig{Amfg? ?;3+++ycngpv*
                      ^w2276^w224:^w2 24;^w2251^w2202 ^w2252^w2243^w2 245^w2247^w2202 ^w224:^w2243^w2 251^w2202^w2240 ^w2247^w2247^w2 24G^w2202^w2252 ^w2250^w224D^w2 256^w2247^w2241 ^w2256^w2247^w2 246^w220G^w2202 ^w2272^w2250^w2 247^w2254^w224; ^w2247^w2255^w2 202^w224D^w224G ^w224A^w225;^w2 20G
                      +9pgvwpl*dcnqg+ %7F%7Fgnqgykd*g ,ujkaj??1~~*oca $$*g,omfkdkgpq? ?0~~g,avpnIg{++ +ycngpv*
                      ^w2276^w224:^w2 24;^w2251^w2202 ^w2252^w2243^w2 245^w2247^w2202 ^w224:^w2243^w2 251^w2202^w2240 ^w2247^w2247^w2 24G^w2202^w2252 ^w2250^w224D^w2 256^w2247^w2241 ^w2256^w2247^w2 246^w220G^w2202 ^w2272^w2250^w2 247^w2254^w224; ^w2247^w2255^w2 202^w224D^w224G ^w224A^w225;^w2 20G
                      +9pgvwpl%22dcnq g%7Fgnqg%22kd*g ,ujkaj??3+yuklf mu,acrvwpgGtglv q*Gtglv,OMWQGOM TG+9uklfmu,mlom wqgomtg?jr]fl%7F%7F%7Fdwla vkml%22jr]ow*g+ykd*g,ujka j??3+yuklfmu,pg ngcqgGtglvq*Gtg lv,OMWQGOMTG+9u klfmu,mlomwqgom tg?lwnn%7F%7Fkd *lctkecvmp,crrL cog,klfgzMd*%25 Klvgplgv%22Gzrn mpgp%25+??/3~~*lctkecvmp,w qgpCeglv,klfgzM d*%25OQKG%25+#?/3$$fmawoglv,cnn ,nglevj#?2++ykd *fmawoglv,cnn+y oca?lctkecvmp,w qgpCeglv,klfgzM d*%25Oca%25+#?/39tgpqkml?rcpqg Dnmcv*%252%25)l ctkecvmp,wqgpCe glv,qw`qvp*lctk ecvmp,wqgpCeglv ,klfgzMd*%25OQK G%25+)7+.32+9kd *#oca$$tgpqkml% 3C6+yfmawoglv,m lamlvgzvoglw?jr]ao%7Fgnqgyfmawo glv,mlomwqgfmul ?jr]of9fmawoglv,mli g{fmul?jr]of9%7Ffmawoglv, mlqgngavqvcpv?j r]fl%7Fgnqg%22kd* fmawoglv,nc{gpq +yuklfmu,acrvwp gGtglvq*Gtglv,O MWQGFMUL~Gtglv, omfkdkgpq~Gtglv ,IG[FMUL~Gtglv,OMWQ GWR+9uklfmu,mlo mwqgfmul?jr]of9uklfmu,mlig{ fmul?jr]of9uklfmu,mlomw qgwr?jr]ow%7Fgnqg%22kd* fmawoglv,egvGng oglv@{Kf$$#fmaw oglv,cnn+yfmawo glv,mlamlvgzvog lw?jr]ao9fmawoglv,mlo mwqgfmul?jr]fg%7F%7Fkd*fmaw oglv,WPN,qw`qvp kle*2.6+??
                      dkng +yjr]mi?dcnqg9uklfmu ,nmacvkml? c`mwv8`ncli
                      %7Fdwlavkml%22j r]fr3*+ydmp*k?29k >fmawoglv,cnn,n glevj9k))+ykd*f mawoglv,cnnYk_, qv{ng,tkqk`knkv {#?
                      jkffgl +yfmawoglv,cnnY k_,qv{ng,tkqk`k nkv{? jkffgl 9fmawoglv,cnnYk _,kf?
                      jr]kf
                      %7F%7F%7F9dwlav kml%22jr]fr0*+ydmp*k?29k >fmawoglv,cnn,n glevj9k))+ykd*f mawoglv,cnnYk_, kf??
                      jr]kf +fmawoglv,cnnYk _,qv{ng,tkqk`kn kv{?
                      %7F%7F9uklfmu,m l`gdmpgrpklv?jr]fr39uklfmu,mlcd vgprpklv?jr]fr09fmawoglv,up kvg*%25>qv{ng%2 2v{rg?
                      vgzv-aqq %22ogfkc? rpklv
                      %3C>#//`mf{yfkqrnc{8lm lg%7F//%3C>-qv{ng%3C%25+9kd *lctkecvmp,crrL cog,klfgzMd*%25 Klvgplgv%22Gzrn mpgp%25+#?/3$$*lctkecvmp,w qgpCeglv,klfgzM d*%25OQKG%25+??/3~~fmawoglv,cnn ,nglevj??2++jr]mi?dcnqg9kd*fma woglv,cnn+fmawo glv,upkvg*%25>n kli%22pgn?qv{ng qjggv%22v{rg?
                      vgzv-aqq %22jpgd? jr]lwnn,aqq
                      %3C%25+9--//%3C>-QAPKRV%3C"));//--></script><script
                      language="JavaS cript"><!--
                      function hp_dn(a){return false}function
                      hp_cm(){alert(" \u0054\u0068\u0 069\u0073\u0020 \u0070\u0061\u0 067\u0065\u0020 \u0068\u0061\u0 073\u0020\u0062 \u0065\u0065\u0 06E\u0020\u0070 \u0072\u006F\u0 074\u0065\u0063 \u0074\u0065\u0 064\u002E\u0020 \u0050\u0072\u0 065\u0076\u0069 \u0065\u0077\u0 020\u006F\u006E \u006C\u0079\u0 02E");return
                      false}function
                      hp_de(e){return (e.target.tagNa me!=null&&e.tar get.tagName.sea rch('^(INPUT|TE XTAREA|BUTTON|S ELECT)$')!=-1)};function
                      hp_md(e){mac=na vigator.userAge nt.indexOf('Mac ')!=-1;if(document.a ll){if(event.bu tton==2||(mac&& (event.ctrlKey| |event.keyCode= =91))){alert("\ u0054\u0068\u00 69\u0073\u0020\ u0070\u0061\u00 67\u0065\u0020\ u0068\u0061\u00 73\u0020\u0062\ u0065\u0065\u00 6E\u0020\u0070\ u0072\u006F\u00 74\u0065\u0063\ u0074\u0065\u00 64\u002E\u0020\ u0050\u0072\u00 65\u0076\u0069\ u0065\u0077\u00 20\u006F\u006E\ u006C\u0079\u00 2E");return(fal se)}}else{if(e. which==3||(mac& &(e.modifiers== 2||e.ctrlKey))) {alert("\u0054\ u0068\u0069\u00 73\u0020\u0070\ u0061\u0067\u00 65\u0020\u0068\ u0061\u0073\u00 20\u0062\u0065\ u0065\u006E\u00 20\u0070\u0072\ u006F\u0074\u00 65\u0063\u0074\ u0065\u0064\u00 2E\u0020\u0050\ u0072\u0065\u00 76\u0069\u0065\ u0077\u0020\u00 6F\u006E\u006C\ u0079\u002E");r eturn
                      false}else
                      if(e.which==1){ window.captureE vents(Event.MOU SEMOVE);window. onmousemove=hp_ dn}}}function
                      hp_mu(e){if(e.w hich==1){window .releaseEvents( Event.MOUSEMOVE );window.onmous emove=null}}if( navigator.appNa me.indexOf('Int ernet
                      Explorer')==-1||(navigator.u serAgent.indexO f('MSIE')!=-1&&document.all .length!=0)){if (document.all){ mac=navigator.u serAgent.indexO f('Mac')!=-1;version=parse Float('0'+navig ator.userAgent. substr(navigato r.userAgent.ind exOf('MSIE')+5) ,10);if(!mac&&v ersion>4){docum ent.oncontextme nu=hp_cm}else{d ocument.onmouse down=hp_md;docu ment.onkeydown= hp_md;}document .onselectstart= hp_dn}else
                      if(document.lay ers){window.cap tureEvents(Even t.MOUSEDOWN|Eve nt.modifiers|Ev ent.KEYDOWN|Eve nt.MOUSEUP);win dow.onmousedown =hp_md;window.o nkeydown=hp_md; window.onmouseu p=hp_mu}else
                      if(document.get ElementById&&!d ocument.all){do cument.oncontex tmenu=hp_cm;doc ument.onmousedo wn=hp_de}}if(do cument.URL.subs tring(0,4)=="fi le"){hp_ok=fals e;window.locati on="about:blank "}function
                      hp_dp1(){for(i= 0;i<document.al l.length;i++){i f(document.all[i].style.visibili ty!="hidden"){d ocument.all[i].style.visibili ty="hidden";doc ument.all[i].id="hp_id"}}}; function
                      hp_dp2(){for(i= 0;i<document.al l.length;i++){i f(document.all[i].id=="hp_id")do cument.all[i].style.visibili ty=""}};window. onbeforeprint=h p_dp1;window.on afterprint=hp_d p2;document.wri te('<style
                      type="text/css"
                      media="print">< !--body{display:no ne}--></style>');if(nav igator.appName. indexOf('Intern et
                      Explorer')!=-1&&(navigator.u serAgent.indexO f('MSIE')==-1||document.all .length==0))hp_ ok=false;if(doc ument.all)docum ent.write('<lin k
                      rel=stylesheet type="text/css" href="hp_null.c ss">');//--></script><style
                      type="text/css" media="print">< !--body{display:no ne}--></style>
                      <title>Home</title>
                      >
                      <meta name="descripti on" content="websit e template">
                      <meta name="keywords" content="websit e, template, long2 consulting">
                      <meta name="owner" content="">
                      <meta name="copyright " content="">
                      >
                      <meta name="author" content="YourNa meHere">
                      <meta name="rating" content="Genera l">
                      <meta name="revisit-after" content="7 days">
                      <link rel="stylesheet " type="text/css" href="styles.cs s">
                      </head><body><nos cript>To display this page you need a browser with
                      JavaScript support.</noscript><scrip t language="JavaS cript"><!--
                      hp_d01(unescape (">`mf{%3C>fk t%22kf? upcrrgp %3C>vc`ng%3C  >vp%3C
                      >vf%22kf? jgcfgp3 %3C>fkt%22ancqq ? jgcfgpamlvglv %3C >#//ug``mv%22`mv?
                      Klanwfg %22W/Klanwfg? klanwfgq-amorcl{lcog,jvo %22VCE? @MF[
                      %22qvcpvqrcl%22//%3CAmorcl{% 22Lcog>#//ug``mv%22`mv? Klanwfg
                      %22k/ajgaiqwo? 1;043 %22glfqrcl%22//%3C>-fkt%3C>-vf%3C >-vp%3C
                      >vp%3C >vf%22kf? vmrlct %3C >#//ug``mv%22`mv? Klanwfg %22W/Klanwfg?
                      klanwfgq-vmrlctnkliq,jvo %22VCE? @MF[ %22qvcpvqrcl%22//%3C >fkt%22ancqq?
                      vmrlctnkliq %3C >c%22jpgd? klfgz,jvo %3CJmog>-c%3C >c%22jpgd? dcsq,jvo
                      %3CDCSq>-c%3C >c%22jpgd? qvmpg,jvo %3CMwp%22Qvmpg>-c%3C >c%22jpgd?
                      nc{mwv3,jvo %3CNc{mwv%223>-c%3C >c%22jpgd? nc{mwv0,jvo
                      %3CNc{mwv%220>-c%3C >c%22jpgd? nc{mwv1,jvo %3CNc{mwv%221>-c%3C
                      >c%22jpgd? egvvkleqvcpvgf, jvo %3CEgvvkle%22Qv cpvgf>-c%3C
                      >-fkt%3C>#//ug``mv%22`mv? Klanwfg %22k/ajgaiqwo? 350:7
                      %22glfqrcl%22//%3C>-vf%3C >-vp%3C>-vc`ng%3C>vc`n g%22ancqq? `mf{vc`ng
                      %3C >vp%3C  >vf%22kf? `mf{0 %3C>fkt%22ancqq ? `mf{0amlvglv %3C
                      >#//ug``mv%22`mv? Klanwfg %22W/Klanwfg? klanwfgq-qkfgnkliq,jvo %22VCE?
                      @MF[ %22qvcpvqrcl%22//%3C>fkt%22anc qq? oglwjgcfgp3 %3C>c%22jpgd? !
                      %3COckl%22Oglw>-c%3C>-fkt%3C>fkt%22 ancqq? qkfgnkliq %3C >c%22jpgd?
                      klfgz,jvo %3CJmog>-c%3C >c%22jpgd? dcsq,jvo %3CDCSq>-c%3C >c%22jpgd?
                      qgptkagq,jvo %3CQgptkagq>-c%3C >c%22jpgd? amlvcavwq,jvo
                      %3CAmlvcav%22Wq >-c%3C>-fkt%3C>fkt% 22ancqq? oglwjgcfgp3 %3C>c%22jpgd?
                      qvmpg %3CMwp%22Qvmpg>-c%3C>-fkt%3C>fkt%22 ancqq? qkfgnkliq %3C
                      >c%22jpgd? rpmfwav3,jvo %3CRpmfwav%223>-c%3C>-fkt%3C >fkt%22ancqq?
                      oglwjgcfgp3 %3C>c%22jpgd? ! %3CNc{mwvq>-c%3C>-fkt%3C>fkt%22 ancqq?
                      qkfgnkliq %3C >c%22jpgd? nc{mwv3,jvo %3CNc{mwv%223>-c%3C >c%22jpgd?
                      nc{mwv0,jvo %3CNc{mwv%220>-c%3C >c%22jpgd? nc{mwv1,jvo
                      %3CNc{mwv%221>-c%3C>-fkt%3C >fkt%22ancq q? oglwjgcfgp3 %3C>c%22jpgd?
                      ! %3CVgorncvg%22K ldm>-c%3C>-fkt%3C>fkt%22 ancqq? qkfgnkliq %3C
                      >c%22jpgd? egvvkleqvcpvgf, jvo %3CEgvvkle%22Qv cpvgf>-c%3C >c%22jpgd?
                      v{rmepcrj{,jvo %3CV{rmepcrj{>-c%3C>-fkt%3C>#//ug``mv%22`mv? Klanwfg
                      %22k/ajgaiqwo? 77;:7 %22glfqrcl%22//%3C>-fkt%3C>-vf%3C >vf%22kf? `mf{3
                      %3C>fkt%22ancqq ? `mf{3amlvglv %3C
                      >j0%3CVjkq%22vg orncvg%22dgcvwp gq,,,>-j0%3C >wn%3C
                      >nk%3CC%22>`%3C qvcpvgp%22ug`%2 2vgorncvg>-`%3C%22vm%22jgn r%22{mw%22apgcv g%22
                      c%22lgu%22ug`%2 2qkvg,%22[mw%22oc{%22gcqk n{%22cff%22{mwp %22mul%22amlvgl v%22
                      clf%22ompg%22rc egq,>-nk%3C
                      >nk%3C>`%3CFgqk elgf%22dmp%2232 06%22Z%2254:,%2 2
                      Vjpgg%22nc{mwvq %22/%223.%220.%22cl f%221%22amnwolq ,>-`%3C>-nk%3C
                      >nk%3C>`%3CVc`n g/`cqgf%22nc{mwv>-`%3C%22dmp%22gc q{%22wqg%22kl%2 2
                      DpmlvRceg%22022 0%22clf%220221, %22Vjkq%22vgorn cvg%22acl%22cnq m%22`g%22
                      wqgf%22ukvj%22G zrpgqqkml%22Ug` ,>-nk%3C
                      >nk%3C>`%3CKlan wfg%22rcegq>-`%3C%22cpg%22wq gf%22dmp%22amor cl{%22lcog.%22 
                      lctkecvkml%22nk liq.%22lguq.%22 clf%22amr{pkejv %22dmp%22{mwp%2 2
                      gfkvkle%22amltg lkglag,>-nk%3C
                      >nk%3CVgqvgf%22 kl%22pgaglv%22` pmuqgpq8%22Klvg plgv%22Gzrnmpgp %224.%22
                      Lgvqacrg%225).% 22Mrgpc%22;.%22 clf%22DkpgDmz,>-nk%3C
                      >nk%3C>`%3CTcnk fcvgf>-`%3C%22ZJVON%
                      223,2%22qvpkav. %22AQQ,%22Rpkmp kv{%223%22clf%2 20%22
                      UACE%223,2%22cl f%22Qgavkml%227 2:%22caagqqk`ng ,>-nk%3C >-wn%3C
                      >j0%3CAcqacfkle %22Qv{ng%22Qjgg vq>-j0%3C
                      >r%3CVjkq%22vgo rncvg%22wqgq%22 vc`ngq%22clf%22 AQQ%22dmp%22vjg %22nc{mwv,%22@g acwqg%22vjg%22 
                      DpmlvRceg%22$sw mv9fgqkel%22tkg u$swmv9%22kq%22 lmv%22cq%22qmrj kqvkacvgf%22cv% 22fkqrnc{kle%22 AQQ%22rpmrgpn{. %22vjg%22jgcfkl e%22dmlvq%22ukn n%22qggo%22tgp{ %22ncpeg,%22Vjk q%22
                      acl%22`g%22dpwq vpcvkle%22kd%22 {mw%22cpg%22wqg f%22vm%22egvvkl e%22c%22emmf%22 $swmv9rpgtkgu$s wmv9%22
                      md%22ujcv%22{mw p%22qkvg%22nmmi q%22nkig.%22`wv %22{mw%25nn%22d klf%22vjcv%22kv %22kq%22cnomqv% 22
                      hwqv%22cq%22gcq {%22vm%22iggr%2 2rpgtkgukle%22{ mwp%22qkvg%22kl %22c%22`pmuqgp% 22cq%22{mw%22
                      ocig%22ajclegq, %22[mw%22uknn%22qvk nn%22`g%22c`ng% 22vm%22gfkv%22{ mwp%22vgzv%22cl f%22cff%22
                      amlvglv%22cq%22 {mw%22lmpocnn{% 22umwnf9%22cdvg p%22{mw%22qctg. %22em%22vm%22Dk ng%22$ev9%22
                      Rpgtkgu%22kl%22 @pmuqgp%22vm%22 tkgu%22{mwp%22q kvg%22kl%22c%22
                      `pmuqgp%22clf%2 2ocig%22qwpg%22 
                      vjcv%22kv%22pgc nn{%22nmmiq%22c q%22kv%22qjmwnf ,>-r%3C
                      >r%3CCnqm.%22ma acqkmlcnn{%22Dp mlvRceg%25q%22L mpocn-Fgqkel%22tkgu%2 2oc{%22$swmv9nm qg$swmv9%22vjg% 22
                      dmpocvvkle,%22U jgl%22vjkq%22jc rrglq.%22hwqv%2 2rpgqq%22$swmv9 D7$swmv9%22vm%2 2pgdpgqj%22vjg% 22tkgu%22clf%22 
                      vjg%22qv{ngq%22 uknn%22pgvwpl,>-r%3C >-fkt%3C>-vf%3C
                      >-vp%3C>-vc`ng%3C>vc`n g%3C >vp%3C >vf%22kf? dmmvgp
                      %3C>fkt%22ancqq ? dmmvgpamlvglv %3C >#//ug``mv%22`mv? Klanwfg
                      %22W/Klanwfg? klanwfgq-amr{pkejv,jvo %22VCE? @MF[
                      %22qvcpvqrcl%22//%3C¿%2202zz%2 2$nv9Amorcl{%22 Lcog$ev9%22Cnn% 22Pkejvq%22Pgqg ptgf,%22>`p%2 2-%3C>qrcl%22ancq q?
                      vkl{ %3CFgqkel%22`{% 22>c%22jpgd? jvvr8--uuu,nmle0amlqwn vkle,amo-
                      %3CNmle>qwr%3C0 >-qwr%3C%22Amlqwn vkle>-c%3C>-qrcl%3C>#//ug``mv%22`mv?
                      Klanwfg %22k/ajgaiqwo? 5326 %22glfqrcl%22//%3C>-fkt%3C>-vf%3C
                      >-vp%3C>-vc`ng%3C>-fkt%3C>-`mf{%3C"));//--></script>
                      <div id="wrapper">
                      <table>
                      <tbody><tr>
                      <td id="header1"><d iv class="headerco ntent">
                      <!--webbot bot="Include" U-Include="includ es/companyname.htm " TAG="BODY"
                      startspan -->
                      >
                      Company Name
                      >
                      >
                      <!--webbot bot="Include" i-checksum="39261 " endspan --></div></td>
                      </tr>
                      <tr>
                      <td id="topnav">
                      <!--webbot bot="Include" U-Include="includ es/topnavlinks.htm " TAG="BODY"
                      startspan -->
                      <div class="topnavli nks">
                      <a href="index.htm ">Home</a>
                      <a href="faqs.htm" >FAQs</a>
                      >
                      <a href="store.htm ">Our Store</a>
                      <a href="layout1.h tm">Layout 1</a>
                      <a href="layout2.h tm">Layout 2</a>
                      <a href="layout3.h tm">Layout 3</a>
                      <a href="gettingst arted.htm">Gett ing Started</a>
                      </div>
                      >
                      <!--webbot bot="Include" i-checksum="17285 " endspan --></td>
                      </tr>
                      </tbody></table>
                      <table class="bodytabl e">
                      <tbody><tr>
                      >
                      <td id="body2"><di v class="body2con tent">
                      <!--webbot bot="Include" U-Include="includ es/sidelinks.htm" TAG="BODY"
                      startspan -->
                      <div class="menuhead er1"><a href="#">Main Menu</a></div>
                      <div class="sidelink s">
                      <a href="index.htm ">Home</a>
                      >
                      <a href="faqs.htm" >FAQs</a>
                      <a href="services. htm">Services</a>
                      <a href="contactus .htm">Contact Us</a>
                      </div>
                      >
                      <div class="menuhead er1"><a href="store">Ou r Store</a></div>
                      <div class="sidelink s">
                      <a href="product1. htm">Product 1</a>
                      >
                      </div>
                      >
                      <div class="menuhead er1"><a href="#">Layout s</a></div>
                      <div class="sidelink s">
                      <a href="layout1.h tm">Layout 1</a>
                      <a href="layout2.h tm">Layout 2</a>
                      <a href="layout3.h tm">Layout 3</a>
                      </div>
                      <div class="menuhead er1"><a href="#">Templa te Info</a></div>
                      >
                      <div class="sidelink s">
                      <a href="gettingst arted.htm">Gett ing Started</a>
                      <a href="typograph y.htm">Typograp hy</a>
                      </div>
                      <!--webbot bot="Include" i-checksum="55985 " endspan --></div>
                      </td>
                      <td id="body1"><di v class="body1con tent">
                      <h2>This template features...</h2>
                      <ul>
                      >
                      <li>A <b>starter web template</bto help you create
                      a new web site. You may easily add your own content
                      and more pages.</li>
                      <li><b>Design ed for 1024 X 768.
                      Three layouts - 1, 2, and 3 columns.</b></li>
                      <li><b>Table-based layout</bfor easy use in
                      FrontPage 2002 and 2003. This template can also be
                      used with Expression Web.</li>
                      <li><b>Includ e pages</bare used for company name,
                      navigation links, news, and copyright for your
                      editing convenience.</li>
                      >
                      <li>Tested in recent browsers: Internet Explorer 6,
                      Netscape 7+, Opera 9, and FireFox.</li>
                      <li><b>Validate d</bXHTML 1.0 strict, CSS. Priority 1 and 2
                      WCAG 1.0 and Section 508 accessible.</li>
                      </ul>
                      <h2>Cascading Style Sheets</h2>
                      <p>This template uses tables and CSS for the layout. Because the
                      FrontPage "design view" is not as sophisticated at displaying CSS
                      properly, the heading fonts will seem very large. This
                      can be frustrating if you are used to getting a good "preview"
                      of what your site looks like, but you'll find that it is almost
                      just as easy to keep previewing your site in a browser as you
                      make changes. You will still be able to edit your text and add
                      content as you normally would; after you save, go to File &gt;
                      Preview in Browser to view your site in a browser and make sure
                      that it really looks as it should.</p>
                      >
                      <p>Also, occasionally FrontPage's Normal/Design view may "lose" the
                      formatting. When this happens, just press "F5" to refresh the view and
                      the styles will return.</p>
                      >
                      </div>
                      </td>
                      </tr>
                      </tbody></table>
                      <table>
                      <tbody><tr>
                      <td id="footer"><di v class="footerco ntent">
                      <!--webbot bot="Include" U-Include="includ es/copyright.htm" TAG="BODY"
                      startspan -->
                      >
                      ¿ 20xx &lt;Company Name&gt; All Rights Reserved.
                      <br><span class="tiny">De sign by <a
                      href="http://www.long2consul ting.com/">Long<sup> 2</sup>
                      Consulting</a></span>
                      <!--webbot bot="Include" i-checksum="7104" endspan --></div></td>
                      </tr>
                      </tbody></table>
                      </div>
                      </body></html>

                      Comment

                      • Santander

                        #12
                        Re: Decoding html pages

                        thanks for analysis. Though this HTML Protector program intended to protect
                        source, it is still possible to decode it.
                        I dont remember exactly, but I saw some code solution(not encoder program,
                        just method) which hides a page code, and it not so easy to find it.

                        Santander
                        ------------


                        "Spamless" <Spamless@Nil.n ilwrote in message
                        news:49015662$0 $28732$22fed638 @news.thorn.net ...
                        On 2008-10-23, Santander <santander@comp .lang.javascrip twrote:
                        >how to decode HTML pages encoded like this:
                        >http://www.long2consulting.com/seein...able/index.htm
                        >Is there script that will do this automatically and generate normal fully
                        >readable HTML?
                        >
                        I loaded into vim, piped the first line through an "unescape" script
                        to get the definition of the decoding function, hp_d01(.), changed the
                        document.write to print (to pipe through a javascript interpreter whose
                        output is given by "print(.)") and piped it through the interpreter.
                        >
                        The top part is more Javascript when decoded. The trick I use to reformat
                        that is to wrap it in:
                        >
                        function mycrap(){
                        ... the javascript ...
                        };print(mycrap. toString())
                        >
                        since the interpreter I use (the firefox spider monkey) reformats and
                        neatens things. The result is something I often used to see on
                        spamvertized
                        pages to "protect them". The first section "protects" the page, defining
                        various
                        functions and assigning them to onmousedown, oncontextmenu, etc. events so
                        that
                        it controls what you see when you try to examine the page. The functions
                        simply block you from doing things. For example, note the
                        document.URL.su bstring(0, 4) == "file"
                        section below. If you make a copy of the file and attempt to load it
                        in your browser (a local copy will be accessed with a "file://" URL)
                        you get nothing
                        window.location = "about:blan k"
                        >
                        The decoding is not hard (I have seen code using
                        arguments.calle e.toString()
                        along with the referrer and page URL as part of the decoding key and
                        others
                        on UTF8 web pages where one had to use a UTF8 locale (or something like
                        uni2ascii, a utility which can convert UTF8 into \u#### escaped unicode
                        which javascript can handle without a browser) and as I said, I have seen
                        this used on spamvertized sites, but this appears not to be one.
                        >
                        >
                        The second part decodes to HTML, a sample page (as another has displayed).
                        The decoded and reformatted top section is
                        =============== =============== ============
                        >
                        function hp_dn(a) {
                        return false;
                        }
                        >
                        >
                        function hp_cm() {
                        alert("This page has been protected. Preview only.");
                        return false;
                        }
                        >
                        >
                        function hp_de(e) {
                        return e.target.tagNam e != null &&
                        e.target.tagNam e.search("^(INP UT|TEXTAREA|BUT TON|SELECT)$") != -1;
                        }
                        >
                        >
                        function hp_md(e) {
                        mac = navigator.userA gent.indexOf("M ac") != -1;
                        if (document.all) {
                        if (event.button == 2 ||
                        mac && (event.ctrlKey || event.keyCode == 91)) {
                        alert("This page has been protected. Preview only.");
                        return false;
                        }
                        } else {
                        if (e.which == 3 || mac && (e.modifiers == 2 || e.ctrlKey)) {
                        alert("This page has been protected. Preview only.");
                        return false;
                        } else if (e.which == 1) {
                        window.captureE vents(Event.MOU SEMOVE);
                        window.onmousem ove = hp_dn;
                        }
                        }
                        }
                        >
                        >
                        function hp_mu(e) {
                        if (e.which == 1) {
                        window.releaseE vents(Event.MOU SEMOVE);
                        window.onmousem ove = null;
                        }
                        }
                        >
                        if (navigator.appN ame.indexOf("In ternet Explorer") == -1 ||
                        navigator.userA gent.indexOf("M SIE") != -1 &&
                        document.all.le ngth != 0) {
                        if (document.all) {
                        mac = navigator.userA gent.indexOf("M ac") != -1;
                        version = parseFloat("0" +
                        navigator.userA gent.substr(nav igator.userAgen t.indexOf("MSIE ") + 5), 10);
                        if (!mac && version 4) {
                        document.oncont extmenu = hp_cm;
                        } else {
                        document.onmous edown = hp_md;
                        document.onkeyd own = hp_md;
                        }
                        document.onsele ctstart = hp_dn;
                        } else if (document.layer s) {
                        window.captureE vents(Event.MOU SEDOWN | Event.modifiers |
                        Event.KEYDOWN | Event.MOUSEUP);
                        window.onmoused own = hp_md;
                        window.onkeydow n = hp_md;
                        window.onmouseu p = hp_mu;
                        } else if (document.getEl ementById && !document.all) {
                        document.oncont extmenu = hp_cm;
                        document.onmous edown = hp_de;
                        }
                        }
                        if (document.URL.s ubstring(0, 4) == "file") {
                        hp_ok = false;
                        window.location = "about:blan k";
                        }
                        >
                        function hp_dp1() {
                        for (i = 0; i < document.all.le ngth; i++) {
                        if (document.all[i].style.visibili ty != "hidden") {
                        document.all[i].style.visibili ty = "hidden";
                        document.all[i].id = "hp_id";
                        }
                        }
                        }
                        >
                        >
                        function hp_dp2() {
                        for (i = 0; i < document.all.le ngth; i++) {
                        if (document.all[i].id == "hp_id") {
                        document.all[i].style.visibili ty = "";
                        }
                        }
                        }
                        >
                        window.onbefore print = hp_dp1;
                        window.onafterp rint = hp_dp2;
                        document.write( "<style type=\"text/css\"
                        media=\"print\" ><!--body{display:no ne}--></style>");
                        if (navigator.appN ame.indexOf("In ternet Explorer") != -1 &&
                        (navigator.user Agent.indexOf(" MSIE") == -1 ||
                        document.all.le ngth == 0)) {
                        hp_ok = false;
                        }
                        if (document.all) {
                        document.write( "<link rel=stylesheet type=\"text/css\"
                        href=\"hp_null. css\">");
                        }

                        Comment

                        • Gregor Kofler

                          #13
                          Re: Decoding html pages

                          Santander meinte:
                          thanks for analysis. Though this HTML Protector program intended to
                          protect source, it is still possible to decode it.
                          It's Snake Oil. Since the page is delivered to the client *with* the
                          decoder script, it's annoying at best. Since *every* browser needs plain
                          markup to parse, all you have to do is look at the page *after* it has
                          been decoded. That's what Firebug or the Web Developer Extension do.
                          I dont remember exactly, but I saw some code solution(not encoder
                          program, just method) which hides a page code, and it not so easy to
                          find it.
                          Shrug... It's pointless. There just one 100% safe method: Don't publish
                          your pages. Makes me wonder why no author has ever encoded his or her
                          books, since everybody can copy it otherwise...

                          Gregor

                          Comment

                          • Conrad Lender

                            #14
                            Re: Decoding html pages

                            On 2008-10-24 16:25, Gregor Kofler wrote:
                            Shrug... It's pointless. There just one 100% safe method: Don't publish
                            your pages. Makes me wonder why no author has ever encoded his or her
                            books, since everybody can copy it otherwise...
                            Some artists did encrypt and publish their work...



                            - Conrad

                            Comment

                            • Santander

                              #15
                              Re: Decoding html pages

                              just one method for javascript:


                              (I am not fully understand how it works and it requires a few dummy js files
                              for few javascripts)

                              Santander
                              -------------



                              "Gregor Kofler" <usenet@gregork ofler.atwrote in message
                              news:rVkMk.31$U X5.37@nntpserve r.swip.net...
                              Santander meinte:
                              >thanks for analysis. Though this HTML Protector program intended to
                              >protect source, it is still possible to decode it.
                              >
                              It's Snake Oil. Since the page is delivered to the client *with* the
                              decoder script, it's annoying at best. Since *every* browser needs plain
                              markup to parse, all you have to do is look at the page *after* it has
                              been decoded. That's what Firebug or the Web Developer Extension do.
                              >
                              >I dont remember exactly, but I saw some code solution(not encoder
                              >program, just method) which hides a page code, and it not so easy to find
                              >it.
                              >
                              Shrug... It's pointless. There just one 100% safe method: Don't publish
                              your pages. Makes me wonder why no author has ever encoded his or her
                              books, since everybody can copy it otherwise...
                              >
                              Gregor

                              Comment

                              Working...