Introduction
Through various packet capture tools, we can capture various network packets such as tcp, udp, and usb for testing or monitoring purposes.Sometimes, however, we feel the need to reuse these captured packet data for testing.
This article is about this need.
How to reuse captured packets at the testing level.
What is the goal?
The goal is to reuse(playback) the captured message packets and send the test packets to the target system.What is the problem?
As we can easily guess, there are two problems with reusing captured packets.First, most captured packet data is hard to use right away. That means, you have to modify the data value a bit to make it actually available.
Second, it is not easy to modify these data.
Example of modification
- Find the specific packet you want to reuse in a large number of captured data packets
- Again, find and edit the data at the specific location in the packet.
There are very few tools that support user-friendly and easy data editing, especially for the second issue.
What do we need?
1. You should be able to easily check and edit captured data on the GUI.2. The best option would be to view the data you want to edit in a structured format.
What is the solution?
1. If you are familiar with hex data processing or command line based or if you do not have a lot of work, you can achieve that goal through open source such as tcpreply or wireshark.2. However, if you need to do this for more than a few hours, you can achieve your goals more efficiently and easily with Newronz(www.newronz.com).
4 steps for replaying the captured packets
1. Define the structure of the message packet to be reused in the GUI
2. Extract the corresponding message packet from the pre-captured PCap file
4. Send the message packet
Watch next video for all steps.
That's it. Now, we are able to reuse the captured tcp packets at the testing level.
(Newronz is free for personal use and open source projects.)
Comments
Post a Comment