fixing pwd

This commit is contained in:
raven 2023-01-08 23:43:46 -05:00
parent e2ee6d6c11
commit 74ecb69e90

View File

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