Skip to content

Instantly share code, notes, and snippets.

View josh-sw-is-fun's full-sized avatar

josh-sw-is-fun

View GitHub Profile
@josh-sw-is-fun
josh-sw-is-fun / txt2pcap.py
Last active March 6, 2023 21:18 — forked from v3l0c1r4pt0r/txt2pcap.py
Convert DSView TXT dump of USB packet fields into valid PCAP file
#!/usr/bin/env python3
# convert DSView TXT dump of USB packet fields into valid PCAP file
import re
import sys
import struct
import os
from enum import IntEnum
class PCAP_Header():