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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -29,5 +29,12 @@ export function backdoor(args: (string | number | boolean)[], server: BaseServer
); );
return; 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(); Terminal.startBackdoor();
} }