• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

BrickEmulator [C#] Pooling Sockets + From Scratch

Status
Not open for further replies.
Skilled Illusionist
Joined
Jul 4, 2009
Messages
363
Reaction score
65
is this emu compatible with phoenix? or is it a complete other database?

sorry for bad english i'm dutch
 
Newbie Spellweaver
Joined
Aug 27, 2011
Messages
25
Reaction score
4
is this emu compatible with phoenix? or is it a complete other database?

sorry for bad english i'm dutch

Seriously? Brick Emulator is not Phoenix so where the hell did you get that idea from?

Brick Emu uses a totally different Database.
 
Master Summoner
Joined
Jul 12, 2009
Messages
530
Reaction score
655
Cracked Encryption

wichard - BrickEmulator [C#] Pooling Sockets + From Scratch - RaGEZONE Forums
 
Last edited:
Skilled Illusionist
Joined
Oct 19, 2010
Messages
391
Reaction score
70
Cracked Encryption

wichard - BrickEmulator [C#] Pooling Sockets + From Scratch - RaGEZONE Forums


Response:
Code:
    class Response
    {
        public StringBuilder Builder = new StringBuilder();
        public int LenthBuilder = 0;

        private int HeaderId;

        public Response(int HeaderId)
        {
            this.HeaderId = HeaderId;
        }

        public void AppendInt32(int i)
        {
            Builder.Append('\x0');
            Builder.Append(Convert.ToChar(i));

            LenthBuilder += 2;
        }

        public void AppendBoolean(bool Bool)
        {
            AppendInt32((Bool) ? 1 : 0);
        }

        public void AppendStringWithBreak(string i)
        {
            AppendInt32(i.Length);
            Builder.Append(i);

            LenthBuilder += i.Length;
        }

        public byte[] GetBytes()
        {
            StringBuilder Merge = new StringBuilder();

            for (int i = 0; i < 2; i++)
            {
                Merge.Append('\x0');
            }

            Merge.Append('\x0');
            Merge.Append(Convert.ToChar(LenthBuilder + 2));
            Merge.Append('\x0');
            Merge.Append(Convert.ToChar(HeaderId));
            Merge.Append(Builder.ToString());

            return Encoding.Default.GetBytes(Merge.ToString());
        }
    }

Request:

Code:
    class Request
    {
        private List<char> Body;
        public int PacketLength = 0;
        public int HeaderId = 0;

        private int Pointer = 0;

        public Request(char[] Bytes)
        {
            Body = Bytes.ToList();

            Clean();
        }

        public void Clean()
        {
            ReadBytes(2);

            PacketLength = PopWiredInt32();
            HeaderId = PopWiredInt32();
        }

        public int PopWiredInt32()
        {
            return Convert.ToByte(ReadBytes(2)[1]);
        }

        public Boolean PopWiredBoolean()
        {
            return PopWiredInt32() == 1;
        }

        public string PopFixedString()
        {
            string Builder = string.Empty;

            int Length = PopWiredInt32();

            for (int i = 0; i < Length;  i++)
            {
                Builder += Convert.ToChar(ReadBytes(1));
            }

            return Builder;
        }

        public char[] ReadBytes(int Amount)
        {
            char[] Array = new char[Amount];

            for (int i = 0; i < Amount; i++)
            {
                Array[i] = Body[Pointer];

                Pointer++;
            }

            return Array;
        }
    }

Wow, now retro Hotels have a Feature.
Nice wichard. Great Update
 
Developer
Developer
Joined
Dec 11, 2010
Messages
2,955
Reaction score
2,688
This is not "encryption" etc... Is just packet obfuscation... The host protection problem is still here...

Just get people to add in the hosts file...
Code:
<RETRO IP> <retroname>.habbo.com

Problem solved :D

---------- Post added at 04:37 AM ---------- Previous post was at 04:25 AM ----------

wichard - BrickEmulator [C#] Pooling Sockets + From Scratch - RaGEZONE Forums


Why does it say Speed Emulator?
 
The one and only!
Loyal Member
Joined
Nov 24, 2008
Messages
2,529
Reaction score
1,435
Just get people to add in the hosts file...
Code:
<RETRO IP> <retroname>.habbo.com

Problem solved :D

---------- Post added at 04:37 AM ---------- Previous post was at 04:25 AM ----------

wichard - BrickEmulator [C#] Pooling Sockets + From Scratch - RaGEZONE Forums


Why does it say Speed Emulator?

I wondered that :p Decided to think nothing of it though :ehh:
 
Master Summoner
Joined
Jul 12, 2009
Messages
530
Reaction score
655
Hmm, new headers ;D

---------- Post added at 07:00 PM ---------- Previous post was at 06:54 PM ----------

Lol, but why Speed Emulator and not Brick Something?? :p

Just to configure the new classes ;D

---------- Post added at 07:14 PM ---------- Previous post was at 07:00 PM ----------

This is not "encryption" etc... Is just packet obfuscation... The host protection problem is still here...

Yea, but they changed more than that.

Headers -> Packet structures etc.
 

Law

Garry's Mod is addictive!
Joined
Dec 11, 2009
Messages
699
Reaction score
171
Several people have figured out the "new changes to the protocol" more than a week ago..

Maybe they started before wichard. Even tho he made that thread or posted in that thread doesn't mean he started to try "decrypting" it.
 
Experienced Elementalist
Joined
Jul 5, 2006
Messages
262
Reaction score
193
Encryptions forced now. gl guys.

But you could just edit the key in the swf to your own and have the server init the crypto using your own key? and you can do that via abc

Encryption in RSA is good for others to not see YOUR key, but when you can edit the key to your own then its useless.

Most people round here won't be able to figure out how to do any of that anyway. (http://code.google.com/p/apparat/)
 
Status
Not open for further replies.
Back
Top