How to export just source/destination field of pcap file into a plain text file
I have a pcap file which I want to extract specific fields into a text file.
for example I need to extract source and destination IP field from a pcap file into a file like bellow: Code:
1079733053 453496064 |
Take a look at awk.
P.S. Might have been helpful to include a sample of the source file you are trying to manipulate, asnot everyone will know the format of a pcap file. |
Following link is pcap format, http://wiki.wireshark.org/Development/LibpcapFileFormat.
In packet data section, it should be normal Ethernet format. |
Really doesn't help, I'm not going to spend a couple of hours trying to sort out the various fields from the data structures because you can't be bothered just to attatch an example file like you was asked for, I am just getting so fed up with peolple on these forums wanting it all done for them, they can't even be bothered to supply data and info they have been asked for by the people that they expect to help them.
I am un subscribing from this thread, good luck! |
Dear Keith Hedger
Tnx to answer Maybe I am still working on ur answer and I have not obtain any results. Maybe if I got answer I tell ur answer was helpful. |
I've employ wireshark to open pcap files and then export it as "plain text" file and then in packet format option I unchecked packet detailed.
The result file was as follow : Quote:
To select source IP and destination IP I employed the bellow command: Quote:
|
All times are GMT -5. The time now is 12:25 PM. |