Analyze now outputs if a server has a backdoor installed or not

This commit is contained in:
Jeffrey A. Robinson 2022-01-11 13:03:23 -08:00
parent ff2f8849fa
commit b5392df7a9

@ -315,6 +315,7 @@ export class Terminal implements ITerminal {
this.print("Root Access: " + (hasAdminRights ? "YES" : "NO"));
this.print("Can run scripts on this host: " + (hasAdminRights ? "YES" : "NO"));
if (currServ instanceof Server) {
this.print("Backdoor: " + (currServ.backdoorInstalled ? "YES" : "NO"));
const hackingSkill = currServ.requiredHackingSkill;
this.print("Required hacking skill for hack() and backdoor: " + (!isHacknet ? hackingSkill : "N/A"));
const security = currServ.hackDifficulty;