C# Silkroad Security api . Packets

12/28/2013 11:14 Eslam Galull#1
i Added The Source Code of the Clientless Login .. if any one can Tell Me How Can i Send Packets From it !!



in Silkroad Security Api DLL


How Can i Send Packet Like This One

PHP Code:
[-> S][7034]
00                         
0D                              
06                                     
00 00 
i Know i Use This
PHP Code:
 Packet p = new Packet(0x7034true);
            
p.WriteUInt8(00);
            
p.WriteUInt8(0D);>> Error That 0D Must Turn To Another Something
            p
.WriteUInt8(06);
            
p.WriteUInt8(00 00); >> Error That 00 00 Must Turn To Another Something
            Gateway
.SendToServer(p); 

May it Stupid but i try to use C# i Didnt Know any thing in it

i Just Work in VB.net

So ANy Help ? :)
12/28/2013 12:22 pergian#2
if u write hex numbers u must use the prefix "0x", i recommend to use only hex numbers or decimal numbers to not get confused when u mix them.
and u cant make spaces in a number, if u want to write 2 times 00 then u can use .WriteUint16 or 2 times .WriteUint8

this should work.

Packet p = new Packet(0x7034, true);
p.WriteUInt8(00);
p.WriteUInt8(0x0D);>> Error That 0D Must Turn To Another Something
p.WriteUInt8(06);
p.WriteUInt16(00); >> Error That 00 00 Must Turn To Another Something
Gateway.SendToServer(p);
12/28/2013 12:44 Eslam Galull#3
i will test That and Brb
_____________________________________

Didnt Work ! The Opcode Didnt do anything .. it must Change weapon to that weapon in the frist slot but nothing

the api Send the packet like this

[C->S][7074][7 bytes][Encrypted]
0000000000 01 04 19 2C 00 00 00

and it must send like this[C->S][7074]
01 04 25 2C 00 00 00

i Dunno why "25" Send as a "19"

the Code
Quote:
Packet p = new Packet(0x7074, true);
p.WriteUInt8(01);
p.WriteUInt8(04);
p.WriteUInt8(25);
p.WriteUInt8(0x2C);
p.WriteUInt16(00);
p.WriteUInt8(00);
Gateway.SendToServer(p);
12/28/2013 14:35 Bartic#4
25 == 0x19
12/28/2013 15:42 Eslam Galull#5
and how i know the others 0x!! ?

and btw its still Wrong


its still Send 19 even i write 0x19 or 25
12/28/2013 18:57 pergian#6
all bytes u get from the api
01 04 19 2C 00 00 00

are displayed in hex format

so basically its
0x01
0x04
0x19
0x2C
0x00
0x00
0x00
12/29/2013 07:12 Eslam Galull#7
@Pergian Do you Understand What i Mean ? xD

Why 25 Send As 19 ?!

And What that Silkroad api Send 000000 before my packet ? xD
12/29/2013 10:44 lesderid#8
You should really know this if you're planning to code anything. https://en.wikipedia.org/wiki/Hexadecimal

Also, would you mind removing your sig? It's a disgrace to actual coders.
12/29/2013 11:11 Eslam Galull#9
xD


Forget my Sig ..

And Just Tell Me How To Write That Packet :S!

nd btw i hvnt time for all that i just Do it For Fun
12/30/2013 12:13 confict#10
If you want to be a pro programmer, I advise you to learn some proper English since all general programming syntaxes are in English.
12/30/2013 12:32 Eslam Galull#11
why Every One Here Act Like a Boss ?!

Just Fck Tell Me how can i send packet with that Silkroad S.api Or Dont Leave a Comment !
12/30/2013 14:47 Nezekan#12
Quote:
Originally Posted by its.soul View Post
why Every One Here Act Like a Boss ?!

Just Fck Tell Me how can i send packet with that Silkroad S.api Or Dont Leave a Comment !
nobody is obligated to tell you how to do it, if people don't want to help you though luck, you'll need to find out how to do it on your own ;)
12/30/2013 15:23 Eslam Galull#13
yea Thanks And i already No it

i Write if u wanna Help :)
Not You Must Help ...

But Leave a Comment " just learn Just do bla bla bla .. " ? WTF ?

Help Or nt its up to you .. but dont tell me what i have to do !
12/30/2013 17:01 qkuh#14
We won't offer you a fully working code. You have to use your brain.
12/30/2013 17:22 Eslam Galull#15
i Swear i Did ma Best and i get the packets But like line By line

And Cant Handle it Yet .. And Here in Silkroad api i Didnt Use C# Before ! SO i Dunno How They Use That Packets And How To Send it :)