| View previous topic :: View next topic |
| Author |
Message |
~Lurker I post too much
Reputation: 0
Joined: 20 Sep 2008 Posts: 2259 Location: lurking moar
|
Posted: Wed Nov 05, 2008 8:46 pm Post subject: [VB.NET] Question of winsock 2 send/recv func in VB .NET |
|
|
Hi all. I need some help with hooks in VB .NET. I know everyone says that VB is horrible with hooks and to use Delphi, but that's just not an option right now. Is anyone here experienced with hooks in .NET? Let's say I have a FileListBox who's name is "FileListBox1". There is an AxShockWaveFlash1 component in the form, and whenever a send packet is sent, I want the file list box to list that file. Clicking a button will display the selected packet in RichTextBox1, which has multiple functions that are within my ability to code, and with the click of another button the packet listed in RichTextBox1 will be displayed in FileListBox2. When a check box is checked, the form will begin spamming the packets in FileListBox2 at the speed typed into TextBox1 (in milliseconds). Is there anyone that knows how to code this?
Thanks in advance,
Lurker.
|
|
| Back to top |
|
 |
pkedpker Master Cheater
Reputation: 1
Joined: 11 Oct 2006 Posts: 412
|
Posted: Wed Nov 05, 2008 9:11 pm Post subject: |
|
|
if you want to hack a flash game.. u shouldn't be worried about winsock hooking but hooking a function from your flash game that sends the packet and gets the packets
what flash game is it?
_________________
|
|
| Back to top |
|
 |
~Lurker I post too much
Reputation: 0
Joined: 20 Sep 2008 Posts: 2259 Location: lurking moar
|
Posted: Thu Nov 06, 2008 4:41 pm Post subject: |
|
|
| AQWorlds. It's written in AS3, so there aren't any variables that can be manipulated. That's why I want to use Winsock 2 send my own packets that have been intercepted from the game.
|
|
| Back to top |
|
 |
pkedpker Master Cheater
Reputation: 1
Joined: 11 Oct 2006 Posts: 412
|
Posted: Fri Nov 07, 2008 12:14 am Post subject: |
|
|
here i tried that game out kinda bad game.. anyways i tried to make one.. to show u example it's attached has problems with sending packets.. i dont understand the ipheader structure that well u have to work on that
_________________
|
|
| Back to top |
|
 |
darkex I post too much
Reputation: 0
Joined: 29 Aug 2008 Posts: 2006 Location: Australia
|
Posted: Fri Nov 07, 2008 5:12 am Post subject: |
|
|
| You need either to use a winsock component from winsock.ocx or through the a w2_ds....dll for this. You should most likely try and hook packets through Delphi although those are much more complex to me.
|
|
| Back to top |
|
 |
~Lurker I post too much
Reputation: 0
Joined: 20 Sep 2008 Posts: 2259 Location: lurking moar
|
Posted: Fri Nov 07, 2008 3:33 pm Post subject: |
|
|
| pkedpker wrote: | | here i tried that game out kinda bad game.. anyways i tried to make one.. to show u example it's attached has problems with sending packets.. i dont understand the ipheader structure that well u have to work on that |
Unfortunately, when I try to upgrade those files, it gets an error message that rawsockets.vbproj or something is missing. Could you describe step by step how it was done by posting here or by PM? Also, a shockwave flash component will be in the form that loads the game.
Movie URL: http://game.aqworlds.com/game/gamefiles/game_12.swf
Base URL: http://game.aqworlds.com/game/default.asp
|
|
| Back to top |
|
 |
pkedpker Master Cheater
Reputation: 1
Joined: 11 Oct 2006 Posts: 412
|
Posted: Fri Nov 07, 2008 8:48 pm Post subject: |
|
|
the project cannot be converted it is made for VB6.. not VB.NET..
if you want to convert it to VB.NET you will have to understand how API works in VB.NET and then its possible..
you don't need shockwave flash component for this.. this gets packets based on game port.. which is (5588).. so you could run the game of Chrome or internet explorer and still be able to send/see packets.
_________________
|
|
| Back to top |
|
 |
~Lurker I post too much
Reputation: 0
Joined: 20 Sep 2008 Posts: 2259 Location: lurking moar
|
Posted: Sat Nov 08, 2008 12:30 pm Post subject: |
|
|
Actually, I was planning on releasing this if it was ever made to the general public, so I wanted to include a shockwave flash component for convenience. Also, to send packets in this game, you have to have the socket ID. Some trainers for this game have an automatic socket ID feature, which I have no idea how to make. Here's an example of what I'm looking to create an updated version of :
http://forum.cheatengine.org/viewtopic.php?t=292176
|
|
| Back to top |
|
 |
pkedpker Master Cheater
Reputation: 1
Joined: 11 Oct 2006 Posts: 412
|
Posted: Sat Nov 08, 2008 4:18 pm Post subject: |
|
|
yah i know and thats made in VB6.. and its almost exactly like mines.. yes mines gets socket ID automaticly when you login or do something inside game.. u could add shcokwave component if you wanted to using Ctrl+T in VB6 then press S 2 times until you get up to Shockwave Flash and tick the box.. then just add it into the form and set the swf URL. don't work with VB.NET VB6 is better for this stuff..
_________________
|
|
| Back to top |
|
 |
~Lurker I post too much
Reputation: 0
Joined: 20 Sep 2008 Posts: 2259 Location: lurking moar
|
Posted: Sat Nov 08, 2008 5:07 pm Post subject: |
|
|
| Yeah, I know. And I know how to use the Shockwave Flash component. Is there anyway that you could tell me how to do this stuff in VB .NET, or is there anyone you know that knows how?
|
|
| Back to top |
|
 |
pkedpker Master Cheater
Reputation: 1
Joined: 11 Oct 2006 Posts: 412
|
|
| Back to top |
|
 |
~Lurker I post too much
Reputation: 0
Joined: 20 Sep 2008 Posts: 2259 Location: lurking moar
|
Posted: Sun Nov 09, 2008 7:29 pm Post subject: |
|
|
| Thanks for trying to help, but this isn't really what I was looking for. It doesn't help me send any packets, and has nothing whatsoever with spamming them at milliseconds.
|
|
| Back to top |
|
 |
pkedpker Master Cheater
Reputation: 1
Joined: 11 Oct 2006 Posts: 412
|
Posted: Mon Nov 10, 2008 12:20 am Post subject: |
|
|
well........ yah i guess i couldn't help.. spamming them at milliseconds = timer control with interval aka in milliseconds.
Now sending packets.. when you recv packets there much be a socketId somewhere near the apiRecv() function you can use that to send packets back to the game really fast but i really can't help sorry
_________________
|
|
| Back to top |
|
 |
~Lurker I post too much
Reputation: 0
Joined: 20 Sep 2008 Posts: 2259 Location: lurking moar
|
Posted: Mon Nov 10, 2008 4:39 pm Post subject: |
|
|
| Thanks for the spamming help... anyway, your advice has helped me a lot; now I just need to find what the equivalent of the apiRecv() function is in VB.NET and how to get the socketID of the recieved packets. I'll just ask on MSDN or something. Once again, thanks.
|
|
| Back to top |
|
 |
|