Monday, February 20, 2012

Universal Link Spoof (Webkit, Gecko, Presto, IE)

<!-- by juza - iamjuza [at] gmail [dot] com -->
<html>
<head>
<title>Universal Link Spoof (Webkit, Gecko, Presto, IE)</title>
</head>
<body>
<a href="http://www.google.com/" onclick="this.href='http://yahoo.com'">Click me!</a><br />
<hr />
<a href="http://www.google.com/" onclick="window.location.assign('http://www.yahoo.com'); return false;">Click me!</a><br />
<a href="http://www.google.com/" onclick="window.location.replace('http://www.yahoo.com'); return false;">Click me!</a><br />
<a href="http://www.google.com/" onclick="window.location.href='http://yahoo.com'; return false;">Click me!</a><br />
<hr />
<a href="http://www.google.com/" onclick="location.reload='http://www.yahoo.com'; return false;">Click me!</a><br />
<a href="http://www.google.com/" onclick="location.replace('http://www.yahoo.com'); return false;">Click me!</a><br />
<a href="http://www.google.com/" onclick="location.assign('http://www.yahoo.com'); return false;">Click me!</a><br />
</body>
</html>
view raw gistfile1.html hosted with ❤ by GitHub


Enjoy!

Sunday, February 19, 2012

Internet Explorer Link Spoof


<!-- by juza - iamjuza [at] gmail [dot] com -->
<html>
<head>
<title>IE Link Spoof</title>
</head>
<body>
<a href="http://www.google.com/" onclick="this.href='http://yahoo.com'">Click me!</a><br />
<hr />
<a href="http://www.google.com/" onclick="window.open('http://www.yahoo.com'); return false;">Click me!</a><br />
<a href="http://www.google.com/" onclick="window.showModelessDialog('http://www.yahoo.com'); return false;">Click me!</a><br />
<a href="http://www.google.com/" onclick="window.navigate('http://www.yahoo.com'); return false;">Click me!</a><br />
<a href="http://www.google.com/" onclick="window.location.assign('http://www.yahoo.com'); return false;">Click me!</a><br />
<a href="http://www.google.com/" onclick="window.location.replace('http://www.yahoo.com'); return false;">Click me!</a><br />
<a href="http://www.google.com/" onclick="window.location.href='http://yahoo.com'; return false;">Click me!</a><br />
<hr />
<a href="http://www.google.com/" onclick="document.URL='http://www.yahoo.com'; return false;">Click me!</a><br />
<a href="http://www.google.com/" onclick="document.location.replace('http://www.yahoo.com'); return false;">Click me!</a><br />
<a href="http://www.google.com/" onclick="document.location.href='http://yahoo.com'; return false;">Click me!</a><br />
<a href="http://www.google.com/" onclick="document.location.assign('http://www.yahoo.com'); return false;">Click me!</a><br />
<hr />
<a href="http://www.google.com/" onclick="ownerDocument.location.replace('http://www.yahoo.com'); return false;">Click me!</a><br />
<a href="http://www.google.com/" onclick="ownerDocument.location.href='http://yahoo.com'; return false;">Click me!</a><br />
<a href="http://www.google.com/" onclick="ownerDocument.location.assign('http://www.yahoo.com'); return false;">Click me!</a><br />
<hr />
<a href="http://www.google.com/" onclick="location.href='http://www.yahoo.com'; return false;">Click me!</a><br />
<a href="http://www.google.com/" onclick="location.reload='http://www.yahoo.com'; return false;">Click me!</a><br />
<a href="http://www.google.com/" onclick="location.replace('http://www.yahoo.com'); return false;">Click me!</a><br />
<a href="http://www.google.com/" onclick="location.assign('http://www.yahoo.com'); return false;">Click me!</a><br />
<hr />
<a href="http://www.google.com/" onclick="event.srcElement.href='http://yahoo.com'">Click me!</a><br />
<a href="http://www.google.com/" onclick="event.srcElement.host='www.yahoo.com'">Click me!</a><br />
<a href="http://www.google.com/" onclick="event.srcElement.hostname='www.yahoo.com'">Click me!</a><br />
</body>
</html>
view raw gistfile1.html hosted with ❤ by GitHub


