[SOLVED] How to export just source/destination field of pcap file into a plain text file
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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:
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150
Rep:
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.
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150
Rep:
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 :
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.