Jump to content
  • Advertisement
Sign in to follow this  
arbuckle911

listening in on connections - possible?

This topic is 4529 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

as the subject implies, I want to know if it's possible to connect a second program to a port that already has a program on it and be able to modify the data or just pass it on. I know it sounds shifty but I'm just wondering that's all.

Share this post


Link to post
Share on other sites
Advertisement
Yes it is. These programs are generally called packet sniffers and can generally detect any traffic that comes on the local network they are attached to.

Share this post


Link to post
Share on other sites
yeah I basically just want to know what language they are written in and if the functions are already written in say WinSock or it's just pure hacking.

Share this post


Link to post
Share on other sites
Quote:
Original post by arbuckle911
yeah I basically just want to know what language they are written in and if the functions are already written in say WinSock or it's just pure hacking.


The language doesn't matter: it's just a question of calling the appropriate operating system functions. No, I don't think they're written using Winsock -- packets sniffers are written at a lower level than sockets. Is it "pure hacking"? Depends on what you mean by that. All the functions needed exist in the system. It's just a question of knowing how networking really work.

No, we most probably aren't going to teach you how to write one.

Share this post


Link to post
Share on other sites
The knowledge is out there. Either you can use a library such as libpcap, or you can go it alone by putting the interface in promiscuous mode and taking it from there. It requires quite low-level understanding of networking and how it relates to your OS and API, though.

To see what a network sniffer does, try downloading and using the (free) tool "Ethereal" -- it's quite useful!

Share this post


Link to post
Share on other sites
I remember some version of Windows 2000 coming with a network monitoring tool that also sniffed the net.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!