CLI: Add warning when installing backdoor on backdoored server (#1705)

This commit is contained in:
catloversg
2024-10-21 10:36:02 +07:00
committed by GitHub
parent 2e6aa8989c
commit 97489629d9

View File

@@ -29,5 +29,12 @@ export function backdoor(args: (string | number | boolean)[], server: BaseServer
);
return;
}
if (server.backdoorInstalled) {
Terminal.warn(
`You have already installed a backdoor on this server. You can check the "Backdoor" status via the "analyze" command.`,
);
}
Terminal.startBackdoor();
}