| View previous topic :: View next topic |
| Author |
Message |
MooMooCow Newbie cheater
Reputation: 0
Joined: 07 Jun 2007 Posts: 21
|
Posted: Fri Jul 11, 2008 2:26 am Post subject: [Help] Locating the port number. |
|
|
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 |
|
 |
thephoneguy Grandmaster Cheater
Reputation: 1
Joined: 17 Mar 2007 Posts: 873
|
Posted: Fri Jul 11, 2008 3:47 am Post subject: |
|
|
keylogger?
_________________
If you see me posting referring to an earlier conversation 9/10 times it was in the chatbox at baby .
 |
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8588 Location: 127.0.0.1
|
Posted: Fri Jul 11, 2008 6:49 am Post subject: |
|
|
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 |
|
 |
MooMooCow Newbie cheater
Reputation: 0
Joined: 07 Jun 2007 Posts: 21
|
Posted: Fri Jul 11, 2008 9:35 am Post subject: |
|
|
| 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 |
|
 |
|