Most of those virtual-keyboard things are specifically designed to make it difficult to automate their use... this is to stop trojan's from recording or re-using your bank account authentication details.

The keyboards are usually implemented in Javascript; I've seen two different kinds:

  1. The keys are in random locations inside the virtual keyboard (in order to stop a trojan from recording the click positions)
  2. As in (1), but the keys change position on each click.

Usually, the virtual keyboard produces a one-time hash value dependent on the initial position of the keyboard keys so that simply sniffing the HTTP traffic does not help much (unfortunately, I have seen really insecure ones out there).

While these virtual keyboards do not really add a lot of security (it's still just a secondary secret key you must remember) they are genuinely annoying... and can be by-passed.

(I just remembered seeing a virtual keyboard that was a naive replacement for the user's password in a login form. You can easily by-pass that by talking to the back-end directly).

Generally, my approach to this kind of problem would be to use Javascript on the client side (perhaps using Mozilla::Mechanize) to determine the positions of the keys, and to respond to changes. Unless it's obvious that you can figure out the hashing algorithm yourself given the inputs and outputs of the keyboard over time, there's not really a lot of options.

As this is a sensitive area w.r.t security, I will not post example code immediately. Perhaps you could show us what you have achieved so far (leaving in the details of the particular site, but not your login details) ?

-David


In reply to Re: mouse keyboard by erroneousBollock
in thread mouse keyboard by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.