aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.Frontend/Hacking
diff options
context:
space:
mode:
authorwilliam341 <[email protected]>2017-07-27 20:48:30 -0700
committerwilliam341 <[email protected]>2017-07-27 20:48:30 -0700
commit43d1f1633ad569aec54acd5124cb990f9ef9b6eb (patch)
treed6f83dc50119764a742fb600703b9e725fc14821 /ShiftOS.Frontend/Hacking
parent91dcb1bd895f3c25c4e35a7c9fb587554a071609 (diff)
downloadshiftos_thereturn-43d1f1633ad569aec54acd5124cb990f9ef9b6eb.tar.gz
shiftos_thereturn-43d1f1633ad569aec54acd5124cb990f9ef9b6eb.tar.bz2
shiftos_thereturn-43d1f1633ad569aec54acd5124cb990f9ef9b6eb.zip
derp
Diffstat (limited to 'ShiftOS.Frontend/Hacking')
-rw-r--r--ShiftOS.Frontend/Hacking/HackerTestCommands.cs43
1 files changed, 1 insertions, 42 deletions
diff --git a/ShiftOS.Frontend/Hacking/HackerTestCommands.cs b/ShiftOS.Frontend/Hacking/HackerTestCommands.cs
index a72f267..1b6a1c1 100644
--- a/ShiftOS.Frontend/Hacking/HackerTestCommands.cs
+++ b/ShiftOS.Frontend/Hacking/HackerTestCommands.cs
@@ -10,33 +10,6 @@ namespace ShiftOS.Frontend
{
public static class HackerTestCommands
{
- [Command("lshackables")]
- public static void ListAllHackables()
- {
- foreach(var hackable in Hacking.AvailableToHack)
- {
- Console.WriteLine(hackable.ID + ": " + hackable.FriendlyName);
- }
- }
-
- [Command("lsexploits")]
- public static void ListAllExploits()
- {
- foreach (var exploit in Hacking.AvailableExploits)
- {
- Console.WriteLine(exploit.ID + ": " + exploit.FriendlyName);
- }
- }
-
- [Command("lspayloads")]
- public static void ListAllPayloads()
- {
- foreach (var exploit in Hacking.AvailablePayloads)
- {
- Console.WriteLine(exploit.ID + ": " + exploit.FriendlyName);
- }
- }
-
[Command("lsports")]
public static void ListAllPorts()
{
@@ -46,7 +19,7 @@ namespace ShiftOS.Frontend
}
}
- [Command("describebackable")]
+ [Command("describehackable")]
[RequiresArgument("id")]
public static void DescribeHackable(Dictionary<string, object> args)
{
@@ -85,20 +58,6 @@ namespace ShiftOS.Frontend
Console.WriteLine("Port: " + port.Value.ToString());
Console.WriteLine("Name: " + port.Name);
}
-
- [Command("inithack")]
- [RequiresArgument("id")]
- public static void InitHack(Dictionary<string, object> args)
- {
- string id = args["id"].ToString();
- var hackable = Hacking.AvailableToHack.FirstOrDefault(x => x.ID == id);
- if (hackable == null)
- {
- Console.WriteLine("Hackable not found.");
- return;
- }
- Hacking.InitHack(hackable);
- }
}
}
#endif \ No newline at end of file