Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[VB.NET] Question of winsock 2 send/recv func in VB .NET

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
~Lurker
I post too much
Reputation: 0

Joined: 20 Sep 2008
Posts: 2259
Location: lurking moar

PostPosted: Wed Nov 05, 2008 8:46 pm    Post subject: [VB.NET] Question of winsock 2 send/recv func in VB .NET Reply with quote

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
View user's profile Send private message
pkedpker
Master Cheater
Reputation: 1

Joined: 11 Oct 2006
Posts: 412

PostPosted: Wed Nov 05, 2008 9:11 pm    Post subject: Reply with quote

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?

_________________
Hacks I made for kongregate.
Kongregate Universal Badge Hack: http://forum.cheatengine.org/viewtopic.php?p=4129411
Kongreate Auto Rating/Voter hack: http://forum.cheatengine.org/viewtopic.php?t=263576
Took a test lol
Back to top
View user's profile Send private message
~Lurker
I post too much
Reputation: 0

Joined: 20 Sep 2008
Posts: 2259
Location: lurking moar

PostPosted: Thu Nov 06, 2008 4:41 pm    Post subject: Reply with quote

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
View user's profile Send private message
pkedpker
Master Cheater
Reputation: 1

Joined: 11 Oct 2006
Posts: 412

PostPosted: Fri Nov 07, 2008 12:14 am    Post subject: Reply with quote

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


The Extension 'rar' was deactivated by an board admin, therefore this Attachment is not displayed.


_________________
Hacks I made for kongregate.
Kongregate Universal Badge Hack: http://forum.cheatengine.org/viewtopic.php?p=4129411
Kongreate Auto Rating/Voter hack: http://forum.cheatengine.org/viewtopic.php?t=263576
Took a test lol
Back to top
View user's profile Send private message
darkex
I post too much
Reputation: 0

Joined: 29 Aug 2008
Posts: 2006
Location: Australia

PostPosted: Fri Nov 07, 2008 5:12 am    Post subject: Reply with quote

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
View user's profile Send private message
~Lurker
I post too much
Reputation: 0

Joined: 20 Sep 2008
Posts: 2259
Location: lurking moar

PostPosted: Fri Nov 07, 2008 3:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
pkedpker
Master Cheater
Reputation: 1

Joined: 11 Oct 2006
Posts: 412

PostPosted: Fri Nov 07, 2008 8:48 pm    Post subject: Reply with quote

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.

_________________
Hacks I made for kongregate.
Kongregate Universal Badge Hack: http://forum.cheatengine.org/viewtopic.php?p=4129411
Kongreate Auto Rating/Voter hack: http://forum.cheatengine.org/viewtopic.php?t=263576
Took a test lol
Back to top
View user's profile Send private message
~Lurker
I post too much
Reputation: 0

Joined: 20 Sep 2008
Posts: 2259
Location: lurking moar

PostPosted: Sat Nov 08, 2008 12:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
pkedpker
Master Cheater
Reputation: 1

Joined: 11 Oct 2006
Posts: 412

PostPosted: Sat Nov 08, 2008 4:18 pm    Post subject: Reply with quote

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..
_________________
Hacks I made for kongregate.
Kongregate Universal Badge Hack: http://forum.cheatengine.org/viewtopic.php?p=4129411
Kongreate Auto Rating/Voter hack: http://forum.cheatengine.org/viewtopic.php?t=263576
Took a test lol
Back to top
View user's profile Send private message
~Lurker
I post too much
Reputation: 0

Joined: 20 Sep 2008
Posts: 2259
Location: lurking moar

PostPosted: Sat Nov 08, 2008 5:07 pm    Post subject: Reply with quote

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
View user's profile Send private message
pkedpker
Master Cheater
Reputation: 1

Joined: 11 Oct 2006
Posts: 412

PostPosted: Sun Nov 09, 2008 3:57 pm    Post subject: Reply with quote

your in luck i found one..

image



http://planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=4090&lngWId=10

its just like the one I shown in VB6.. but it will log all packets from all games so filter any except for port 5588

_________________
Hacks I made for kongregate.
Kongregate Universal Badge Hack: http://forum.cheatengine.org/viewtopic.php?p=4129411
Kongreate Auto Rating/Voter hack: http://forum.cheatengine.org/viewtopic.php?t=263576
Took a test lol
Back to top
View user's profile Send private message
~Lurker
I post too much
Reputation: 0

Joined: 20 Sep 2008
Posts: 2259
Location: lurking moar

PostPosted: Sun Nov 09, 2008 7:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
pkedpker
Master Cheater
Reputation: 1

Joined: 11 Oct 2006
Posts: 412

PostPosted: Mon Nov 10, 2008 12:20 am    Post subject: Reply with quote

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 Sad

_________________
Hacks I made for kongregate.
Kongregate Universal Badge Hack: http://forum.cheatengine.org/viewtopic.php?p=4129411
Kongreate Auto Rating/Voter hack: http://forum.cheatengine.org/viewtopic.php?t=263576
Took a test lol
Back to top
View user's profile Send private message
~Lurker
I post too much
Reputation: 0

Joined: 20 Sep 2008
Posts: 2259
Location: lurking moar

PostPosted: Mon Nov 10, 2008 4:39 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites