Skip to content

a web-based terminal running in browser that allows you execute commands on server ...

Notifications You must be signed in to change notification settings

Atypicalim/simple-web-terminal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Web Terminal

⚠️ Don't put this program on the server until you know what you're doing, is is not safe!

1. About

Simple Web Terminal is a web-based terminal application, you can run this application on your server then you will be able to execute shell commands or downlaod files from a browser.

tested platforms:

  • ☑ Widnows
  • ☑ mac
  • ☑ linux

2. Usage

there are standalone executable programs provided on the release page, you can download the corresponding one for you platform and double click to start it. then you will see the below log in console:

console

after that you can visit the terminal with your browser :

terminal

3. Commands

the available commands in terminal are:

  • help : print help info

  • stop : kill the application in server

  • save : save the terminal contents in browser

  • exit : close the socket between browser and serwer

  • shell : set/get the current shell

  • coding : set/get the current encoding of output

  • static : jump to the static file server if started

  • scp : upload or downlaod files

download a file from current working directory with scp ./test.txt

uplaod a file to current working directory with scp ./ command

upload

  • vim : simple editor running in web terminal

editor

  • Other shell commands available on your server

4. Arguments

you can give some arguments to customize the tarminal, the supported arguments are :

  • port : terminal server port (default 7777)

  • shell : initial default shell(bash, sh, powershell are supported)

  • coding : initial default encoding of output

  • static : start a static file server (default true)

  • pass : password for web terminal (default no password)

powershell using gbk, without static server, and have password on port 5555:

powershell powershell

5. Links

this application is built with go and javascript. used resources are: