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.2.tar.gz (24.2 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.2-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wireshark_remote-0.1.2.tar.gz
  • Upload date:
  • Size: 24.2 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.2.tar.gz
Algorithm Hash digest
SHA256 1570b21c0b341447d63566c4de22055136424e1273ce9db1eb74d681e42bfd5c
MD5 c1c50f6620ee9ae854152cc9420d3683
BLAKE2b-256 6e9b15d392f0154c37b99683ef259955e26bd267b3d265d5b5e1a7588f54b67b

See more details on using hashes here.

Provenance

The following attestation bundles were made for wireshark_remote-0.1.2.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.2-py3-none-any.whl.

File metadata

File hashes

Hashes for wireshark_remote-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d1cec2a24d82ec0e9f936786a93205263dfc741b4a27693c9f159a1920726689
MD5 9cefa4768c3364c0d5cb503a4a604d37
BLAKE2b-256 6f7a124f5c63cc2213f2ee3b65f1badfe2b745c3603c7e43f2093cd66f053234

See more details on using hashes here.

Provenance

The following attestation bundles were made for wireshark_remote-0.1.2-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