Skip to content

Latest commit

 

History

History
57 lines (51 loc) · 1.45 KB

README.md

File metadata and controls

57 lines (51 loc) · 1.45 KB

web-shell

what is a Web shell?

Powered by

Web Shell Powered by gorilla/websocket, runletapp/go-console and xtermjs/xterm.js. And windows need rprichard/winpty.

Installation

from source code

git clone github.com/jiangklijna/web-shell
cd web-shell
make gen
make

from release

releases

Help

$ web-shell -h
Usage:
  web-shell [-s server mode] [-c client mode]  [-P port] [-u username] [-p password] [-cmd command]

Example:
  web-shell -s -P 2020 -u admin -p admin -cmd bash
  web-shell -c -H 192.168.1.1 -P 2020 -u admin -p admin

Options:
  -C string
        crt file
  -H string
        connect to host (default "127.0.0.1")
  -K string
        key file
  -P string
        listening port (default "2020")
  -RC string
        root crt file
  -c    client mode
  -cmd string
        command cmd or bash
  -cp string
        content path
  -h    this help
  -https
        enable https
  -p string
        password (default "webshell")
  -s    server mode
  -u string
        username (default "admin")
  -v    show version and exit

License

Source code in web-shell is available under the GPL-3.0 License.