943,563 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Marked Solved
  • Views: 1818
  • C++ RSS
Jan 21st, 2009
0

Intercept data with WINSOCK

Expand Post »
Hi, I was wondering how you would intercept data on a given port without interrupting it in WINSOCK. Like if computer A sent computer B "hi" on port 1337 and it was received on a server program. How could I listen for that data on computer B, but still let the data get to the server program. If you have no Idea what I'm asking just tell me and I'll try to explain it better.
Last edited by TheBeast32; Jan 21st, 2009 at 9:38 pm.
Reputation Points: 79
Solved Threads: 6
Posting Whiz in Training
TheBeast32 is offline Offline
236 posts
since Dec 2007
Jan 21st, 2009
0

Re: Intercept data with WINSOCK

is there a reason why its port 1337...dot dot dot
Reputation Points: 23
Solved Threads: 3
Junior Poster
clutchkiller is offline Offline
181 posts
since Jul 2008
Jan 22nd, 2009
0

Re: Intercept data with WINSOCK

You can use Deviare API hook to intercept WinSock API and you will get the data before the application. You will be able to manipulate it or keep it as it.
P-

Click to Expand / Collapse  Quote originally posted by TheBeast32 ...
Hi, I was wondering how you would intercept data on a given port without interrupting it in WINSOCK. Like if computer A sent computer B "hi" on port 1337 and it was received on a server program. How could I listen for that data on computer B, but still let the data get to the server program. If you have no Idea what I'm asking just tell me and I'll try to explain it better.
Reputation Points: 10
Solved Threads: 1
Newbie Poster
pipaman is offline Offline
1 posts
since Jan 2009
Jan 22nd, 2009
0

Re: Intercept data with WINSOCK

1. The port doesn't have to be 1337, it was just an example

2. Thanks pipaman, I'll try that
Reputation Points: 79
Solved Threads: 6
Posting Whiz in Training
TheBeast32 is offline Offline
236 posts
since Dec 2007
Jan 22nd, 2009
0

Re: Intercept data with WINSOCK

I'm not sure you can put winsock in permiscous mode. I know most sniffers come with like winpcap and what not...
Team Colleague
Reputation Points: 361
Solved Threads: 214
Taboo Programmer
Comatose is offline Offline
2,413 posts
since Dec 2004
Jan 22nd, 2009
1

Re: Intercept data with WINSOCK

I found this http://www.codeproject.com/KB/IP/sniffer.aspx. This is what I wanted to do.
Reputation Points: 79
Solved Threads: 6
Posting Whiz in Training
TheBeast32 is offline Offline
236 posts
since Dec 2007

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: DEV C++ not working
Next Thread in C++ Forum Timeline: Homework Help Cprogramming





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC