Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > .NET Languages
You last visited: Today at 06:02

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



How to send a packet taken from WPE PRO with Winsock control vb2010

Discussion on How to send a packet taken from WPE PRO with Winsock control vb2010 within the .NET Languages forum part of the Coders Den category.

Reply
 
Old 03/30/2011, 20:11   #31
 
Kraizy​'s Avatar
 
elite*gold: 0
The Black Market: 471/0/0
Join Date: Apr 2010
Posts: 9,696
Received Thanks: 1,810
Quote:
Originally Posted by sarkoplata View Post
I have to read what's in the inventory.
Well, I also came to that point..will try to find something helpful because I am interested in that too
Kraizy​ is offline  
Old 03/30/2011, 20:26   #32

 
sarkoplata's Avatar
 
elite*gold: 166
Join Date: Apr 2009
Posts: 2,339
Received Thanks: 2,654
Quote:
Originally Posted by Fisticuff View Post
Well, I also came to that point..will try to find something helpful because I am interested in that too
Btw , your code isn't working ; I also tried this way.
Code:
  Dim sroHandle As Process = Process.GetCurrentProcess
        For Each sroHandle In Process.GetProcesses
            If sroHandle.MainWindowTitle = "SRO_Client" Then
                If currMP < 2000 Then 'Val(TextBox5.Text) / 100 * maxMP 
                    SendMessage(sroHandle, WM_CHAR, Asc("9"), 0)
                    Exit For
                End If
            End If
        Next
This didn't work as well. 0 errors , but no repot. Nothing happens.
Well lastly , If i found something about Read Inventory , I'll tell you.Now I am checking an old clientless source, which includes lots of Char packet handles.
sarkoplata is offline  
Old 04/02/2011, 12:32   #33

 
sarkoplata's Avatar
 
elite*gold: 166
Join Date: Apr 2009
Posts: 2,339
Received Thanks: 2,654
Back again :P
I've made an auto party tool which can create parties successfully.
But there is a problem that i couldn't make auto-accept party.
I wanna make , when the opcode "70D6" (I cant remember exactly) comes ,
I should send accept packet.
But how.
sarkoplata is offline  
Old 04/02/2011, 13:20   #34
 
Kraizy​'s Avatar
 
