Skip to main content

Listen on a public UNIX socket and log connections to it

Project description

AFUNIXSnoopers

Listen on an AF_UNIX socket and log who connects

Installing

Example systemd unit files and friends are in daemon-files of this repo

  • create a venv, say in ~/.local/var/lib/AFUNIXSnoopers, and source it
  • $ pip install AFUNIXSnoopers
  • place the systemd unit file and shell script into the correct folders, for example I use ~/.local/var/lib/systemd/{etc/user,usr/bin}
  • adjust the WorkingDirectory path in the .service unit if not using ~/.local/var/lib/AFUNIXSnoopers. Snoopers files logs will be stored in here under Snoopers
  • enable / start the template unit with systemctl --user enable --now af-unix-snoopers@my-socket-path where my-socket-path is the path to bind the socket to, with / replaced with - as per systemd unit templating rules

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

afunixsnoopers-1.0.0.tar.gz (39.9 kB view details)

Uploaded Source

Built Distribution

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

afunixsnoopers-1.0.0-py3-none-any.whl (28.2 kB view details)

Uploaded Python 3

File details

Details for the file afunixsnoopers-1.0.0.tar.gz.

File metadata

  • Download URL: afunixsnoopers-1.0.0.tar.gz
  • Upload date:
  • Size: 39.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.2

File hashes

Hashes for afunixsnoopers-1.0.0.tar.gz
Algorithm Hash digest
SHA256 934a5d3b597f1df6968901f10437ed0c5f1ef81712995ac38807ad93b95f600b
MD5 80fa706c8b95fb6608e249de41c75f55
BLAKE2b-256 2c82faf61e0a2ca6516a2775ce6db717b47d0cd74ce52cb27ba191324c8e6260

See more details on using hashes here.

File details

Details for the file afunixsnoopers-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: afunixsnoopers-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 28.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.2

File hashes

Hashes for afunixsnoopers-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 78ba8c6e7e7e8e69b1baa2516b646d2fa054e3d06727a841141535a910015bf0
MD5 d87d4c4b621dd249c696bff4f613153c
BLAKE2b-256 a42b315f7f7be44572f5eccea309f5f9b928f7323c67e91de0f39c492a6041bd

See more details on using hashes here.

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