fixing pwd

This commit is contained in:
raven 2023-01-08 23:43:46 -05:00
parent e2ee6d6c11
commit 74ecb69e90
1 changed files with 1 additions and 1 deletions

View File

@ -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)