MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / validatePassword

Function validatePassword

ssh/ssh.ts:127–129  ·  view source on GitHub ↗
(password: string)

Source from the content-addressed store, hash-verified

125 } catch {
126 return await new Promise((resolve) => {
127 const socket = net.createConnection({ host: "127.0.0.1", port });
128 const finish = (inUse: boolean) => {
129 socket.destroy();
130 resolve({
131 inUse,
132 ...(inUse ? { processInfo: "端口被占用 (无法获取进程信息)" } : {}),

Callers 2

changePasswordMethod · 0.85
enableRootAccountMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected