How To Convert .pcap file into Text

On December 9, 2012, in Fedora, Networking & Telecom, OpenBSD, Operating System, Ubuntu, Win7, by anif

Sometimes you want to convert .pcap file from tcpdump or wireshark trace into text file so you can open with any text editor.
To do this conversion you’ll required tshark (If you already install wireshark either for windows or *nix you already have tshark in your computer)

From tshark man page: http://www.wireshark.org/docs/man-pages/tshark.html

TShark is a network protocol analyzer. It lets you capture packet data from a live network, or read packets from a previously saved capture file, either printing a decoded form of those packets to the standard output or writing the packets to a file. TShark‘s native capture file format is libpcap format, which is also the format used by tcpdump and various other tools.

Let’s say you want to convert file testing_diameter.pcap to text file, from Windows CMD or *nix terminal run below command:

tshark -nrĀ testing_diameter.pcap -T text -V > testing_diameter.text

This command will convert full .pcap file include the header into testing_diameter.text

If you only want to convert protocol specified information add -O [protocol] parameter from above command, like below

tshark -nrĀ testing_diameter.pcap -T text -V -O diameter> testing_diameter_only.text


The requested operation requires elevation

On June 17, 2012, in Win7, by anif

Pernah nge-add route command di Windows 7 lewat command prompt dan muncul “The requested operation requires elevation”, sedangkan command route add yang di input sudah benar.

Output diatas muncul karena command prompt yang dibuka tidak menggunakan hak akses Administrator.

Solusinya re-open window command prompt sebagai Administrator, Klik tombol Start di Windows 7 — ketik cmd di Search program and files — klik kanan pada cmd.exe — Run as Administrator.


How to Adding Loopback Network Adapter in Windows 7

On May 27, 2012, in Win7, by anif

We can use loopback interface with GNS3 for learning networking. This article will explain “how to add loopback interface” in Windows 7

1. Click Start Menu and type cmd.exe, then right click cmd.exe and click Run as administrator

Command Prompt