Skip to main content

A personal HTTP server for serving one-time-use bash scripts

Project description

A personal HTTP server for serving one-time-use bash scripts (think installers)

You know all those docs for cool dev tools that start out by telling you to install their software in one line, like this?

bash <(curl -s http://example.com/install.sh)

I call that a curl bomb… I don’t know if anyone else does.

This script is an HTTP server that will serve that script to a client exactly once and then quit. Yea, you could just use “python -m http.server”, really this is just a bit more than that.

Usage

usage: curlbomb.py [-h] [-k] [-n NUM_GETS] [-p PORT] [--ssl CERTIFICATE] [--mime-type MIME_TYPE] FILE

positional arguments:
  FILE                  File to serve

optional arguments:
  -h, --help            show this help message and exit
  -k, --disable-knock   Don't require authentication (no X-knock header)
                        (default: False)
  -n NUM_GETS           Number of times to serve resource (default: 1)
  -p PORT               TCP port number to use (default: random)
  --ssl CERTIFICATE     Use SSL with the given certificate (default: None)
  --mime-type MIME_TYPE
                        The content type to serve the file as (default:
                        text/plain)

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

curlbomb-1.0.7.tar.gz (6.1 kB view details)

Uploaded Source

File details

Details for the file curlbomb-1.0.7.tar.gz.

File metadata

  • Download URL: curlbomb-1.0.7.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for curlbomb-1.0.7.tar.gz
Algorithm Hash digest
SHA256 f36df41ad1e90c53ee7fb45c53f0c065215d18814a7270c4788b59a90f8d98cb
MD5 a87f761f5ec176ddccaaa90a0f0c3249
BLAKE2b-256 790e97056dfcd86bd12ad2e200b66054529922f4989f8b1f6c748d32bcbaf8ee

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page