Darkorbit and c++ or c# packets

02/11/2012 12:20 hoocrax#16
But it says 2.3.1 ? OOOLd client ? coz new client is 5++
02/11/2012 12:24 Serraniel#17
That´s not login packet. It looks like this:
Code:
00 1A 4F E8 05 17 00 1C 4A F8 EE EB 08 00 45 00 
00 5B C3 D8 40 00 80 06 C5 FC C0 A8 B2 39 3E 92
BF 53 09 B1 1F 90 6C A6 A4 F2 56 B0 A2 43 50 18
FF FF 1D 14 00 00 00 31 00 03 00 00 01 AA 7E 84
00 00 00 20 38 32 37 65 35 62 34 31 31 32 35 64
30 37 61 38 30 36 64 34 63 66 35 38 39 33 32 61
39 39 62 34 00 03 35 2E 31
. This is an old sniffed login from 5.1.2 or sth like this...
02/11/2012 12:31 hoocrax#18
Yeah exactly,

The above u showed :
Quote:
3.Z.....1...siddddd..5.4.2
Is the new packet.. it appears as ... because it is encrypted !
02/11/2012 12:52 SekhmetPOL#19
Quote:
Originally Posted by hoocrax View Post
But it says 2.3.1 ? OOOLd client ? coz new client is 5++

This packet is from today, but i don't know why is 2.3.1
03/11/2012 10:49 SekhmetPOL#20
Okey, i have login packet from UridiumWars.
HTML Code:
LOGIN|UID|SID|ClientVersion.
I write that code:
Code:
 int SendPacket(Socket s, String str) {
            TcpClient k = new TcpClient("62.146.187.186", 8080);
            try {
			str += "\n\0";
            ASCIIEncoding encoder = new ASCIIEncoding();
            byte[] packet = encoder.GetBytes(str);
			
			if(k.Connected)
			    k.Send(packet,str.Length, 0);
		    }
		    catch(SocketException e) {
			return e.ErrorCode;
		    }
		    return 0;
	        }
But I don't know how send packet in C#
In C++:
Code:
k->Send(packet,str.Length, 0);


Thanks.
03/11/2012 10:56 Serraniel#21
Quote:
Originally Posted by SekhmetPOL View Post
Okey, i have login packet from UridiumWars.
HTML Code:
LOGIN|UID|SID|ClientVersion.
You said it. It´s from uri wars, and not for normal serveers. it won´t work. and the . at the end isn´t part of the packet!
03/11/2012 11:02 SekhmetPOL#22
Yes, i know.
But I programming this for UriWars, not DarkOrbit.
03/11/2012 11:06 Prime.™#23
i saw Udobot 4.1 for URidium wars . That was on [Only registered and activated users can see links. Click Here To Register...] , also working perfectly
03/11/2012 11:15 SekhmetPOL#24
Quote:
Originally Posted by imaboortsog View Post
i saw Udobot 4.1 for URidium wars . That was on [Only registered and activated users can see links. Click Here To Register...] , also working perfectly
And...?

My passion is programming. Not use ready-made programs
06/02/2012 02:42 »jD«#25
Just so you know, DarkOrbit Packets aren't encrypted, just, serialized... with BigEndian. It's pretty easy to change the mode of a Socket to BigEndian :)

-jD
06/02/2012 07:09 SekhmetPOL#26
o.0
I anaylze SeaCrusher and packets are decryped in 2 functions.
06/02/2012 10:44 ßΙЍȺƦƴßȰȾ#27
Quote:
Originally Posted by SekhmetPOL View Post
And...?

My passion is programming. Not use ready-made programs
if u r coding for uridium wars , u can just get help from UDObot 4.1 source code
as UW uses client something 2.x.x , it uses same packets as DO before , u can get all packets there in source , For DO ver 5.x.x packets are changed a lot , u can use UDO bot source to get functioning of bot, not packets

best of luck , coding is really fun when there are challenges
06/02/2012 14:33 bottdo#28
I recently decompiled the (normal) DO Client.
In the ActionScript file which represents the logincommand, there's written:

Code:
public function _-dD(arg1:flash.utils.IDataOutput):void
        {
            arg1.writeShort(ID);                  //const ID:int = 160
            arg1.writeShort(this._-4z());      //_-4z() returns always 0
                                                        //(maybe decompile error)
            arg1.writeInt(this.userID);
            arg1.writeShort(this.factionID);
            arg1.writeUTF(this.sessionID);
            arg1.writeUTF(this.version);
            arg1.writeInt(this.instanceId);
            return;
        }
So the loginpacket may look like this:
160|0|USERID|FACTIONID|SESSID|CLIENTVERSION|INSTAN CEID
06/02/2012 15:56 SekhmetPOL#29
But i must crypted packet to send to DO servers.
06/03/2012 20:40 bottdo#30
The packets aren't crypted... it's only hard to read them if you use a packet sniffer. You only have to set your socket properly.