(Tested with Internet Explorer 9.0.8112)

Enjoy!

Opera Link Spoof


<!-- by juza - iamjuza [at] gmail [dot] com -->
<html>
<head>
<title>Presto Link Spoof</title>
</head>
<body>
<a href="http://www.google.com/" onclick="this.href='http://yahoo.com'">Click me!</a><br />
<hr />
<a href="http://www.google.com/" onclick="event.srcElement.href='http://yahoo.com'">Click me!</a><br />
<a href="http://www.google.com/" onclick="event.srcElement.host='www.yahoo.com'">Click me!</a><br />
<a href="http://www.google.com/" onclick="event.srcElement.hostname='www.yahoo.com'">Click me!</a><br />
<hr />
<a href="http://www.google.com/" onclick="event.target.href='http://yahoo.com'">Click me!</a><br />
<a href="http://www.google.com/" onclick="event.target.host='www.yahoo.com'">Click me!</a><br />
<a href="http://www.google.com/" onclick="event.target.hostname='www.yahoo.com'">Click me!</a><br />
<hr />
<a href="http://www.google.com/" onclick="window.navigate('http://www.yahoo.com'); return false;">Click me!</a><br />
<a href="http://www.google.com/" onclick="window.location.replace('http://www.yahoo.com'); return false;">Click me!</a><br />
<a href="http://www.google.com/" onclick="window.location.href='http://yahoo.com'; return false;">Click me!</a><br />
<a href="http://www.google.com/" onclick="window.location.assign('http://yahoo.com'); return false;">Click me!</a><br />
<hr />
<a href="http://www.google.com/" onclick="location.href='http://www.yahoo.com'; return false;">Click me!</a><br />
<a href="http://www.google.com/" onclick="location.replace('http://www.yahoo.com'); return false;">Click me!</a><br />
<a href="http://www.google.com/" onclick="location.assign('http://www.yahoo.com'); return false;">Click me!</a><br />
<hr />
<a href="http://www.google.com/" onclick="event.view.location.href='http://yahoo.com'; return false;">Click me!</a><br />
<a href="http://www.google.com/" onclick="event.view.location.replace('http://yahoo.com'); return false;">Click me!</a><br />
<a href="http://www.google.com/" onclick="event.view.location.assign('http://yahoo.com'); return false;">Click me!</a><br />
<hr />
<a href="http://www.google.com/" onclick="event.view.self.location.href='http://yahoo.com'; return false;">Click me!</a><br />
<a href="http://www.google.com/" onclick="event.view.self.location.replace('http://yahoo.com'); return false;">Click me!</a><br />
<a href="http://www.google.com/" onclick="event.view.self.location.assign('http://yahoo.com'); return false;">Click me!</a><br />
<hr />
<a href="http://www.google.com/" onclick="event.view.top.location.href='http://yahoo.com'; return false;">Click me!</a><br />
<a href="http://www.google.com/" onclick="event.view.top.location.replace('http://yahoo.com'); return false;">Click me!</a><br />
<a href="http://www.google.com/" onclick="event.view.top.location.assign('http://yahoo.com'); return false;">Click me!</a><br />
<hr />
<a href="http://www.google.com/" onclick="event.view.window.location.href='http://yahoo.com'; return false;">Click me!</a><br />
<a href="http://www.google.com/" onclick="event.view.window.location.replace('http://yahoo.com'); return false;">Click me!</a><br />
<a href="http://www.google.com/" onclick="event.view.window.location.assign('http://yahoo.com'); return false;">Click me!</a><br />
<hr />
<a href="http://www.google.com/" onclick="event.view.parent.location.href='http://yahoo.com'; return false;">Click me!</a><br />
<a href="http://www.google.com/" onclick="event.view.parent.location.replace('http://yahoo.com'); return false;">Click me!</a><br />
<a href="http://www.google.com/" onclick="event.view.parent.location.assign('http://yahoo.com'); return false;">Click me!</a><br />
<hr />
<a href="http://www.google.com" onclick="console.log(event);return false;" >Clink me!</a><br />
</body>
</html>
view raw gistfile1.html hosted with ❤ by GitHub


