clean.sh

postprocessing script - Daniel Clemmensen, 02/24/2019 10:02 am

Download (372 Bytes)

 
1
#! /bin/bash
2
# Copyright (c) 2019 Dan Clemmensen, licensed to you under GPL v3.
3
# 
4
# convert the usbmon cap.pcap file into an IO transaction file.
5
# does not need root privledges 
6
# 
7

    
8
tshark -r cap.pcap -Y usb.device_address==$1 -w capdev$1
9
tshark -r capdev$1 -Tfields -e "_ws.col.Source" -e "_ws.col.Info" -e "usb.capdata" >capdev$1.tsv
10
./tidy <capdev$1.tsv >radiotrace
11

    
prevent spam