diff --git a/sshChat.mjs b/sshChat.mjs index 449814f..ca74718 100644 --- a/sshChat.mjs +++ b/sshChat.mjs @@ -147,7 +147,7 @@ rl.on('line', input => { let inputdata = input.split(2) const cmdToRun = inputdata.join(" ").replace("> ", "").replace(">", "") if (cmdToRun.includes("cd")) return - runCMD(DAPI_KEY.key, cmdToRun, "/").then((data) => { + runCMD(DAPI_KEY.key, cmdToRun, USERPWD).then((data) => { console.log(data) for (const conn of conns) { conn.write(`${USERNAME} ran ${cmdToRun}: \n` + data)