(Tested with Opera 11.61)

Enjoy!

Firefox Link Spoof


<!-- by juza - iamjuza [at] gmail [dot] com -->
<html>
<head>
<title>Gecko Link Spoof</title>
</head>
<body>
<a href="http://www.google.com/" onclick="this.href='http://yahoo.com'">click me!</a><br />
<hr />
<a href="http://www.google.com/" onclick="event.target.href='http://yahoo.com'">click me!</a><br />
<a href="http://www.google.com/" onclick="event.target.host='www.yahoo.com'">click me!</a><br />
<a href="http://www.google.com/" onclick="event.target.hostname='www.yahoo.com'">click me!</a><br />
<hr />
<a href="http://www.google.com/" onclick="event.currentTarget.href='http://yahoo.com'">click me!</a><br />
<a href="http://www.google.com/" onclick="event.currentTarget.host='www.yahoo.com'">click me!</a><br />
<a href="http://www.google.com/" onclick="event.currentTarget.hostname='www.yahoo.com'">click me!</a><br />
<hr />
<a href="http://www.google.com/" onclick="event.originalTarget.href='http://yahoo.com'">click me!</a><br />
<a href="http://www.google.com/" onclick="event.originalTarget.host='www.yahoo.com'">click me!</a><br />
<a href="http://www.google.com/" onclick="event.originalTarget.hostname='www.yahoo.com'">click me!</a><br />
<hr />
<a href="http://www.google.com/" onclick="top.location.replace('http://www.yahoo.com'); return false;"> click me!</a><br />
<a href="http://www.google.com/" onclick="top.location.href='http://www.yahoo.com'; return false;"> click me!</a><br />
<a href="http://www.google.com/" onclick="top.location.assign('http://www.yahoo.com'); return false;"> click me!</a><br />
<hr />
<a href="http://www.google.com/" onclick="window.location.replace('http://www.yahoo.com'); return false;">click me!</a><br />
<a href="http://www.google.com/" onclick="window.location.href='http://yahoo.com'; return false;">click me!</a><br />
<a href="http://www.google.com/" onclick="window.location.assign('http://www.yahoo.com'); return false;">click me!</a><br />
<a href="http://www.google.com/" onclick="window.open('http://www.yahoo.com'); return false;">click me!</a><br />
<hr />
<a href="http://www.google.com/" onclick="location.href='http://www.yahoo.com'; return false;">click me!</a><br />
<a href="http://www.google.com/" onclick="location.replace('http://www.yahoo.com'); return false;">click me!</a><br />
<a href="http://www.google.com/" onclick="location.assign('http://www.yahoo.com'); return false;">click me!</a><br />
<hr />
<a href="http://www.google.com/" onclick="event.view.location.href='http://yahoo.com'; return false;">click me!</a><br />
<a href="http://www.google.com/" onclick="event.view.location.replace('http://yahoo.com'); return false;">click me!</a><br />
<a href="http://www.google.com/" onclick="event.view.location.assign('http://www.yahoo.com'); return false;">click me!</a><br />
<hr />
<a href="http://www.google.com/" onclick="event.view.parent.location.href='http://yahoo.com'; return false;">click me!</a><br />
<a href="http://www.google.com/" onclick="event.view.parent.location.replace('http://yahoo.com'); return false;">click me!</a><br />
<a href="http://www.google.com/" onclick="event.view.parent.assign('http://www.yahoo.com'); return false;">click me!</a><br />
<hr />
<a href="http://www.google.com/" onclick="event.view.window.location.replace('http://www.yahoo.com'); return false;">click me!</a><br />
<a href="http://www.google.com/" onclick="event.view.window.location.href='http://yahoo.com'; return false;">click me!</a><br />
<a href="http://www.google.com/" onclick="event.view.window.location.assign('http://www.yahoo.com'); return false;">click me!</a><br />
<hr />
<a href="http://www.google.com/" onclick="event.view.top.location.replace('http://www.yahoo.com'); return false;">click me!</a><br />
<a href="http://www.google.com/" onclick="event.view.top.location.href='http://yahoo.com'; return false;">click me!</a><br />
<a href="http://www.google.com/" onclick="event.view.top.location.assign('http://www.yahoo.com'); return false;">click me!</a><br />
<hr />
<a href="http://www.google.com/" onclick="event.view.document.location.replace('http://www.yahoo.com'); return false;">click me!</a><br />
<a href="http://www.google.com/" onclick="event.view.document.location.href='http://yahoo.com'; return false;">click me!</a><br />
<a href="http://www.google.com/" onclick="event.view.document.location.assign('http://www.yahoo.com'); return false;">click me!</a><br />
<hr />
<a href="http://www.google.com/" onclick="event.view.window.parent.location.replace('http://www.yahoo.com'); return false;">click me!</a><br />
<a href="http://www.google.com/" onclick="event.view.window.parent.location.href='http://yahoo.com'; return false;">click me!</a><br />
<a href="http://www.google.com/" onclick="event.view.window.parent.location.assign('http://www.yahoo.com'); return false;">click me!</a><br />
<hr />
<a href="http://www.google.com/" onclick="console.log(event);return false;">click me!</a><br />
</body>
</html>
view raw gistfile1.html hosted with ❤ by GitHub


