Click here to Skip to main content

Clever Code

RSS Feed RSS feed

Showcase your best code, your most elegant solution, or your most hard fought subtle bug you've found and fixed. Please, do not post programming questions in this forum - they will be removed.

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page  Show 
  Refresh
GeneralRe: Wrap your head around this. PinmemberGareth Richards8:30 14 Dec '09  
GeneralRe: Wrap your head around this. Pinmembertigersun15:51 26 Dec '09  
GeneralRe: Wrap your head around this. PinmemberRavi@UK3:53 25 Jan '10  
GeneralRe: Wrap your head around this. PinmemberMember 7706626:45 24 Mar '10  
GeneralRe: Wrap your head around this. [modified] PinmemberNavnath R. Kale2:56 29 Mar '10  
GeneralRe: Wrap your head around this. PinmemberCircusUgly10:41 2 Apr '10  
GeneralThe magicians big secret PinmemberYusuf20:05 19 Nov '09  
I just finished installing Win7. I opened IE8 and was testing it. One thing led to another and before I knew it I was on one of well known magicians' website.
 
They have a menu called "cool stuffs", hmmm that sounds interesting and my eyes caught a sub menu called "tricks". I thought I will get a lesson or two on some simple magic tricks. I clicked on the menu and up comes the page. It has "Enter password protected area" button. The page has a pointer where to get the password. I didn't have password, but went ahead and clicked on the button anyway. In a blink of an eye, I was taken back to the site where I was before I entered their website. I thought they played a trick on me. Rubbed my eye and went back to their web site again and for the second time I got the same thing. I got curious and went for the third time, but this time I did page view and this is what I found
 
 
So, what happen is scripted window functionality is disabled by default on IE8 ( at least on my setup) and that prevented prompt from showing. So, when the code run, it got blocked and never got to prompt me for input. That shot testV over the roof and kicked incorrect password.
 
I am sure the magicians did not intend it, nonetheless, it turns out to be nice trick. D'Oh! | :doh: Sniff | :^)
 
After seeing the code I didn't need the secret password, just type the secret page and boom I was in.
 
p.s. to protect the innocent I have changed the prompt text and redirect page.
 

GeneralRe: The magicians big secret PinmemberIan Shlasko4:25 20 Nov '09  
GeneralRe: The magicians big secret PinmvpLuc Pattyn4:55 20 Nov '09  
GeneralRe: The magicians big secret PinmemberYusuf7:13 20 Nov '09  
GeneralRe: The magicians big secret PinmemberYusuf7:12 20 Nov '09  
GeneralRe: The magicians big secret PinmemberPIEBALDconsult8:56 20 Nov '09  
GeneralRe: The magicians big secret PinPopularmvpLuc Pattyn9:12 20 Nov '09  
GeneralRe: The magicians big secret PinmemberAndrew Rissing9:21 20 Nov '09  
GeneralRe: The magicians big secret PinmemberYusuf9:59 20 Nov '09  
GeneralRe: The magicians big secret Pinmemberbquick7:53 27 Feb '10  
GeneralRe: The magicians big secret Pinmemberradioman.lt8:17 26 Feb '10  
GeneralDifferences between strncpy and strncpy_s PinmemberIndivara18:43 14 Nov '09  
GeneralRe: Differences between strncpy and strncpy_s Pinmembermegaadam4:57 25 Nov '09  
GeneralEnumerators PinPopularmvpJohn Simmons / outlaw programmer2:48 14 Nov '09  
GeneralRe: Enumerators PinmemberRichard MacCutchan3:21 14 Nov '09  
GeneralRe: Enumerators PinmvpJohn Simmons / outlaw programmer2:39 15 Nov '09  
GeneralRe: Enumerators PinmemberRichard MacCutchan2:47 15 Nov '09  
JokeRe: Enumerators PinmemberChris Meech4:40 16 Nov '09  
GeneralRe: Enumerators PinmemberRichard MacCutchan5:12 16 Nov '09  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.5.120210.1 | Last Updated 13 Feb 2012
Copyright © CodeProject, 1999-2012
All Rights Reserved. Terms of Use
Layout: fixed | fluid