This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

Utility to “anonymize” capture files?

1

I often run across capture data that would make excellent teaching aids, but (for obvious reasons) I am not allowed to use "real customer" data for such purposes. Does anyone know of a pcap editor that would allow me to do things like arbitrary search-and-replace of IP/MAC addresses, obfuscate URLs (like changing "GET /real/file/path/here.htm" to "GET /dead/beef/feed/blah.htm", and the like?

I REALLY don't want to break out the old binary file editor...

asked 06 Nov '10, 22:45

wesmorgan1's gravatar image

wesmorgan1
411101221
accept rate: 4%


One Answer:

1

For Ethernet, IP, and TCP portion, you can use "bittwist" The only thing it can't handle is dot1q headers. So for that, I actually just use UltraEdit (or any other hex capable editor) to nuke the dot1q header.

I can't help you on munging the HTTP part, though.

answered 07 Nov '10, 09:06

hansangb's gravatar image

hansangb
7912619
accept rate: 12%

I think bittwiste (note the 'e' at the end) is what Hansang is referring to. See bittwist.sourceforge.net for both Bittwist and Bittwiste information.

I'd avoid a binary file editor, but consider a hex editor - if you don't care about the checksums being recalculated you can do some search/replace operations throughout the trace file and catch the IP addresses embedded past the IP header as well.

(08 Nov '10, 20:14) lchappell ♦