(Tested with Firefox 10.0.1)

Enjoy!

Chrome Link Spoof

Here are more than twenty ways to spoof a link in Google Chrome:

<!-- by juza - iamjuza [at] gmail [dot] com -->
<html>
<head>
<title>Webkit Link Spoof</title>
</head>
<body>
<a href="http://www.google.com/" onclick="this.href='http://yahoo.com'">click me!</a><br />
<hr />
<a href="http://www.google.com/" onclick="event.target.href='http://yahoo.com';">click me!</a><br />
<a href="http://www.google.com/" onclick="event.target.host='www.yahoo.com'">click me!</a><br />
<a href="http://www.google.com/" onclick="event.target.hostname='www.yahoo.com'">click me!</a><br />
<hr />
<a href="http://www.google.com/" onclick="event.srcElement.href='http://yahoo.com'">click me!</a><br />
<a href="http://www.google.com/" onclick="event.srcElement.host='www.yahoo.com'">click me!</a><br />
<a href="http://www.google.com/" onclick="event.srcElement.hostname='www.yahoo.com'">click me!</a><br />
<hr />
<a href="http://www.google.com/" onclick="event.toElement.href='http://yahoo.com'">click me!</a><br />
<a href="http://www.google.com/" onclick="event.toElement.host='www.yahoo.com'">click me!</a><br />
<a href="http://www.google.com/" onclick="event.toElement.hostname='www.yahoo.com'">click me!</a><br />
<hr />
<a href="http://www.google.com/" onclick="top.location.replace('http://www.yahoo.com'); return false;"> click me!</a><br />
<a href="http://www.google.com/" onclick="top.location.href='http://www.yahoo.com'; return false;"> click me!</a><br />
<a href="http://www.google.com/" onclick="top.location.assign('http://www.yahoo.com'); return false;"> click me!</a><br />
<hr />
<a href="http://www.google.com/" onclick="window.location.replace('http://www.yahoo.com'); return false;">click me!</a><br />
<a href="http://www.google.com/" onclick="window.location.href='http://yahoo.com'; return false;">click me!</a><br />
<a href="http://www.google.com/" onclick="window.location.assign('http://www.yahoo.com'); return false;">click me!</a><br />
<a href="http://www.google.com/" onclick="window.open('http://www.yahoo.com'); return false;">click me!</a><br />
<hr />
<a href="http://www.google.com/" onclick="location.href='http://www.yahoo.com'; return false;">click me!</a><br />
<a href="http://www.google.com/" onclick="location.replace('http://www.yahoo.com'); return false;">click me!</a><br />
<a href="http://www.google.com/" onclick="location.assign('http://www.yahoo.com'); return false;">click me!</a><br />
<hr />
<a href="http://www.google.com/" onclick="event.view.location.href='http://yahoo.com'; return false;">click me!</a><br />
<a href="http://www.google.com/" onclick="event.view.location.replace('http://yahoo.com'); return false;">click me!</a><br />
<a href="http://www.google.com/" onclick="event.view.location.assign('http://www.yahoo.com'); return false;">click me!</a><br />
<hr />
<a href="http://www.google.com/" onclick="event.view.window.location.replace('http://www.yahoo.com'); return false;">click me!</a><br />
<a href="http://www.google.com/" onclick="event.view.window.location.href='http://yahoo.com'; return false;">click me!</a><br />
<a href="http://www.google.com/" onclick="event.view.window.location.assign('http://www.yahoo.com'); return false;">click me!</a><br />
<hr />
<a href="http://www.google.com/" onclick="event.view.window.self.location.replace('http://www.yahoo.com'); return false;">click me!</a><br />
<a href="http://www.google.com/" onclick="event.view.window.self.location.href='http://yahoo.com'; return false;">click me!</a><br />
<a href="http://www.google.com/" onclick="event.view.window.self.location.assign('http://www.yahoo.com'); return false;">click me!</a><br />
<hr />
<a href="http://www.google.com/" onclick="event.view.self.location.replace('http://www.yahoo.com'); return false;">click me!</a><br />
<a href="http://www.google.com/" onclick="event.view.self.location.href='http://yahoo.com'; return false;">click me!</a><br />
<a href="http://www.google.com/" onclick="event.view.self.location.assign('http://yahoo.com'); return false;">click me!</a><br />
<hr />
<a href="http://www.google.com/" onclick="event.view.parent.location.replace('http://www.yahoo.com'); return false;">click me!</a><br />
<a href="http://www.google.com/" onclick="event.view.parent.location.href='http://yahoo.com'; return false;">click me!</a><br />
<a href="http://www.google.com/" onclick="event.view.parent.location.assign('http://www.yahoo.com'); return false;">click me!</a><br />
<hr />
<a href="http://www.google.com/" onclick="event.view.top.location.replace('http://www.yahoo.com'); return false;">click me!</a><br />
<a href="http://www.google.com/" onclick="event.view.top.location.href='http://yahoo.com'; return false;">click me!</a><br />
<a href="http://www.google.com/" onclick="event.view.top.location.assign('http://www.yahoo.com'); return false;">click me!</a><br />
<hr />
<a href="http://www.google.com/" onclick="event.view.top.self.location.replace('http://www.yahoo.com'); return false;">click me!</a><br />
<a href="http://www.google.com/" onclick="event.view.top.self.location.href='http://yahoo.com'; return false;">click me!</a><br />
<a href="http://www.google.com/" onclick="event.view.top.self.location.assign('http://www.yahoo.com'); return false;">click me!</a><br />
<hr />
<a href="http://www.google.com/" onclick="event.view.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.self.location.replace('http://www.yahoo.com'); return false;">click me!</a><br />
<a href="http://www.google.com/" onclick="event.view.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.window.location.href='http://yahoo.com'; return false;">click me!</a><br />
<hr />
<a href="http://www.google.com/" onclick="console.log(event);">click me!</a><br />
</body>
</html>
view raw gistfile1.html hosted with ❤ by GitHub


There is more, but i think is enough! :)

(Tested with Google Chrome 17.0.963.46)

Enjoy!

Saturday, February 11, 2012