Files
GhostPack-SharpDPAPI/SharpDPAPI/Program.cs
T
HarmJ0y 6388040a92 1.2.0 release (Troopers edition ;)
-Added remote server support for user triage functions
-Added machine triage (machinemasterkeys, machinecredentials, machinevaults, machinetriage)
-Expanded Vault credential format to handle vault credential clear attributes
-Expanded machine vault/credential search locations
-Broke out commands/files into the same general structure as Rubeus

P.S. this release was a huge PITA, hopefully it's appreciated ;)

Much <3 to @gentilkiwi for his excellent examples, and @tifkin_ for inspiring this work!
2019-03-24 22:12:45 -07:00

39 lines
1.2 KiB
C#

using SharpDPAPI.Domain;
using System;
namespace SharpDPAPI
{
class Program
{
static void Main(string[] args)
{
try
{
Info.Logo();
// try to parse the command line arguments, show usage on failure and then bail
var parsed = ArgumentParser.Parse(args);
if (parsed.ParsedOk == false)
Info.ShowUsage();
else
{
// Try to execute the command using the arguments passed in
var commandName = args.Length != 0 ? args[0] : "";
var commandFound = new CommandCollection().ExecuteCommand(commandName, parsed.Arguments);
// show the usage if no commands were found for the command name
if (commandFound == false)
Info.ShowUsage();
}
}
catch (Exception e)
{
Console.WriteLine("\r\n[!] Unhandled SharpDPAPI exception:\r\n");
Console.WriteLine(e);
}
}
}
}