Skip to content

vvampirius/http-slave

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

http-slave

This tool designed for remote command execution.

It periodically gets command execution request by HTTP from master server, execute the command and POST response to specified URL.

I used this tool to investigate a problem on remote host which periodically lose VPN connection and became inaccessible from the outside of NAT.

How to use

Start http-slave on slave host:

./http-slave -i 60 -u https://your.domain/example.json

Provide example.json response somehow (nginx?) by master host:

{
    "command": ["/usr/local/bin/http-slave-chekscript.sh"],
    "respond_url": "https://your.domain/response?foo=bar",
    "immediately_next": false
}

Handle somehow POST response from http-slave somewhere.

About

This tool designed for remote command execution

Topics

Resources

License

Stars

Watchers

Forks

Languages