对 Wireshark 完全陌生,想知道如何从我在 Wireshark 上收到的 TCP 数据包中提取数据。
我目前正在使用带有 Grove 传感器的树莓派并获取压力和温度值。我将这些值发送到云中的服务器并且它正在工作。我正在使用wireshark来跟踪数据包。
现在我想从数据包中提取数据(即压力值和温度值)并将它们存储在文件中以供进一步实施。有办法做到吗?如果是,那么有人可以解释一下吗?这会有帮助的。
Thanks.
Most convenient way is saving whole TCP stream into file. Right click on any TCP packet of desired stream, choose "Follow -> TCP stream" and you will see window for managing stream data. You can choose, which data to save (one-direction, or both), which format will be used for output and so on. Check pict below:
The other way is saving data from any packet individually. Since you aren't interested in whole packet, you can select only payload part. Check picture below, where I selected HTTP part of the packet (I marked field with red arrow for clearance). In your case, it will be some field with raw data. Once highlighted the right field, right click on it, choose "copy" and select desired format. Data will be placed into buffer, so you need to paste it into some application. If raw binary is chosen for format, you need application capable of pasting binary data. I use frhed http://frhed.sourceforge.net/en/ for this task.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)