使用caffeinehacker演示应用程序,如何检查我是否以特权应用程序用户身份运行?

时间:2020-02-11 20:58:23

标签: node.js

我知道我可以使用/ health检查流程,但是如何确定应用程序用户?我已经尝试过/ health?cmd =%username%,但看来这不是在Windows上运行

这是我的错误日志:

Error: Command failed: %username%
/bin/sh: 1: %username%: not found

    at checkExecSyncError (child_process.js:607:13)
    at execSync (child_process.js:647:13)
    at Object.exports.evildonkeySync (/app/node_modules/rottendonkey/index.js:4:18)
    at app.get (/app/index.js:47:21)
    at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)
    at next (/app/node_modules/express/lib/router/route.js:137:13)
    at Route.dispatch (/app/node_modules/express/lib/router/route.js:112:3)
    at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)
    at /app/node_modules/express/lib/router/index.js:281:22
    at Function.process_params (/app/node_modules/express/lib/router/index.js:335:12)
    at next (/app/node_modules/express/lib/router/index.js:275:10)
    at cors (/app/node_modules/cors/lib/index.js:188:7)
    at /app/node_modules/cors/lib/index.js:224:17
    at originCallback (/app/node_modules/cors/lib/index.js:214:15)
    at /app/node_modules/cors/lib/index.js:219:13
    at optionsCallback (/app/node_modules/cors/lib/index.js:199:9)

0 个答案:

没有答案