L3 Networker


Does anyone know of a tool/application I can use to sanitize or remove username/password in a pcap file?

L6 Presenter


tcprewrite from the tcpreplay package can be used to modify the headers (and save into a new pcap) but it doesnt seem to support modifying payload.

Also modifying payload can be tricky since many protocols uses various methods of "encryption" (or rather encoding) - but sure to replace a string with another string "should" be easy (as long as you know the limitations of this) - however I didnt found any good rewriter of the payload stuff yet.

Edit: Some good examples regarding tcprewrite: http://chrissanders.org/2010/12/sanitizing-pcap-files-for-public-distrubution/

Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the Live Community as a whole!

The Live Community thanks you for your participation!