This wiki has been migrated to and is now deprecated. Please use that site instead.

tektronix2pcap Script

Contributor: Susanne Edlund

A Python script that enables you to view Tektronix .rf5 files in Wireshark. You still need access to the Tektronix hardware, but at least it is better than nothing... The script takes a text file created by Tektronix tool Rec2Ascii, transforms it into a format that text2pcap understands, and applies text2pcap to create the output.

(Note that the current version of Wireshark 0.10.12 can now read at least some .rf5 files directly, so you might not need to use this tool to read them. If you have problems reading .rf5 files, report them to .)

Get Python from if it is not included in your distribution.

Input: A text file created by Tektronix tool Rec2Ascii from a .rf5 file. Output: A pcap file.

To use this script:

1. Open in a text editor and set TEXT2PCAP_PATH to point to your text2pcap (usually the Wireshark top directory).

2. Start C:\K1297\bin\Rec2Ascii.exe on the same computer as the Tektronix is connected to (the software is protected by Hardlock).

3. Follow the instructions. Choose Hex view (and none of the other options) when asked about format.

4. Open a command window or terminal and type

Example: infile.ascii outfile.pcap

<!> Wireshark now reads most rf5 files by itself. See K12 for an explanation.

Back to Scripts

tektronix2pcap (last edited 2008-04-12 17:51:38 by localhost)