开发者

C# SSL 3.0 (TCP) Protocol Decryption?

I am trying to read packets from a protocol (AIM 7) that has SSL encryption, how would I take the SSL off using C#?

Thanks.

I don't want extra dll's in my applications, which is why I'm trying to write it from the ground开发者_C百科 up. It is complicated to do, but I want to create a client by analyzing the packets aim 7 is sending across the network (with a proxy) and decode them, then re-encode them and create my own client without using dll's created by them.


You can do it using SslStream. Wrap the TcpClient.GetStream() with it.


This is possible in theory but not very practical. You would need access to data available only in the AIM process (the current symmetric key for the conversation which is constantly changing). If you are trying to decrypt an SSL conversation in which your computer is not participating then consider it impossible (this is the whole point of using SSL). Either way you are either trying to hack something or going about something the wrong way. Perhaps you can tell us what you are trying to accomplish? Using the AIM API as it was intended or using the Windows API to control an instance of AIM is a much easier way to write an application that "speaks" AIM.


If your only concern is shipping extra DLL's, you can merge assemblies and then use a third party SSL library that you merge with your application and only ship it as a single assembly.

You use ILMerge to do this.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