Giter Club home page Giter Club logo

deaddrop's Introduction

Dead Drop

Dead drop is a simple web app that allows you to leave short messages for machines that are deleted immediately after they are read. Below are a few possible use cases for this concept.

  • Kill switch for applications running behind a firewall.
  • Make quick config changes on the go.
  • Tell a firewalled server to open an SSH tunnel to a bridge server or close a tunnel.

Installation

Simply 'git clone' this repo into your web root.

Next in the 'config.php' file add some users to $validCommanders array.

$validCommanders = ['bob']

You can also allow anyone to leave a command be using a '*' instead of an array for valid commanders.

$validCommanders = '*'

Note on Security

This is not intended to be a highly secure messaging service. If you are using shared hosting or are behing a firewall or service that does URL tracking people with be able to see what links you use to send commands and could reproduce or abuse this. You can increase security by enabling .htpasswd in the .htaccess file. Currently this is commented out. After the username and password is set you can access the site programatically with by including the credentials in the url.

Example:

https://[userName]:[passWord]@www.example.com/[user]/get/[bot]

Usage

Create Command

You can create a simple command or an associative command.

Simple command

www.yoursite.com/[user]/set/[bot]/[command]

Response

{'command':[command]}

Associative Command

www.yoursite.com/[user]/set/[bot]/[key]/[content]

Response

{[key]:[content]}

Get Command

You can retrieve a command using this URL structure. Remember the command is immediately deleted once retrieved but history is still available in the logs.

www.yoursite.com/[user]/get/[bot]

Response

{[key]:[content]}

Get Log

Retrieving log of all commands. If there are many commands this could be quite large.

www.yoursite.com/[user]/log/[bot]

Response

[{log entry 1},{log entry 2}, .ect ]

deaddrop's People

Contributors

tboydston avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.