cflsh

command module
v0.0.0-...-526c290 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2020 License: MIT Imports: 1 Imported by: 0

README

cflsh

CloudFlare Worker Shell

  • Pub-sub command and response over CloudFlare workers using KV pairs
  • Reasonable Command Latency: 3-6 sec
  • Command history in KV buckets
  • One per command output channel.
Usage

Red side client $ ./cflsh red

✔ command: █
Setting up bucket: commandy9CgKEFRoCzxWcwRtD7LcZ
Setting up output bucket: outputy9CgKEFRoCzxWcwRtD7LcZ
Got output: 
`
LICENSE
README.md
cmd
common
`

Blue side client $ ./cflsh blue

Got name of bucket: commandy9CgKEFRoCzxWcwRtD7LcZ
Got payload: ls
Executing command
OK: payload len 58
Setting up response bucket: outputy9CgKEFRoCzxWcwRtD7LcZ

$ ./cflsh buckets

 >> list 
    ... list of command and output buckets
 >> dump 
    ... contents of command and output buckets
Note:

TODO. For now - manually put your CF API key, Email and Account ID in ./common/auth.go:

package common

const (
        ApiKey = "82a0b14145b"
        AccountID = "aeccc94dfbf"
        EmailUser="cl@th.co"
)
Diagram

cflsh

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL