This commit is contained in:
william341 2017-07-27 20:48:30 -07:00
parent 91dcb1bd89
commit 43d1f1633a

View file

@ -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