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 


[Help] Locating the port number.

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
MooMooCow
Newbie cheater
Reputation: 0

Joined: 07 Jun 2007
Posts: 21

PostPosted: Fri Jul 11, 2008 2:26 am    Post subject: [Help] Locating the port number. Reply with quote

Hello. I'm trying to locate the port number at the exact point of when the send and recv functions are being called. The program I am modifying uses multiple ports for various tasks and I'm trying to locate data that relates to a certain task. When the send and recv functions are called, is the port number located on the stack anywhere, or how would I go about finding it. I have one idea, but it would require a lot of ASM code being added to the program and I want to keep it simple. Thanks for any help.

Note: I don't have the source code to this program. I have the functions hooked and all of that good stuff, but I'm just not sure where the port would be located that relates to the current data being sent and received.
Back to top
View user's profile Send private message
thephoneguy
Grandmaster Cheater
Reputation: 1

Joined: 17 Mar 2007
Posts: 873

PostPosted: Fri Jul 11, 2008 3:47 am    Post subject: Reply with quote

keylogger?
_________________
If you see me posting referring to an earlier conversation 9/10 times it was in the chatbox at baby Very Happy.
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8588
Location: 127.0.0.1

PostPosted: Fri Jul 11, 2008 6:49 am    Post subject: Reply with quote

Look for a call to connect.
http://msdn.microsoft.com/en-us/library/ms740121(VS.85).aspx

The second param is a pointer to a connection info structure which will hold the port and IP to the host the program is connecting to.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
MooMooCow
Newbie cheater
Reputation: 0

Joined: 07 Jun 2007
Posts: 21

PostPosted: Fri Jul 11, 2008 9:35 am    Post subject: Reply with quote

Thanks, Wiccaan, but I need a way to get the port number at the exact point that send() and recv() are called. It seems like there has to be a way. I may have to resort to using bind() (server app not client), but I would have to log all ports and possibly sockets then compare them as the data is sent.
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