tags:

views:

50

answers:

2

Hello, is there a library or a class that would allow me to record on going packets from my computer (which is done on tools such as ETHEREAL[WIRESHARK] & WPE PRO(if you happen to be a gamer). To then resend it on a loop. I'm trying to make a service that would interact with my router on a timely basis. Thanks ;).

A: 

Following clarification that this is for replay of TCP traffic I think your suggested approach is not suitable.

TCP is connection oriented and uses a random sequence number on establishing the connection so replaying the packets from an earlier session won't work.

Martin Smith
Aight, i'm starting to get what you mean but just to clarify, in this case. Why can we replay some saved packets in order to cheat in some games, we use the same packet that does the same thing everytime. Some MMORPG Bots are built around that concept : Emulating player behavior using recorded packets for a set of actions. :/ ???What i want to do with my router is make it Disconect from the internet and reconect a few seconds later in order to change IP's. I Was thinking my approach would work :(.
F.Saad
A: 

If you really want to resend packets from a .pcap file in a loop in C# you can use Pcap.Net.

See Reading packets from a dump file in Pcap.Net tutorial to understand how to read the packets from the .pcap file and Sending Packets in Pcap.Net tutorial to understand how to send the packets.

I hope this would help you.

brickner