- Joined
- Mar 27, 2010
- Messages
- 98
- Trophies
- 0
- Location
- Las Vegas, Nevada
- Website
- pokecheats.net
- XP
- 198
- Country
Let's say I have a Windows PC connected to my home Wi-Fi connection, and is setup to share that connection via ethernet to a second router. That second router provides internet to one of my game consoles. Since traffic is being passed through the computer, I can record it with Wireshark just fine.
But has anyone come across any programs/examples for intercepting and modifying live UDP packets? Proxy servers are out of the question, and I'm just looking for a program that will be able to "see" all traffic passing through a specific network interface, similar to Wireshark. I can't setup a spoofed server because there isn't a DNS address for me to spoof, and also because the traffic is peer-to-peer. I've seen some answers on Google that suggest I'd have to code my own program, and will likely need to use something like winpcap. However, this is beyond my capabilities, and I feel like there's probably a simple example out there that I can tweak to do what I want.
Basically, I want to edit all UDP packets that have either length A or length B. For packets with length A, I want to replace a few hundred bytes starting at a specific offset, with the contents of a file. For packets with length B, I want to do the same thing but with a different starting offset.
I'm not trying to do anything fancy here, so I don't have to worry much about speed; from a typical session, I'll see only a few kilobytes of UDP packets (specifically between 200-400) in Wireshark. Only about 2 or 3 of them will actually fit my length criteria for editing.
If this were as easy as simple string or hex data manipulation, I'd be fine. My trouble lies in the complexity of this involving UDP packets running over a live network, which is something I've never dealt with before. I appreciate any and all suggestions.
But has anyone come across any programs/examples for intercepting and modifying live UDP packets? Proxy servers are out of the question, and I'm just looking for a program that will be able to "see" all traffic passing through a specific network interface, similar to Wireshark. I can't setup a spoofed server because there isn't a DNS address for me to spoof, and also because the traffic is peer-to-peer. I've seen some answers on Google that suggest I'd have to code my own program, and will likely need to use something like winpcap. However, this is beyond my capabilities, and I feel like there's probably a simple example out there that I can tweak to do what I want.
Basically, I want to edit all UDP packets that have either length A or length B. For packets with length A, I want to replace a few hundred bytes starting at a specific offset, with the contents of a file. For packets with length B, I want to do the same thing but with a different starting offset.
I'm not trying to do anything fancy here, so I don't have to worry much about speed; from a typical session, I'll see only a few kilobytes of UDP packets (specifically between 200-400) in Wireshark. Only about 2 or 3 of them will actually fit my length criteria for editing.
If this were as easy as simple string or hex data manipulation, I'd be fine. My trouble lies in the complexity of this involving UDP packets running over a live network, which is something I've never dealt with before. I appreciate any and all suggestions.