BenV's notes

Sony

by on Jul.22, 2011, under Fun, Morons

This just made my day.

First I read on slashdot that their insurer sues them, and personally I hope they win because of Sony’s incompetence regarding their ‘security’. Not that I like insurance companies much, so they can burn as well… which makes this almost perfect. In a lawsuit only the lawyers win, so once those lawyers die in a fire this will be perfect.

Anyhow, someone on the discussion points out how Sony implements a captcha.
Here’s an image in case you’re too lazy to look up that link (or when they remove it):

Sony's Captcha implementation

Sony's Captcha implementation

Yes, that’s right, it’s a captcha implemented in HTML. Some brilliant snippets from the source:

/***********************************************
* Text Selection script- Disable
***********************************************/

function disableMouseSelection(target){
if (typeof target.onselectstart!="undefined") // for IE
target.onselectstart=function(){return false}
else if (typeof target.style.MozUserSelect!="undefined") // for Firefox
target.style.MozUserSelect="none"
else //All other route (ie: Opera)
target.onmousedown=function(){return false}
target.style.cursor = "default"
}

And:

//Mouse Right click disable
var message="";
function clickinIE() {if (document.all) {(message);return false;}}
function clickinNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickinNS;}
else{document.onmouseup=clickinNS;document.oncontextmenu=clickinIE;}

document.oncontextmenu=new Function("return false")

They didn’t even bother to disable shortcuts like ctrl-a, it still selects everything 🙂




:,

Leave a Reply

You must be logged in to post a comment.

Archives

  • 2018 (1)
  • 2016 (1)
  • 2015 (7)
  • 2014 (4)
  • 2013 (11)
  • 2012 (27)
  • 2011 (26)
  • 2010 (25)
  • 2009 (68)