https://github.com/vvampirius/http-slave
This tool designed for remote command execution
https://github.com/vvampirius/http-slave
remote-command-execution
Last synced: about 2 months ago
JSON representation
This tool designed for remote command execution
- Host: GitHub
- URL: https://github.com/vvampirius/http-slave
- Owner: vvampirius
- License: mit
- Created: 2022-10-18T19:44:17.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-19T13:52:58.000Z (over 2 years ago)
- Last Synced: 2025-02-10T04:30:41.062Z (3 months ago)
- Topics: remote-command-execution
- Language: Go
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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.