What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [help] Auth for the site, via msn

[help] Auth for the site, via msn
Author: Message:
chu4
New Member
*

Avatar
chu4____x | Kabooom!

Posts: 8
32 / Male / Flag
Joined: Jun 2009
O.P. RE: [help] Auth for the site, via msn
Full code...

code:
var xcinemaData = new ActiveXObject("Microsoft.XMLHTTP");

function OnEvent_Initialize(MessengerStart){
    command = 'bot'
    bot_name = 'xbot';
    server_url = 'xcinema.net';
    patch = 'mchat';
}

function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind){
    if ( MessageKind == 1 && Message.substr(0,5) == 'chat:' ){
        sendData('[msn] ' + Origin, Message.substr(6,666666));
    }
}

function OnEvent_ChatWndSendMessage(ChatWnd, Message) {
    if (Message.substr(0,9) === '/' + command + ' chat'){
            sendData(bot_name, Message.substr(9,666666));
         return '';
    } else if (Message.substr(0,9) === '/' + command + ' auth'){
            botAuth(Message.substr(9,100).replace(/ /ig, '').split('/')[0], Message.substr(9,100).replace(/ /ig, '').split('/')[1]);
            return '';
    }
}

function sendData(user, mess){
    with(xcinemaData){
        open('GET','http://' + server_url + '/' + patch + '/?' + Math.random(), false); send();
        var input = responseText.indexOf('name="s" value="')+'name="s" value="'.length;
        ssid = responseText.substring(input,responseText.indexOf('"',input));
        open('POST', 'http://' + server_url + '/' + patch + '/', true);
        send('uname='+user+'&message='+mess+'&s='+ssid+'&ajax=1&a=8&numa=0&a=8');
    }
}

function botAuth(acc, pass){
    with(xcinemaData){
        open('GET','http://' + server_url + '/?' + Math.random(), false); send();
        var x = responseText.indexOf('name="rnd" value="')+'name="rnd" value="'.length;
        rnd_value = responseText.substring(x,responseText.indexOf('"',x));
        var data = 'user=' + acc + '&password=' + pass + '&rem=1&a=2&ajax=1&rnd=' + rnd_value;
        open('POST', 'http://' + server_url, true);
        setRequestHeader("Content-type", "application/x-www-form-urlencoded");
        setRequestHeader("Content-length", data.length);
        setRequestHeader("Connection", "close");
        send(data);
    }
}


This post was edited on 06-11-2009 at 06:12 PM by chu4.
=)
06-11-2009 05:41 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[help] Auth for the site, via msn - by chu4 on 06-11-2009 at 04:18 PM
RE: [help] Auth for the site, via msn - by MeEtc on 06-11-2009 at 04:52 PM
RE: [help] Auth for the site, via msn - by chu4 on 06-11-2009 at 05:17 PM
RE: [help] Auth for the site, via msn - by MeEtc on 06-11-2009 at 05:21 PM
RE: [help] Auth for the site, via msn - by chu4 on 06-11-2009 at 05:41 PM
RE: [help] Auth for the site, via msn - by MeEtc on 06-11-2009 at 05:44 PM
RE: [help] Auth for the site, via msn - by chu4 on 06-11-2009 at 05:48 PM
RE: [help] Auth for the site, via msn - by MeEtc on 06-11-2009 at 06:20 PM
RE: [help] Auth for the site, via msn - by chu4 on 06-12-2009 at 11:34 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On