fixing pwd
This commit is contained in:
parent
e2ee6d6c11
commit
74ecb69e90
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user