Skip to content

Commit fed4969

Browse files
committed
Updated Commands.cs
1 parent 7f9978b commit fed4969

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

TemplateMod/Commands.cs

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,10 @@ public static bool ExecuteHack(Hacknet.OS os, string[] args)
318318
public static bool DeleteWhitelistDLL(Hacknet.OS os, string[] args)
319319
{
320320
Computer computer = Programs.getComputer(os, args[1]);
321-
computer.deleteFile(os.thisComputer.ip, "authenticator.dll", );
321+
List<int> FolderPath = new List<int>();
322+
FolderPath.Add(5);
323+
Folder folder = computer.files.root.searchForFolder("Whitelist");
324+
folder.files.Remove(folder.files[1]);
322325
return false;
323326
}
324327
public static bool ChangeMusic(Hacknet.OS os, string[] args)
@@ -620,11 +623,13 @@ public static bool AddRestoreCircle(Hacknet.OS os, string[] args)
620623
SFX.addCircle(computer.getScreenSpacePosition(), Utils.AddativeWhite * 0.4f, 70f);
621624
return false;
622625
}
623-
/*public static bool WhitelistBypass(Hacknet.OS os, string[] args)
626+
public static bool WhitelistBypass(Hacknet.OS os, string[] args)
624627
{
625628
Computer computer = Programs.getComputer(os, args[1]);
626-
629+
Folder folder = computer.files.root.searchForFolder("Whitelist");
630+
folder.files.Remove(folder.files[2]);
631+
folder.files.Add(new FileEntry(os.thisComputer.ip, "list.txt"));
627632
return false;
628-
} */
633+
}
629634
}
630635
}

0 commit comments

Comments
 (0)