This is our old Q&A Site. Please post any new questions and answers at

Hello! I have captured the PPPoE/PPP-Session Packets at my DSL-Router and want to use the .cap file for Trainings. Naturally I want to remove my PAP-ID and Password for Security reasons. How can I edit a .cap-File? I tried the Windows Editor, but it alters something in the file so that Wireshark refuses to open it.

Any suggestions?

asked 01 Aug '13, 02:08

udo229's gravatar image

accept rate: 0%

PCAP files are binary files so you can't edit them with most text editors. Some UNIX/Linux editors like vile (Vi Like Emacs) advertise themselves as being 8-bit clean (so you can edit binary files without destroying them) but still aren't ideal for editing binary files.

A much better solution in the UNIX/Linux (and also Cygwin) worlds is bvi. It is a true hex editor. I've edited PCAP files with it before (with Wireshark running on the side) and it has worked well enough for small changes.

There may be native Windows binary editors but I'm not aware of them.

Wireshark does have some basic/experimental packet editing features but they are not compiled in by default; to get them you would need to compile your own version of Wireshark with the feature enabled.

permanent link

answered 01 Aug '13, 06:16

JeffMorriss's gravatar image

JeffMorriss ♦
accept rate: 27%

Perfect! I found a binary Editor for Windows (FrHed) and it worked out perfect!

Thank You very much!

(01 Aug '13, 06:41) udo229

You can use HxD, a freeware hex editor, to edit capture files. It works fine on Windows.
You can download HxD here.

permanent link

answered 04 Aug '13, 22:45

joke's gravatar image

accept rate: 9%

There is also TraceWrangler, a capture sanitisation tool for pcapng files made by @Jasper. I don't know if it deals with PPP Id's and passwords though.

permanent link

answered 05 Aug '13, 01:49

grahamb's gravatar image

grahamb ♦
accept rate: 22%

no, it does not handle ppp headers yet, but I admit that this question made me look at a trace to see how much work it is :-)

(05 Aug '13, 02:57) Jasper ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 01 Aug '13, 02:08

question was seen: 8,044 times

last updated: 05 Aug '13, 02:57

p​o​w​e​r​e​d by O​S​Q​A