2nd post-

im doing this on VB2008

anyways, i tried it but still, nothing happens..

ok let me explain it more clearly

0A 00 0A 19 5E BF F1 51 18 2E-> i got this packet using WPE.
When i resend it using WPE, my storage will really open..

but w/ my program it does not..

i need to know how to send a packet.

ill show you a screenshot of my program.






Code:
Option Explicit


Private Sub about_Click()
frmAbout.Show
End Sub

      Private Sub Command1_Click()
        winsock1.SendData "10 0 10 25 94 191 241 81 24 46"
      End Sub

Private Sub credits_Click()
frmCredits.Show
End Sub

      Private Sub Form_Load()
         Command1.Enabled = False
         winsock1.Connect "61.19.250.152", 2104
         frmSplash.Show

      End Sub

      Private Sub Form_Unload(Cancel As Integer)
         winsock1.Close
         frmSplash.Hide
      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
someone told me this...

.... 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
The point of this program is an alternative to packet editors specifically made for a game..

the game is Khan Online..
instead of going to WPE and recording and resending packets.

i'd like to get the packet and add it to my program so a person can just click a button and my program will send the packet to server from game client. thanks.


-i still dont get it.^_^

can anybody point me to a guide/ basic documents..

thanks..


-1st post

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
0A 00 0A 19 5E BF F1 51 18 2E -> the packet that opens storage.
when i use WPE/RPE w/ this packet and send it. i get results and it really opens my storage..
now i want to make a program that has a button, when clicked sends packet and opens my storage.. thanks..

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..

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!