elite*gold: 0
The Black Market: 471/0/0
Join Date: Apr 2010
Posts: 9,696
Received Thanks: 1,810
Use your socket and receive packets with Socket.BeginReceive(...). You need to do your own little PacketAnalyzer, found one here (C# sourcecode but it's not hard to convert it to VB.NET, it took me ~10 minutes):
Find the Sub Received(buffer As Byte()) there you can use the Select Case-Methode to do something on incoming packets, simple example:
PHP Code:
Select Case rp.OpCode
   
Case "A102"    //Server login answer
         
Select Case rp.PacketData 
            
Case "0201" //If you receive the packet (A102) 0201 you will get the ingame message that your login data is wrong
               //Wrong login
            
Case "0205"
               
//Server is full
            
End Select
   
Case "70D6"
         
//Do something when you receive the 70D6 opcode
End Select 
Kraizy​ is offline  
Old 04/03/2011, 00:39   #35

 
sarkoplata's Avatar
 
elite*gold: 166
Join Date: Apr 2009
Posts: 2,339
Received Thanks: 2,654
Quote:
Originally Posted by Fisticuff View Post
Use your socket and receive packets with Socket.BeginReceive(...). You need to do your own little PacketAnalyzer, found one here (C# sourcecode but it's not hard to convert it to VB.NET, it took me ~10 minutes):
Find the Sub Received(buffer As Byte()) there you can use the Select Case-Methode to do something on incoming packets, simple example:
PHP Code:
Select Case rp.OpCode
   
Case "A102"    //Server login answer
         
Select Case rp.PacketData 
            
Case "0201" //If you receive the packet (A102) 0201 you will get the ingame message that your login data is wrong
               //Wrong login
            
Case "0205"
               
//Server is full
            
End Select
   
Case "70D6"
         
//Do something when you receive the 70D6 opcode
End Select 
Can you give me any example about socket.beginrecv ?
sarkoplata is offline  
Old 04/04/2011, 21:54   #36

 
sarkoplata's Avatar
 
elite*gold: 166
Join Date: Apr 2009
Posts: 2,339
Received Thanks: 2,654
Well , I thought something.
Lets think opcode for "somebody tries to join party" is 706D ,
I did this via winsock control ;
PHP Code:
//AxWinsock1_DataArrival
Dim dataz as object
 AxWinsock1
.GetData(datazvbStringe.bytesTotal)
 
ListBox1.Items.Add(StringToHex(dataz))
//Timer1_Tick
 
If ListBox1.Items.Contains("6D70"Then
 SendPacket
("704F""04"False)
 
End If 
I check my listbox , it contains 6D70 but dunno why doesn't send packet when its true.
sarkoplata is offline  
Old 04/09/2011, 23:54   #37

 
sarkoplata's Avatar
 
elite*gold: 166
Join Date: Apr 2009
Posts: 2,339
Received Thanks: 2,654
bump
sarkoplata is offline  
Old 04/12/2011, 17:02   #38

 
sarkoplata's Avatar
 
elite*gold: 166
Join Date: Apr 2009
Posts: 2,339
Received Thanks: 2,654
bump..
sarkoplata is offline  
Old 04/12/2011, 18:28   #39
 
Kraizy​'s Avatar
 
elite*gold: 0
The Black Market: 471/0/0
Join Date: Apr 2010
Posts: 9,696
Received Thanks: 1,810
Did you try to place a breakpoint on the line "If ListBox1.Items..." to see if it gets called?
Kraizy​ is offline  
Old 04/12/2011, 18:54   #40

 
sarkoplata's Avatar
 
elite*gold: 166
Join Date: Apr 2009
Posts: 2,339
Received Thanks: 2,654
Quote:
Originally Posted by xKraizy View Post
Did you try to place a breakpoint on the line "If ListBox1.Items..." to see if it gets called?
I created a function.. this one helped...
PHP Code:
Public Function listboxcontain() As Boolean
        
For Each itm As String In ListBox1.Items
            
If itm.Contains("6D70"Then
                
Return True
            End 
If
        
Next
        
Return False
    End 
Function 
I'm still working on hell reading packets... I can get them , see them , but can't analyze.. Btw i am searching for pt accept packet when someone comes to pt , i tested but still didn't understand.. But I found creating party packet , if it helps you :
PHP Code:
Dim fdata As String "00000000000000000" Pttypebutton minLVHex maxLVHEX Strlen "00" hexpttitle
        SendPacket
("7069"fdataFalse
pt type button ( exp share etc ) -> 400 500 600 or 700
MinLvhex & maxlvhex level ranges in hex
strlen of pt title ,
hexpttitle pt title in hex
I know you may know theese already .. but , I always want help from you.. I don't help any .. I want to help too..
sarkoplata is offline  
Old 04/12/2011, 19:03   #41
 
Kraizy​'s Avatar
 
elite*gold: 0
The Black Market: 471/0/0
Join Date: Apr 2010
Posts: 9,696
Received Thanks: 1,810
I already gave you this link:
It's a C# packet analyzer, convert it to VB.NET with: and you will be able to receive the packets, list them in a listbox and do something when they receive (look for the "Received"-Sub).

BTW: Are you able to send packets? Because of: "SendPacket("7069", fdata, False)" what is the "False"-Parameter? Can I see your SendPacket-Sub? I posted my Sub on (I think) the second site of this thread and there are only two parameters (OpCode, Data)
Kraizy​ is offline  
Old 04/12/2011, 21:02   #42

 
sarkoplata's Avatar
 
elite*gold: 166
Join Date: Apr 2009
Posts: 2,339
Received Thanks: 2,654
Quote:
Originally Posted by xKraizy View Post
I already gave you this link:
It's a C# packet analyzer, convert it to VB.NET with: and you will be able to receive the packets, list them in a listbox and do something when they receive (look for the "Received"-Sub).

BTW: Are you able to send packets? Because of: "SendPacket("7069", fdata, False)" what is the "False"-Parameter? Can I see your SendPacket-Sub? I posted my Sub on (I think) the second site of this thread and there are only two parameters (OpCode, Data)
Ah yes.You posted sub for sending packets , I added an boolean to it. What I changed is ;
PHP Code:
Sub SendPacket(ByVal OpCode As StringByVal sData As StringByVal Enc As Boolean)
 If 
Enc True Then
                    w
.Write(CUShort(3))
                Else
                    
w.Write(CUShort(1))
                
End If 
It's about security byte , It's 0300 If it's an encrypted packet ( e.g. potion packets) It's 0100 if it's a normal packet.
BTW : I can send like this too;
srosocket.send(data)
I'll check packet analysator.
BTW : That site is really bad for converting , ok it's beginreceive but , how to elect them?
sarkoplata is offline  
Old 04/19/2011, 18:21   #43

 
sarkoplata's Avatar
 
elite*gold: 166
Join Date: Apr 2009
Posts: 2,339
Received Thanks: 2,654
still fail.
sarkoplata is offline  
Old 04/23/2011, 11:35   #44

 
sarkoplata's Avatar
 
elite*gold: 166
Join Date: Apr 2009
Posts: 2,339
Received Thanks: 2,654
I have a different question now.
I added openfiledialog and a Process.start to open the loader from my app,
it opens the loader successfully but when i press "Launch" from loader , nothing happens.
When i open loader normally , it opens the game.
btw , i tried running it as administrator
sarkoplata is offline  
Old 04/23/2011, 13:18   #45
 
Kraizy​'s Avatar
 
elite*gold: 0
The Black Market: 471/0/0
Join Date: Apr 2010
Posts: 9,696
Received Thanks: 1,810
Would be nice if we could see the code you are using...
Kraizy​ is offline  
Reply


Similar Threads Similar Threads
(Winsock hook) replace/filter packet bytes
11/18/2010 - General Coding - 3 Replies
Hi guys Please, can someone explain me or help me about my winsock hook?! I need to change the first and second bytes of the packet I've received... example: I'm receiving the packet:
Play sound via Packet Send?? [Question String Packet]
07/14/2010 - CO2 Private Server - 5 Replies
Yow im trying to figure out why i cant play music with the string packet What im doin is; MyChar.Client.SendPacket(Game.Packet.String(MyCha r.UID, 20, Splitter)); My Packet is: public byte String(long CharId, byte Type, string name)
Control Send...
05/07/2010 - AutoIt - 7 Replies
Hi zusammen, ich möchte gerne bei meinem Script ControlSend benutzen und das läuft ja nach diesem: ControlSend ( "title", "text", controlID, "string" ) Schema ab. Jetzt stellt sich mir die Frage, was ich wenn ich das ans LC fenster schicken muss bei controlID eintragen muss kann mir da jemand vlt weiterhelfen? LG
Need Help about (Winsock Packet Editor (WPE) Pro 0.9a)
09/26/2009 - CO2 Programming - 18 Replies
Hey All I need help to know some thing about ( Winsock Packet Editor (WPE) Pro 0.9a in Network Monitors ) need to know.. How Can i open one Sv in different User account at One Pc How is it work..? Thankz any way i w8 Replies Plz don't avoid me
[VB6]Winsock Packet Sending Program & [C++] ws_32 Hook&DLL
06/07/2009 - C/C++ - 1 Replies
Hi.. im trying to create a program that send packet to the server.. someone told me to hook my program using the ws_32 hook and dll can someone give me or teach me how to do these codes? the client i need to attach to is "KhanClient.exe" i hope you can help me..



All times are GMT +2. The time now is 06:02.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.