Raised This Month: $ Target: $400
 0% 

[WIP] Using MSN protocol with SourceMod


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
lokizito
Veteran Member
Join Date: Dec 2010
Location: Brazil
Old 01-11-2012 , 22:19   [WIP] Using MSN protocol with SourceMod
Reply With Quote #1

It is a work in progress as it needs to be finished.

As it is at this moment, it uses MSNP8 to connect. Currently, it fully connects to the Notification Server, send the command for sync the contacts list and set your status to online. It can already answer to any request of messages, so it can receive messages, but not send then. Also, it can handle the receiving contacts split in differents packets (usually happens when you have more then a few contacts). Now, need just to add support for managing the contacts, adding/removing/moving from groups. When it's done, i will be adding natives to be used in others plugins, a few commands for chatting, and keep track about the contacts for other's plugins (e.g: if a contact is in the group RCON, it will work with that contact like a MSN rcon version)

It uses the Socket extension for everything except the Tweener Authentication which requires SSL and because of that, uses cURL extension. Also it uses sslice's MD5 stock to answer the challenges.

Documentation of MSNP8: http://msnpiki.msnfanatic.com/index....Authentication
Attached Files
File Type: sp Get Plugin or Get Source (msnbot.sp - 182 views - 18.6 KB)
__________________
[CS:S] RankMe - Why pay for a rank plugin if you can have one for free?
[CS:S] RankMe Connect Announcer - Announce when a player connect
Translation Project - Let's make the plugins to be international

Last edited by lokizito; 01-15-2012 at 21:28.
lokizito is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 01-12-2012 , 07:55   Re: [WIP] Using MSN protocol with SourceMod
Reply With Quote #2

Oh, i didn't know the protocol specifications were public. I'll mess around with that
__________________
Peace-Maker is offline
lokizito
Veteran Member
Join Date: Dec 2010
Location: Brazil
Old 01-12-2012 , 08:38   Re: [WIP] Using MSN protocol with SourceMod
Reply With Quote #3

Using cURL extension with verbose on i'm able to see the ticket, but i can't find out how to retrieve the header.
EDIT: Updated the code on the first post, for what i've reach till now.
__________________
[CS:S] RankMe - Why pay for a rank plugin if you can have one for free?
[CS:S] RankMe Connect Announcer - Announce when a player connect
Translation Project - Let's make the plugins to be international

Last edited by lokizito; 01-12-2012 at 08:41.
lokizito is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 01-12-2012 , 08:54   Re: [WIP] Using MSN protocol with SourceMod
Reply With Quote #4

Use a regular expression!
__________________
Peace-Maker is offline
lokizito
Veteran Member
Join Date: Dec 2010
Location: Brazil
Old 01-12-2012 , 09:07   Re: [WIP] Using MSN protocol with SourceMod
Reply With Quote #5

Quote:
Originally Posted by Peace-Maker View Post
Use a regular expression!
I know that, the thing is, i don't know how to retrieve the response header. With verbose set to 1 i can see it, but don't know how to get it.

EDIT: Finished the whole NS authentication. Now just need to implement the responses for what is received.
__________________
[CS:S] RankMe - Why pay for a rank plugin if you can have one for free?
[CS:S] RankMe Connect Announcer - Announce when a player connect
Translation Project - Let's make the plugins to be international

Last edited by lokizito; 01-12-2012 at 12:33.
lokizito is offline
lokizito
Veteran Member
Join Date: Dec 2010
Location: Brazil
Old 01-12-2012 , 17:55   Re: [WIP] Using MSN protocol with SourceMod
Reply With Quote #6

I've updated the attachment. Right now it recognizes almost everything that the NS may send. (RNG not implemented as the rest of the interface for chatting isn't implemented yed)
__________________
[CS:S] RankMe - Why pay for a rank plugin if you can have one for free?
[CS:S] RankMe Connect Announcer - Announce when a player connect
Translation Project - Let's make the plugins to be international
lokizito is offline
lokizito
Veteran Member
Join Date: Dec 2010
Location: Brazil
Old 01-13-2012 , 10:57   Re: [WIP] Using MSN protocol with SourceMod
Reply With Quote #7

More progress made, now it can send chat invites (it is made right after login to a test contact) and may work when receiving it.
__________________
[CS:S] RankMe - Why pay for a rank plugin if you can have one for free?
[CS:S] RankMe Connect Announcer - Announce when a player connect
Translation Project - Let's make the plugins to be international
lokizito is offline
lokizito
Veteran Member
Join Date: Dec 2010
Location: Brazil
Old 01-15-2012 , 21:29   Re: [WIP] Using MSN protocol with SourceMod
Reply With Quote #8

More progress made, now fully working at receiving and parsing contacts. And fully working at answering SB sessions. More info at the first post.
__________________
[CS:S] RankMe - Why pay for a rank plugin if you can have one for free?
[CS:S] RankMe Connect Announcer - Announce when a player connect
Translation Project - Let's make the plugins to be international
lokizito is offline
Alex30555
Member
Join Date: Sep 2011
Location: Paris
Old 01-20-2012 , 17:33   Re: [WIP] Using MSN protocol with SourceMod
Reply With Quote #9

Nice
Alex30555 is offline
Bimbo1
Senior Member
Join Date: Jan 2010
Location: brazil
Old 01-24-2012 , 22:38   Re: [WIP] Using MSN protocol with SourceMod
Reply With Quote #10

Cool, didn't know it was possible D:
Bimbo1 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:18.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode