/commands
that takes in an input box that lets you execute commands directly on your server.execFile
or spawn
function from Node's child_process
library to execute the command.ls
, cat
, pwd
.P.S.: The child_process
library also includes a exec
function which takes a string containing the entire command to execute. This potentially may be used to trigger arbitrary command execution, and so, it's a unsafer alternative.