Skip to main content

command-notifier

A very simple command-notification package based on SQS for distributed systems

> Warning: This can be abused to take down your entire infrastructure, gain root access, etc.

Installation

Using PIP via PyPI:

pip install command-notifier

Using PIP via Github:

pip install git+git://github.com/josegonzalez/python-command-notifier.git#egg=command-notifier

Usage

CLI Usage of cn-publish is as follows:

usage: cn-publish [-h] [-a AWS_ACCESS_KEY_ID] [-s AWS_SECRET_ACCESS_KEY]
                  [-c COMMAND] [-r EC2_REGION] [-t SNS_TOPIC]

cn-publish, a tool to publish a command via sns

optional arguments:
  -h, --help            show this help message and exit
  -a AWS_ACCESS_KEY_ID, --aws-access-key-id AWS_ACCESS_KEY_ID
                        AWS Access Key ID
  -s AWS_SECRET_ACCESS_KEY, --aws-secret-access-key AWS_SECRET_ACCESS_KEY
                        AWS Secret Access Key
  -c COMMAND, --command COMMAND
                        Command to publish
  -r EC2_REGION, --ec2-region EC2_REGION
                        EC2 Region
  -t SNS_TOPIC, --sns-topic SNS_TOPIC
                        SNS Topic to publish to

cn-publish is pwnage

CLI Usage of cn-subscribe is as follows:

usage: cn-subscribe [-h] [-a AWS_ACCESS_KEY_ID] [-s AWS_SECRET_ACCESS_KEY]
                    [-c COMMAND_FILE] [-r EC2_REGION] [-t SNS_TOPIC]
                    [-w SNS_WAIT_TIME_SECONDS] [-q SQS_QUEUE]

cn-subscribe, a tool to run commands published from sqs

optional arguments:
  -h, --help            show this help message and exit
  -a AWS_ACCESS_KEY_ID, --aws-access-key-id AWS_ACCESS_KEY_ID
                        AWS Access Key ID
  -s AWS_SECRET_ACCESS_KEY, --aws-secret-access-key AWS_SECRET_ACCESS_KEY
                        AWS Secret Access Key
  -c COMMAND_FILE, --command-file COMMAND_FILE
                        Path to json file with whitelisted commands
  -r EC2_REGION, --ec2-region EC2_REGION
                        EC2 Region
  -t SNS_TOPIC, --sns-topic SNS_TOPIC
                        SNS Topic to subscribe to
  -w SNS_WAIT_TIME_SECONDS, --sns-wait-time-seconds SNS_WAIT_TIME_SECONDS
                        SNS Wait Time in Seconds
  -q SQS_QUEUE, --sqs-queue SQS_QUEUE
                        SQS Queue to utilize to

cn-subscribe is pwnage

You can also use the equivalent environment variables in place of command arguments.

Metadata

Release files for command-notifier 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for command-notifier 0.0.3
File Size Uploaded Provenance Actions
command-notifier-0.0.3.tar.gz 5.5 kB Without provenance Details for command-notifier-0.0.3.tar.gz

Release files / command-notifier-0.0.3.tar.gz

Download URL command-notifier-0.0.3.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
6a55c9c09c627cab2aabdea2156856f45d3121c35ff33772c72062e0c9a02376
BLAKE2b-256 checksum
How to use checksums
594c11db19e6db8da96c599fd56d11b1a2555b46ce507d8b16dc4bf27917b2f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for command-notifier 0.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.3 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page