Skip to main content

Initiate wireshark remote capture (SSH or AVM FRITZ!Box)

Project description

GitHub Actions CI Status codecov Status PyPI Version

wireshark_remote - Initiate wireshark remote capture (SSH or AVM FRITZ!Box)

This project provides the wireshark-ssh and wireshark-fritzbox wrapper scripts that simplify executing Wireshark to remotely capture network traffic.

Installation

wireshark_remote (and its dependencies) can be installed from PyPI with: python -m pip install wireshark_remote

In addition the following programs need to be available an in PATH. The corresponding packages have to be installed through your distro's package manager.

wireshark-ssh requires on the host:

  • wireshark
  • ssh

and on the remote machine (besides having an SSH server running):

  • tcpdump
  • sudo (optional)

wireshark-fritzbox requires on the host:

  • wireshark
  • wget

Usage

wireshark-ssh

Usage: wireshark-ssh.py [OPTIONS] HOST [EXPRESSION]...

  Launches wireshark locally and runs tcpdump on the remote [USER@]HOST via
  SSH. An optional tcpdump filter EXPRESSION allows to prefilter the captured
  packets.

Options:
  -i, --interface TEXT  The interface to capture from (default any).
  -s, --sudo            Run tcpdump via sudo.
  --help                Show this message and exit.

The following example shows how to remotely capture DNS network traffic on any interface over SSH (tcpdump is executed with sudo on the remote host):

wireshark-ssh --sudo <user>@<host> port 53

wireshark-fritzbox

Usage: wireshark-fritzbox.py [OPTIONS] [HOST]

  Launches wireshark locally and captures from the AVM FRITZ!Box webinterface.

Options:
  -i, --interface TEXT  The interface to capture from (default 3-0).
  -U, --username TEXT   [required]
  -P, --password TEXT   [required]
  --help                Show this message and exit.

The following example shows how to remotely capture all network traffic on the Routing Interface (3-0) of the AVM FRITZ!Box on fritz.box:

wireshark-fritzbox -U <username> -P <password>

License

This projected is licensed under the terms of the MIT license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wireshark_remote-0.1.1.tar.gz (24.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wireshark_remote-0.1.1-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file wireshark_remote-0.1.1.tar.gz.

File metadata

  • Download URL: wireshark_remote-0.1.1.tar.gz
  • Upload date:
  • Size: 24.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for wireshark_remote-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f8acd75548da7731cd259f99aac53a1a872eccd982c64b9c741e8b8233a3687c
MD5 342e6c144580fe5a27bfe7fe21713959
BLAKE2b-256 f256ac8113e9c4caff414c7e9db28e09f9fe71e8b9a354162badac71461024e6

See more details on using hashes here.

Provenance

The following attestation bundles were made for wireshark_remote-0.1.1.tar.gz:

Publisher: check.yml on fetzerch/wireshark_remote

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file wireshark_remote-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for wireshark_remote-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 956c14f32df28391dac86c2710ddda13e35b307fd318c7d9562580b7be7f6935
MD5 d661681e8a09f698279eb73a2c520b9b
BLAKE2b-256 f9f2c6cbc47b610f3ccc495a89466537910373ce01a6344c46a3b34b04bc28ca

See more details on using hashes here.

Provenance

The following attestation bundles were made for wireshark_remote-0.1.1-py3-none-any.whl:

Publisher: check.yml on fetzerch/wireshark_remote

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page