Packets and DC Protection

09/06/2011 00:01 kevin_owner#16
yeah but that isn't the problem. edx injects a dll or code into the sro_client and hackshield probably detects it and gives you the problem.
09/06/2011 00:04 tommy14#17
I was able to successfully launch one client, but no others. My guess is because there was no multi client.

edit: If you would, I'd like to turn this into a thread for help in general.

If so, my first question would be, why do my buttons not work. I must have followed this guy 10 times, I switched out the code to do just a message box, and nothing works.

I've been following the guide here: [Only registered and activated users can see links. Click Here To Register...]
09/08/2011 16:29 sarkoplata#18
Quote:
Originally Posted by kevin_owner View Post
Code:
    Public Sub SendPacket(ByVal OpCode As String, ByVal sData As String, ByVal Enc As Boolean)
        Using buffer As New IO.MemoryStream
            Using w As New IO.BinaryWriter(buffer)
                w.Write(CUShort(0))
                w.Write(CUShort("&H" + OpCode))
                If Enc = True Then
                    w.Write(CUShort(3))
                Else
                    w.Write(CUShort(2))
                End If
                For n = 0 To sData.Length / 2 - 1
                    w.Write(CByte("&H" & sData.Substring(n * 2, 2)))
                Next

                w.BaseStream.Position = 0
                w.Write(CUShort(w.BaseStream.Length - 6))
                w.Flush()
                Client.Send(buffer.ToArray)
            End Using
        End Using
    End Sub
'Thanks to sarkoplata
This function is a bad one of sarkoplata because using a string is bad.

You should change the 2nd parameter too an array of bytes and add those with the binary writer with the list. There are also more things missing in that function but that would do it for now.

Owh and you might want too take a look at some emulators since there are many of them written in C# and some in vb. check out how they handle the packets and there is even a source of phbot available which is vb so you should check it out
You could write them with binarywriter still, you only have to get the data from bwriter as string and use it as parameter . :)