29.09.2015 Views

Legal Disclaimer

Hacking-For-Beginners-a-beginners-guide-for-learning-ethical-hacking

Hacking-For-Beginners-a-beginners-guide-for-learning-ethical-hacking

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Hacking For Beginners – Manthan Desai 2010<br />

10. Tab Napping A New Phishing Attack<br />

Traditional phishing attacks are reasonably easy to avoid, just don’t click links in suspicious e-mails (or, for the really<br />

paranoid, any e-mail). But Firefox Creative Lead Aza Raskin has found a far more devious way to launch an attack by<br />

hijacking your unattended browser tabs.<br />

The attack works by first detecting that the tab the page is in does not have focus. Then the attacking script can change<br />

the tab favicon and title before loading a new site, say a fake version of gmail or orkut, in the background.<br />

Even scarier, the attack can parse through your history to find sites you actually visit and impersonate them.<br />

Because most of us trust our tabs to remain on the page we left them on, this is a particularly difficult attack to detect. As<br />

Raskin writes, "as the user scans their many open tabs, the favicon and title act as a strong visual cue — memory is<br />

mailable and moldable and the user will most likely simply think they left *the+ tab open.”<br />

The only clue that you’re being tricked is that the URL will be wrong.<br />

The Script Used is as Below.-<br />

open this in a tab of your browser and wait for 10 seconds and see after you come back but leave this page and go<br />

to other tab to see this magic.<br />

<br />

var xScroll, yScroll, timerPoll, timerRedirect, timerClock;<br />

function initRedirect(){<br />

if (typeof document.body.scrollTop != "undefined"){ //IE,NS7,Moz<br />

xScroll = document.body.scrollLeft;<br />

yScroll = document.body.scrollTop;<br />

clearInterval(timerPoll); //stop polling scroll move<br />

clearInterval(timerRedirect); //stop timed redirect<br />

w w w . h a c k i n g t e c h . c o . t v Page 110

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!