Skip to main content

Quick and Easy Infrastructure

Project description

tempor

Build Status Coverage Python Version Pypi Version Pypi Downloads Twitter

tempor is a tool used for creating ephemeral infrastructure in the cloud. tempor has the ability to create an arbitrary number of servers via Terraform, ideal for penetration testers and bug hunters.

VPS configuration is performed via Ansible roles after creation. Currently the following roles are executed:

Currently supported Providers and Images:

Image Providers
ArchLinux Linode, Vultr
Centos Stream 9 DigitalOcean, Linode, Vultr
Centos Stream 8 AWS, DigitalOcean, Linode, Vultr
Centos 7 AWS, DigitalOcean, Linode, Vultr
Debian 11 AWS, DigitalOcean, Linode, Vultr
Debian 10 AWS, DigitalOcean, Linode, Vultr
Debian 9 AWS, DigitalOcean, Linode, Vultr
Fedora 35 DigitalOcean, Linode, Vultr
Fedora 34 DigitalOcean, Linode, Vultr
Kali AWS
Ubuntu 21.10 AWS, DigitalOcean, Linode, Vultr
Ubuntu 20.04 AWS, Azure, DigitalOcean, GCP, Linode, Vultr
Ubuntu 18.04 AWS, DigitalOcean, Linode, Vultr

Total Setup Times

# bare setup
tempor -p aws -i ubuntu_20-04 -s -b  10.54s user 1.15s system 26% cpu 44.542 total

# minimal  setup
tempor -p aws -i ubuntu_20-04 -s -m  37.36s user 4.22s system 18% cpu 3:42.71 total
  
# full setup
tempor -p aws -i ubuntu_20-04 -s  96.83s user 15.69s system 22% cpu 8:20.32 total

# teardown
tempor -p aws -i ubuntu_20-04 --teardown  8.25s user 1.15s system 23% cpu 39.431 total

:moneybag: Referrals - Get Free Credit! :moneybag:

Digital Ocean
Vultr
Linode

:heavy_plus_sign: Install :heavy_plus_sign:

python3 -m pip install --user tempor

:wrench: Dependencies :wrench:

tempor runs on arm, aarch64, 386, amd64, (Linux, Android), and Darwin (MacOS X). tempor requires Windows Subsystem for Linux (WSL) for execution on Windows due to the use of fnctl in ansible_runner.

:gear: Configuration :gear:

# ~/.config/tempor/config.yml

providers:
  -
    name: digitalocean
    api_token: API_TOKEN_HERE
  -
    name: linode
    api_token: API_TOKEN_HERE
  -
    name: vultr
    api_token: API_TOKEN_HERE
  -
    name: aws
    api_token:
      region: REGION
      access_key: ACCESS_KEY
      secret_key: SECRET_KEY
  -
    name: gcp
    api_token:
      auth_file: PATH_TO_JSON_AUTH_FILE
      project: PROJECT_NAME
      region: REGION
      zone: ZONE
  -
    name: azure
    api_token:
      subscription_id: SUBSCRIPTION_ID
      client_id: APP_ID
      client_secret: PASSWORD
      tenant_id: TENANT_ID

default: digitalocean

:interrobang: Usage :interrobang:

➜ tempor -h
usage: tempor [-h] [-p PROVIDER] [-c COUNT] [--setup] [--list]
              [--no-config] [--teardown]

optional arguments:
  -h, --help            show this help message and exit
  -p PROVIDER, --provider PROVIDER
                        Specify the Provider Name
  -c COUNT, --count COUNT
                        Number of Images to Create
  --setup               Setup Image(s)
  --list                List Available Images
  --no-config           Leave as a Bare Install
  --teardown            Tear down VPS

➜ tempor --setup
Preparing Configuration...Done.
Creating VPS...Done.
Configuring SSH Keys...Done.

VPS' now available!

ssh nnvnv620

➜ tempor --list
         Active VPS'
┏━━━━━━━━━━┳━━━━━━━━━━━━━━━━┓
┃ VPS Name ┃ IP Address     ┃
┡━━━━━━━━━━╇━━━━━━━━━━━━━━━━┩
│ nnvnv620 │ 178.128.144.45 │
└──────────┴────────────────┘

➜ tempor --teardown
Tearing down...Done.

Inspired by pry0cc/axiom.

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

tempor-0.4.0.tar.gz (152.7 kB view hashes)

Uploaded Source

Built Distribution

tempor-0.4.0-py3-none-any.whl (188.1 kB view hashes)

Uploaded Python 3

Supported by

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