[C#] Login Packet - Silkroad Security by drew

09/22/2012 19:35 lukas2abc#1
hey i am using Drew's Silkroad Security to make a packet based login.( i extend his simple_proxy example)
So i made a new gui with a button. the func of the button is:
Code:
Packet p = new Packet(0x6102);
            p.WriteUInt8(18);//Locale
            p.WriteAscii(ID);
            p.WriteAscii(PW);
            p.WriteUInt16(11);//ServerID?
            Program.gw_remote_security.Send(p);
Well i compile and run the simple_proxy and redirect sro_client and i can see all packets that are sent. So i press the button and the packet also shows up - so it is sent successfully....but not encrypted. The bytes of that login-packet are exactly the same as the ones from manual login(same id, pw and server of course.)

I noticed that my packet isn't encrypted and i think it might be the problem.
i search all over the internet and that forum but noone has that problem.

So my question is...how can i send encrypted packets?
And do you think that this is the only mistake or is there another mistake i've done?

Thanks for help!

Regards,
lukas2abc
09/22/2012 20:51 DaxterSoul#2
There are more constuctors for Packet. One of them has an encrypted parameter.
Code:
Packet p = new Packet(0x6102,true);
09/22/2012 21:22 iNiperx#3
Well, im also using drew's simple proxy and api in a GUI, but what im using is 2 threads on the "proxy" class, 1 thread for the gateway and 1 thread for the agent.

my button starts the gateway thread, and starts a sro_client already redirected and all the packets are sent to my "analyzer" on a different form. (Main form, Analyzer form, Proxy class).

im trying to make a simple bot (im pretty sure it will never be released) just for fun and to learn, you could pm your msn or skype (skype preferable) and we could work together or something.
09/22/2012 21:29 lukas2abc#4
Quote:
Originally Posted by DaxterSoul View Post
There are more constuctors for Packet. One of them has an encrypted parameter.
Code:
Packet p = new Packet(0x6102,true);
Thanks for that hint!! :)

Quote:
Originally Posted by iNiperx View Post
Well, im also using drew's simple proxy and api in a GUI, but what im using is 2 threads on the "proxy" class, 1 thread for the gateway and 1 thread for the agent.

my button starts the gateway thread, and starts a sro_client already redirected and all the packets are sent to my "analyzer" on a different form. (Main form, Analyzer form, Proxy class).

im trying to make a simple bot (im pretty sure it will never be released) just for fum and to learn, you could pm your msn or skype (skype preferable) and we could work together or something.
yes would be nice^^ i started to handle the login for the beginning and i also wanted to start a bot-project after my success and understanding of that procedure ;)

You can add me on skype: lukas2new
09/23/2012 00:16 iNiperx#5
Ok i added you, and i re-read my post and i just noticed i said "fum" instead of "fun" lol
10/15/2012 20:40 bdeniz#6
lukas i added you 2 but probably u are busy ?