[VB6] Packet Sending Program

Socius Decennalis
Decennium
Joined
Sep 9, 2008
Messages
586
Reaction score
13
i currently am making a program that will send packets to a certain game called Khan Online..
Now i want to attach my program to the process named khanclient.exe..
i currently have this code

Code:
      Option Explicit

      Private Sub Command1_Click()
        Winsock1.SendData "0A 00 0A 19 5E BF F1 51 18 2E"
      End Sub

      Private Sub Form_Load()
         Command1.Enabled = False
         Winsock1.Connect "61.19.250.152", 2104
      End Sub

      Private Sub Form_Unload(Cancel As Integer)
         Winsock1.Close
      End Sub

      Private Sub Winsock1_Connect()
         Command1.Enabled = True
      End Sub

      Private Sub Winsock1_DataArrival(ByVal bytesTotal As Long)
         Dim temp As String
         temp = String(bytesTotal, Chr$(0))
         Winsock1.GetData temp, vbString, bytesTotal
         MsgBox temp
      End Sub

By Clicking my command1 my program will send a packet to the game,
that packet opens the storage.
but when i send it i get no errors.. but i also dont get any result..

should i attach my program to the process 1st?
can someone help me on how to attach my program to that certain process? thanks..:thumbup:

anyways, if you can tell me something better / better code that would be great.
if somethings wrong w/ my code please dont hesitate to correct it.. thanks!

this is a screenshot of my program
majidemo - [VB6] Packet Sending Program - RaGEZONE Forums
 
Last edited:
.... this would just send packet to their server not client to be able send packets to client you need hook winsocket send by making dll that does this then inject it to client and you will be able send packets to open client
 
Owh.. ok.. thanks for clearing that out..

is there any guide out there that covers that field?

can you point me to a guide sir? thanks..

making a dll to hook?

should i use VB? or C++?

im currently making my project w/ VB..
 
Back