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. Huh?  [help] Auth for the site, via msn
Immediately to the problem ... :)

For example, have site - www.mysite.com
On the authorization form, the code:
code:
<form name="auth">
    <input type="text" name="user" />
    <input type="password" name="password" />
    <input type="checkbox" name="rem" value="1" />
    <input type="hidden" name="rnd" value="123" />
    <input type="hidden" name="a" value="2" />
    <input type="hidden" name="ajax" value="1" />
    <input type="submit" name="sbm" value="sbm" />
</form>


And...

code:
function OnEvent_ChatWndSendMessage(ChatWnd, Message) {
    if (Message.substr(0,5) === '/auth'){
            botAuth(Message.substr(5,100).split('/')[0], Message.substr(5,100).split('/')[1]);
            return '';
    }
}

function botAuth(acc, pass){
    var webAuth = new ActiveXObject("Microsoft.XMLHTTP");
    with(webAuth){
        open('GET','http://www.mysite.com?' + Math.random(), false); send();
        var x = responseText.indexOf('name="rnd" value="')+'name="rnd" value="'.length;
        rnd_value = responseText.substring(x,responseText.indexOf('"',x));
        open('POST', 'http://www.mysite.com', true);
        send('user=' + acc + '&password=' + pass + '&rem=1&a=2&ajax=1&rnd=' + rnd_value);
    }
}


Auth command:
quote:
/auth account/password

Don't know why, but don't working... :o
Only yesterday, the primary explore scripting in Messenger Plus ... :$

This post was edited on 06-11-2009 at 06:08 PM by chu4.
=)
06-11-2009 04:18 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