guzmanbraso / remote-wireshark

Simple script to run wireshark locally getting traffic dump from a remote host through ssh + tcpdump.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

remote-wireshark

Simple script to run wireshark locally getting traffic dump from a remote host through ssh + tcpdump.

Requirements

It assumes you have sudo working on the remote host and passwordless access to tcpdump through sudo.

Usage

./remote-wireshark.sh "[SSH CREDENTIALS AND EXTRA OPTIONS]" "[TCPDUMP EXTRA OPTIONS]"

Examples

Showing web traffic on eth0 for user@host:

./remote-wireshark.sh "user@host" "-i eth0 port 80"

Connecting though a different port to sniff google dns traffic:

./remote-wireshark.sh "-p 9999 user@host" "-i eth1 host 8.8.8.8 or host 8.8.4.4"

About

Simple script to run wireshark locally getting traffic dump from a remote host through ssh + tcpdump.


Languages

Language:Shell 100.0%