what does this mean?

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

    what does this mean?

    I found it in the view source of a corporate website.

    <script Language="Javas cript">
    <!--
    var keyMacro=[
    ['}','alert("Why did you press that? Where does it say to press that? Huh
    .... fiddler ...")']
    ];
    //-->
    </script>


  • Lasse Reichstein Nielsen

    #2
    Re: what does this mean?

    "pete" <pete@ghjk.co m> writes:

    [from Subject: what does this mean?][color=blue]
    > I found it in the view source of a corporate website.[/color]

    It's a script that assignes an array to a variable. It does nothing.
    That variable is probably used somewhere else on the page in a way
    that does do something (and looking at it, probably in an awkward
    way).

    From the naming, I assume some other code will capture key presses
    and execute the alert if someone presses "}". But without the remainder
    of the page, it's impossible to tell.

    /L
    --
    Lasse Reichstein Nielsen - lrn@hotpop.com
    DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleD OM.html>
    'Faith without judgement merely degrades the spirit divine.'

    Comment

    • pete

      #3
      Re: what does this mean?

      ok, here is rest of page...




      <html>
      <head>
      <title></title>

      <link rel="stylesheet " type="text/css" href="style.css ">

      <script src="include.js "></script>

      <script Language="Javas cript">
      <!--

      var keyMacro=[
      ['}','alert("Why did you press that? Where does it say to press that? Huh
      .... fiddler ...")']
      ];

      //-->
      </script>

      </head>
      <body class="DefaultB ody" leftmargin="0" marginwidth="0" topmargin="0"
      marginheight="0 " rightmargin="0" onLoad="window. moveTo(10,10);
      window.resizeTo (600,800);" onBlur="window. focus();">

      <table border="0" cellspacing="0" cellpadding="0" width="250">

      <!-- Proofs of Signature -->
      <tr>
      <td width="20">&nbs p;</td>
      <td width="210" class="DefaultT extBold">
      <br>acceptabl e proofs of signature<br><b r>
      </td>
      <td width="20">&nbs p;</td>
      </tr>
      <tr>
      <td width="20">&nbs p;</td>
      <td bgcolor="#eeeee e" width="210" class="DefaultT ext">
      <a href="#" onClick="alert( 'Credit\/Debit
      Card\n----------------------------------------------------------------------
      ----------\n\nAny credit / debit card or high street store card (e.g. Marks
      & Spencer) EXCLUDING Solo & Electron. \n \nAs from 1st July 2003 the card
      must be photocopied and its image retained. - the front of the card only
      needs to be photocopied. The name, all numbers and expiry date must be
      fully visible. The card must not be out of date.'); return
      false;">Credit/Debit Card</a><br>
      <a href="#" onClick="alert( 'Cheque Guarantee
      Card\n----------------------------------------------------------------------
      ----------\n\nAny Building Society or Bank cheque guarantee card can be used
      for signature only provided the bank / credit card company statement has not
      been used as proof of address'); return false;">Cheque Guarantee
      Card</a><br>
      <a href="#" onClick="alert( 'Photocard Driving
      Licence\n-------------------------------------------------------------------
      -------------\n\nFull UK Driving Licence (inc Northern Ireland) - NB: If it
      is the new-style two-part licence (comprising a credit card sized photocard
      and a paper counterpart),th en we require only the plastic photocard, unless
      otherwise requested by Credit referrals. - A Provisional Driving Licence is
      also acceptable on the condition that it is the new-style two-part
      licence.'); return false;">Photoca rd Driving Licence</a><br>
      <a href="#" onClick="alert( 'Firearms
      Certificate\n---------------------------------------------------------------
      -----------------\n\nA current valid certficate showing address and
      signature'); return false;">Firearm s Certificate</a><br>
      <a href="#" onClick="alert( 'Passport (UK or
      International)\ n------------------------------------------------------------
      --------------------\n\n A Full valid UK Ten Year passport or any valid
      International Passport.\n\n A Passport extension is not acceptable'); return
      false;">Passpor t (UK or International)</a><br>

      </td>
      <td width="20">&nbs p;</td>
      </tr>
      <!-- Proofs for Business Customer Types -->

      <tr>
      <td width="20">&nbs p;</td>
      <td width="210" class="DefaultT extBold">
      <br>acceptabl e proofs for business customer types<br><br>
      </td>
      <td width="20">&nbs p;</td>
      </tr>
      <tr>
      <td width="20">&nbs p;</td>
      <td bgcolor="#eeeee e" width="210" class="DefaultT ext">

      <a href="#"
      onClick="alert( 'Partnership\n-----------------------------------------------
      ---------------------------------\n\nPartnership accounts require personal
      proofs, one valid proof of address and signature for two partners who will
      both be credit checked.'); return false;">Partner ships</a><br>
      <a href="#" onClick="alert( 'Limited
      Company\n-------------------------------------------------------------------
      -------------\n\nLimited company requires company letterhead or a Purchase
      Order'); return false;">Limited Company</a><br>
      </td>
      <td width="20">&nbs p;</td>
      </tr>
      <tr>
      <td width="20">&nbs p;</td>
      <td width="210" class="DefaultT extBold">
      <br>acceptabl e proofs of address<br><br>
      </td>
      <td width="20">&nbs p;</td>
      </tr>
      <tr>

      <td width="20">&nbs p;</td>
      <td bgcolor="#eeeee e" width="210" class="DefaultT ext">
      <a href="#" onClick="alert( 'Bank/Credit Card
      Statement\n-----------------------------------------------------------------
      ---------------\n\nThe most recent Bank or Credit card statement (within the
      last three months)'); return false;">Bank/Credit Card Statement</a><br>
      <a href="#" onClick="alert( 'Full UK Driving
      Licence\n-------------------------------------------------------------------
      -------------\n\nSignature only or accepted as second proof of address. Full
      UK Driving Licence (inc Northern Ireland). If it is the new-style two-part
      licence (a credit-card-sized photocard and paper counterpart), then only the
      plastic photocard is required'); return false;">Full UK Driving
      Licence</a><br>
      <a href="#" onClick="alert( 'Family Allowance
      Book\n----------------------------------------------------------------------
      ----------\n\nMost up to date familly allowance book showing current address
      \n \nThe book must show Date of Issue Stamp or Date of last Order'); return
      false;">Family Allowance Book</a><br>
      <a href="#" onClick="alert( 'Firearms
      Certificate\n---------------------------------------------------------------
      -----------------\n\nA current valid certficate showing address (if not used
      as proof of signature)'); return false;">Firearm s Certificate</a><br>
      <a href="#" onClick="alert( 'Pension
      Book\n----------------------------------------------------------------------
      ----------\n\nMost up to date Pension book showing current address \n \nThe
      book must show Date of Issue Stamp or Date of last Order'); return
      false;">Pension Book</a><br>
      <a href="#" onClick="alert( 'Utility
      Bill\n----------------------------------------------------------------------
      ----------\n\nWater, Gas, Electricity, BT/Cable landline Telephone and
      Council Tax bill. Address only (dated within the last 3 months)'); return
      false;">Utility Bill</a><br>

      </td>

      <td width="20">&nbs p;</td>
      <tr>
      <td width="20">&nbs p;</td>
      <td width="210" class="DefaultT extBold">
      <br><br><br>
      </td>
      <td width="20">&nbs p;</td>
      </tr>
      <td width="20">&nbs p;</td>
      <td width="210" class="DefaultT extBold">
      YOU MUST <a href="#" onClick="window .close(); return false;">CLOSE THIS
      WINDOW</a> WHEN FINISHED TO CONTINUE
      WITH THE APPLICATION.
      </td>
      <td width="20">&nbs p;</td>
      </tr>

      </table>

      <br><br></body>
      </html>



      Comment

      • Lasse Reichstein Nielsen

        #4
        Re: what does this mean?

        "pete" <pete@ghjk.co m> writes:
        [color=blue]
        > ok, here is rest of page...[/color]

        A link would have been better.

        Ok, it doesn't seem the variable "keyMacro" is used at all,
        unless it is referred from the script file "include.js ".

        The page is not very professional, if it is intended for use
        on the internet.
        [color=blue]
        > onLoad="window. moveTo(10,10); window.resizeTo (600,800);" onBlur="window. focus();"[/color]

        These handlers from the body element are reason enough to never come
        back to this page. It tries to resize and move the window, and it
        tries to disallow you from switching to another browser window.

        /L
        --
        Lasse Reichstein Nielsen - lrn@hotpop.com
        DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleD OM.html>
        'Faith without judgement merely degrades the spirit divine.'

        Comment

        • pete

          #5
          Re: what does this mean?


          hi lasse,

          the page is in a members area of the online registrations section of a UK
          based mobile phone operator. (#FF6600)

          it would not be possible to link to it without giving password etc.

          thanks for the intersting comments though...

          I dont remember what it was but once I found something similar but even more
          unprofessional in the source code of the company information search at
          companies house... strange what these web developers get up to to amuse
          themselves!

          ps. i promise i don't go looking for these things! just come across them
          occasionslly.



          Comment

          Working...