A forensic script that can help you to extract mouse movement / click data from usb traffic files.
git clone https://github.com/WangYihang/USB-Mouse-Pcap-Visualizer.gitcd USB-Mouse-Pcap-Visualizer
# Install uv if you haven't already
curl -LsSf https://astral.sh/uv/install.sh | sh
# Install dependencies
uv syncWinodws
Install WireShark and add tshark to your PATH.
Linux (Ubuntu)
sudo apt install tshark$ uv run python usb-mouse-pcap-visualizer.py --help
Usage: usb-mouse-pcap-visualizer.py [OPTIONS]
Options:
-i, --input-file TEXT Path to the input pcap file. [required]
-o, --output-file TEXT
Path to the output csv file. [required]
--help Show this message and exit.uv run python usb-mouse-pcap-visualizer.py -i assets/example/XNUCA/data.pcap -o assets/example/XNUCA/data.csvThe csv file can be visualized by assets/index.html, or try it online.
timestamp,x,y,left_button_holding,right_button_holding
1478943238.284336,0,0,False,False
1478943238.899621,0,0,False,False
1478943238.899621,0,0,False,False
