Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the ImplantTemplate class.
 /// </summary>
 /// <param name="language">Possible values include: 'CSharp'</param>
 /// <param name="commType">Possible values include: 'HTTP',
 /// 'SMB'</param>
 public ImplantTemplate(int?id = default(int?), string name = default(string), string description = default(string), ImplantLanguage?language = default(ImplantLanguage?), CommunicationType?commType = default(CommunicationType?), string stagerCode = default(string), string executorCode = default(string))
 {
     Id           = id;
     Name         = name;
     Description  = description;
     Language     = language;
     CommType     = commType;
     StagerCode   = stagerCode;
     ExecutorCode = executorCode;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the ReferenceSourceLibrary class.
 /// </summary>
 /// <param name="language">Possible values include: 'CSharp'</param>
 public ReferenceSourceLibrary(int?id = default(int?), string name = default(string), string description = default(string), string location = default(string), ImplantLanguage?language = default(ImplantLanguage?), IList <DotNetVersion?> compatibleDotNetVersions = default(IList <DotNetVersion?>), IList <ReferenceAssembly> referenceAssemblies = default(IList <ReferenceAssembly>), IList <EmbeddedResource> embeddedResources = default(IList <EmbeddedResource>))
 {
     Id          = id;
     Name        = name;
     Description = description;
     Location    = location;
     Language    = language;
     CompatibleDotNetVersions = compatibleDotNetVersions;
     ReferenceAssemblies      = referenceAssemblies;
     EmbeddedResources        = embeddedResources;
     CustomInit();
 }
Beispiel #3
0
 /// <summary>
 /// Initializes a new instance of the ImplantTemplate class.
 /// </summary>
 /// <param name="language">Possible values include: 'CSharp'</param>
 /// <param name="commType">Possible values include: 'HTTP', 'SMB',
 /// 'Bridge'</param>
 /// <param name="implantDirection">Possible values include: 'Push',
 /// 'Pull'</param>
 public ImplantTemplate(int?id = default(int?), string name = default(string), string description = default(string), ImplantLanguage?language = default(ImplantLanguage?), CommunicationType?commType = default(CommunicationType?), ImplantDirection?implantDirection = default(ImplantDirection?), IList <ListenerType> compatibleListenerTypes = default(IList <ListenerType>), string stagerCode = default(string), string executorCode = default(string))
 {
     Id                      = id;
     Name                    = name;
     Description             = description;
     Language                = language;
     CommType                = commType;
     ImplantDirection        = implantDirection;
     CompatibleListenerTypes = compatibleListenerTypes;
     StagerCode              = stagerCode;
     ExecutorCode            = executorCode;
     CustomInit();
 }
Beispiel #4
0
 /// <summary>
 /// Initializes a new instance of the GruntTask class.
 /// </summary>
 /// <param name="language">Possible values include: 'CSharp'</param>
 public GruntTask(string name, int?id = default(int?), IList <string> alternateNames = default(IList <string>), string description = default(string), string help = default(string), ImplantLanguage?language = default(ImplantLanguage?), string code = default(string), bool?compiled = default(bool?), IList <ReferenceSourceLibrary> referenceSourceLibraries = default(IList <ReferenceSourceLibrary>), IList <ReferenceAssembly> referenceAssemblies = default(IList <ReferenceAssembly>), IList <EmbeddedResource> embeddedResources = default(IList <EmbeddedResource>), bool?unsafeCompile = default(bool?), bool?tokenTask = default(bool?), IList <GruntTaskOption> options = default(IList <GruntTaskOption>))
 {
     Id                       = id;
     Name                     = name;
     AlternateNames           = alternateNames;
     Description              = description;
     Help                     = help;
     Language                 = language;
     Code                     = code;
     Compiled                 = compiled;
     ReferenceSourceLibraries = referenceSourceLibraries;
     ReferenceAssemblies      = referenceAssemblies;
     EmbeddedResources        = embeddedResources;
     UnsafeCompile            = unsafeCompile;
     TokenTask                = tokenTask;
     Options                  = options;
     CustomInit();
 }
Beispiel #5
0
 /// <summary>
 /// Initializes a new instance of the GruntTask class.
 /// </summary>
 /// <param name="language">Possible values include: 'CSharp'</param>
 /// <param name="taskingType">Possible values include: 'Assembly',
 /// 'SetDelay', 'SetJitter', 'SetConnectAttempts', 'SetKillDate',
 /// 'Exit', 'Connect', 'Disconnect', 'Tasks', 'TaskKill'</param>
 public GruntTask(string name, int?id = default(int?), int?authorId = default(int?), GruntTaskAuthor author = default(GruntTaskAuthor), IList <string> aliases = default(IList <string>), string description = default(string), string help = default(string), ImplantLanguage?language = default(ImplantLanguage?), IList <DotNetVersion?> compatibleDotNetVersions = default(IList <DotNetVersion?>), string code = default(string), bool?compiled = default(bool?), GruntTaskingType?taskingType = default(GruntTaskingType?), IList <ReferenceSourceLibrary> referenceSourceLibraries = default(IList <ReferenceSourceLibrary>), IList <ReferenceAssembly> referenceAssemblies = default(IList <ReferenceAssembly>), IList <EmbeddedResource> embeddedResources = default(IList <EmbeddedResource>), bool?unsafeCompile = default(bool?), bool?tokenTask = default(bool?), IList <GruntTaskOption> options = default(IList <GruntTaskOption>))
 {
     Id          = id;
     AuthorId    = authorId;
     Author      = author;
     Name        = name;
     Aliases     = aliases;
     Description = description;
     Help        = help;
     Language    = language;
     CompatibleDotNetVersions = compatibleDotNetVersions;
     Code        = code;
     Compiled    = compiled;
     TaskingType = taskingType;
     ReferenceSourceLibraries = referenceSourceLibraries;
     ReferenceAssemblies      = referenceAssemblies;
     EmbeddedResources        = embeddedResources;
     UnsafeCompile            = unsafeCompile;
     TokenTask = tokenTask;
     Options   = options;
     CustomInit();
 }
Beispiel #6
0
 /// <summary>
 /// Initializes a new instance of the Grunt class.
 /// </summary>
 /// <param name="commType">Possible values include: 'HTTP',
 /// 'SMB'</param>
 /// <param name="dotNetFrameworkVersion">Possible values include:
 /// 'Net40', 'Net35', 'NetCore21'</param>
 /// <param name="status">Possible values include: 'Uninitialized',
 /// 'Stage0', 'Stage1', 'Stage2', 'Active', 'Lost', 'Killed',
 /// 'Disconnected'</param>
 /// <param name="integrity">Possible values include: 'Untrusted',
 /// 'Low', 'Medium', 'High', 'System'</param>
 /// <param name="language">Possible values include: 'CSharp'</param>
 public Grunt(string name, string originalServerGuid, CommunicationType commType, bool validateCert, bool useCertPinning, string smbPipeName, int delay, int jitterPercent, int connectAttempts, System.DateTime killDate, DotNetVersion dotNetFrameworkVersion, GruntStatus status, IntegrityLevel integrity, int?id = default(int?), string guid = default(string), IList <string> children = default(IList <string>), ImplantLanguage?language = default(ImplantLanguage?), int?listenerId = default(int?), Listener listener = default(Listener), string note = default(string), string process = default(string), string userDomainName = default(string), string userName = default(string), string ipAddress = default(string), string hostname = default(string), string operatingSystem = default(string), string gruntSharedSecretPassword = default(string), string gruntRSAPublicKey = default(string), string gruntNegotiatedSessionKey = default(string), string gruntChallenge = default(string), System.DateTime?activationTime = default(System.DateTime?), System.DateTime?lastCheckIn = default(System.DateTime?), string powerShellImport = default(string), IList <GruntCommand> gruntCommands = default(IList <GruntCommand>))
 {
     Id   = id;
     Name = name;
     OriginalServerGuid = originalServerGuid;
     Guid                      = guid;
     Children                  = children;
     CommType                  = commType;
     ValidateCert              = validateCert;
     UseCertPinning            = useCertPinning;
     SmbPipeName               = smbPipeName;
     Language                  = language;
     ListenerId                = listenerId;
     Listener                  = listener;
     Note                      = note;
     Delay                     = delay;
     JitterPercent             = jitterPercent;
     ConnectAttempts           = connectAttempts;
     KillDate                  = killDate;
     DotNetFrameworkVersion    = dotNetFrameworkVersion;
     Status                    = status;
     Integrity                 = integrity;
     Process                   = process;
     UserDomainName            = userDomainName;
     UserName                  = userName;
     IpAddress                 = ipAddress;
     Hostname                  = hostname;
     OperatingSystem           = operatingSystem;
     GruntSharedSecretPassword = gruntSharedSecretPassword;
     GruntRSAPublicKey         = gruntRSAPublicKey;
     GruntNegotiatedSessionKey = gruntNegotiatedSessionKey;
     GruntChallenge            = gruntChallenge;
     ActivationTime            = activationTime;
     LastCheckIn               = lastCheckIn;
     PowerShellImport          = powerShellImport;
     GruntCommands             = gruntCommands;
     CustomInit();
 }
Beispiel #7
0
 internal static string ToSerializedValue(this ImplantLanguage?value)
 {
     return(value == null ? null : ((ImplantLanguage)value).ToSerializedValue());
 }