Skip to main content

No project description provided

Project description

JustServer

JustServer is a FastAPI-based service designed to manage multiple justniffer network sniffing instances in a concurrent, secure, and efficient manner. It exposes a simple RESTful interface for starting, stopping, listing, and restarting sniffers across network interfaces.

🚀 Features

  • 🔐 API key protection on all operational routes
  • 🧵 ThreadPoolExecutor for parallel instance handling
  • ⚙️ Dynamic justniffer process spawning with configurable filters and encodings
  • 📦 Built-in lifecycle management using FastAPI's lifespan
  • 💻 Easy process tracking and UUID-based control

📦 API Endpoints

All operational endpoints are secured via the X-API-Key header.

  • POST /start: Launch a new justniffer process
  • POST /stop/{uuid}: Stop a specific sniffer instance
  • POST /stop-all: Stop all running instances
  • POST /restart: Restart with new settings
  • GET /list: List active sniffer processes
  • GET /health: Health check (unauthenticated)

🛠️ Configuration

JustServer uses environment-based configuration via justserver.daemon.settings. Key settings:

  • JUSTSERVER_API_KEY: API key for authentication
  • JUSTSERVER_MAX_INSTANCES: Maximum concurrent sniffer processes
  • JUSTSERVER_JUSTNIFFER_CMD: Base justniffer executable command

🧪 Example Usage

curl -X POST http://localhost:8000/start \
  -H "X-API-Key: your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"interface": "eth0", "filter": "tcp port 80"}'

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

justserver-0.1.43.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

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

justserver-0.1.43-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file justserver-0.1.43.tar.gz.

File metadata

  • Download URL: justserver-0.1.43.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.12.3 Linux/6.8.0-60-generic

File hashes

Hashes for justserver-0.1.43.tar.gz
Algorithm Hash digest
SHA256 69e856f907f06e8864c5a7844677f9e37894f0f0133471e24cb026bad567fdfa
MD5 cfebb89a73227cd943d730244b60222a
BLAKE2b-256 e6ebe3e9426a819a6e2ff87faa54b7b7e4eed49cebb03d7576b3cc8fe548bb39

See more details on using hashes here.

File details

Details for the file justserver-0.1.43-py3-none-any.whl.

File metadata

  • Download URL: justserver-0.1.43-py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.12.3 Linux/6.8.0-60-generic

File hashes

Hashes for justserver-0.1.43-py3-none-any.whl
Algorithm Hash digest
SHA256 8bf8472ae2f5cdb4f68b6e83c251749b54793a55d534a7251bb488c19aa8b481
MD5 d2ed12148999170da8d06bc2cdd8c41a
BLAKE2b-256 000f47f0ee93e865fd1cfa9a47827f6a02552e54115ff16d27cbe35b4f3c87f6

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