Skip to content

Instantly share code, notes, and snippets.

View jeffscott-git's full-sized avatar

Jeff_Scott jeffscott-git

View GitHub Profile
@alem0lars
alem0lars / pcap-remove-payload.py
Created July 26, 2017 15:16
Remove payload from a pcap (useful to fully anonymize a pcap)
#! /usr/bin/env python2
from scapy.all import *
import sys
INFILE = sys.argv[1]
OUTFILE = sys.argv[2]
with PcapWriter(OUTFILE) as dest:
with PcapReader(INFILE) as infile: