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 


Hooking Send and sending a packet

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
ATeam9988
How do I cheat?
Reputation: 0

Joined: 30 Sep 2009
Posts: 2

PostPosted: Mon Oct 12, 2009 4:13 pm    Post subject: Hooking Send and sending a packet Reply with quote

Ok, so I've made a dll that will hook the send function of a game. I then made a program to inject the dll and call the functions. The problem I'm facing is that I'm unable to send my own packet.

What I think is wrong is that I'm calling the functions of the dll as if it were not injected, I'm not calling the functions of an actively injected dll, but I know for a fact that it has been inject properly. So how do I call the injected functions of a dll?

(I hope all that made sense)
Back to top
View user's profile Send private message
Robotex
Master Cheater
Reputation: 0

Joined: 05 Sep 2006
Posts: 378
Location: The pizza country!

PostPosted: Tue Oct 13, 2009 12:38 pm    Post subject: Reply with quote

Just grab the socket from a hooked connect/send and then use it inside your code like if you created it, no need to call remote functions inside your dll
_________________

ASM/C++ Coder
Project Speranza lead developer
Back to top
View user's profile Send private message
ATeam9988
How do I cheat?
Reputation: 0

Joined: 30 Sep 2009
Posts: 2

PostPosted: Tue Oct 13, 2009 1:53 pm    Post subject: Reply with quote

how exactly would i do that?

I have tried in my dll to set a global SOCKET variable and then in the send hook i set mySocket = Socket and then to get it I have a function that will return mySocket, but the problem is that mySocket always = null. Which means it is never getting set to Socket.
Back to top
View user's profile Send private message
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Tue Oct 13, 2009 1:55 pm    Post subject: Reply with quote

Let me get this straight. You are injecting the dll with your injector, and you want to be able to call the functions in the injected dll from the injector?

If that is the case you either need to use stubs or set up a named pipe.
Back to top
View user's profile Send private message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Wed Oct 14, 2009 6:35 am    Post subject: Reply with quote

http://msdn.microsoft.com/en-us/library/aa365574(VS.85).aspx
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