Categorygithub.com/pefish/anywherectl
module
1.2.6
Repository: https://github.com/pefish/anywherectl.git
Documentation: pkg.go.dev

# README

Anywherectl

view examples

Anywherectl is a tool to remote control anything. Enjoy it !!!

Install

go get -u github.com/pefish/anywherectl/...

Quick start

Start Server

anywherectl serve --listener-token=test_token --client-token=test

Start Listener

anywherectl listen --server-token=test_token --server-address=0.0.0.0:8181 --name=pefish --config=/path/to/config/file

Exec "ls" shell

anywherectl --listener-name=pefish --listener-token=token_test --server-token=test --server-address=0.0.0.0:8181 --action=shell --data=ls

Document

doc

Todo and Done

  • REGISTER command (listener -> server)
  • REGISTER_OK command (server -> listener)
  • REGISTER_FAIL command (server -> listener)
  • Heartbeat between server and listeners (server与listener之间的心跳机制)
  • Listener reconnection (listener重连server机制)
  • Shell command
  • Shell command auth between listener and client (listener对client的shell命令的权限校验)
  • Shell command stream (流式shell结果,比如top命令)
  • Chunk transmission (数据量大是需要分chunk传输,才能继续保证tcp连接复用)
  • Download file
  • Upload file
  • Persistent session (可以跟ssh一样持续操作)

Building the source

Building anywherectl requires both a Go (version 1.13 or later). Once the dependencies are installed, run

make

If you want to build binary for any other platform, just do

make build-all

Build docker image

docker build -t pefish/anywherectl:v1.1 .

Security Vulnerabilities

If you discover a security vulnerability, please send an e-mail to [email protected]. All security vulnerabilities will be promptly addressed.

License

This project is licensed under the Apache License.

# Packages

No description provided by the author
No description provided by the author
No description provided by the author