diff options
author | Florian Pritz <bluewind@xinu.at> | 2024-10-14 21:40:55 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2024-10-14 21:54:03 +0200 |
commit | 76de2bd5d846064b0cf83db07c5a1501b8500254 (patch) | |
tree | b8c246fbb45598218ea22a94b1e77b3ba16fe56b | |
parent | 928a724d8aafce4774bfb76f462e3b72c7906459 (diff) | |
download | bin-76de2bd5d846064b0cf83db07c5a1501b8500254.tar.gz bin-76de2bd5d846064b0cf83db07c5a1501b8500254.tar.xz |
wireshark-remote: Add hostname and filter to window title
Useful if you run multiple traces at the same time
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rwxr-xr-x | wireshark-remote | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/wireshark-remote b/wireshark-remote index 270d139..6b35f7f 100755 --- a/wireshark-remote +++ b/wireshark-remote @@ -13,4 +13,5 @@ fi #wireshark -k -i <(ssh "$host" /home/flo/capture.sh "$iface") #wireshark-gtk -k -i <(ssh "$host" dumpcap -q -P -i "$iface" -w - -f 'not\ port\ 22') +sed -i "s/^gui\.window_title: .*/gui.window_title: $host $iface $filter/" ~/.config/wireshark/preferences wireshark -k -i <(ssh "$host" tcpdump -i "$iface" -w - "'not port 22 $filter'") |