Пример #1
0
 /// <summary>
 /// Initializes a new instance of the Grunt class.
 /// </summary>
 /// <param name="dotNetFrameworkVersion">Possible values include:
 /// 'Net40', 'Net35', 'NetCore21'</param>
 /// <param name="status">Possible values include: 'Uninitialized',
 /// 'Stage0', 'Stage1', 'Stage2', 'Active', 'Lost', 'Killed'</param>
 /// <param name="integrity">Possible values include: 'Untrusted',
 /// 'Low', 'Medium', 'High', 'System'</param>
 public Grunt(int?id = default(int?), string name = default(string), DotNetVersion?dotNetFrameworkVersion = default(DotNetVersion?), int?listenerId = default(int?), string covenantIPAddress = default(string), int?delay = default(int?), int?jitter = default(int?), int?connectAttempts = default(int?), string lastCheckIn = default(string), GruntStatus?status = default(GruntStatus?), IntegrityLevel?integrity = default(IntegrityLevel?), string process = default(string), string userDomainName = default(string), string userName = default(string), string ipAddress = default(string), string operatingSystem = default(string), string gruntSharedSecretPassword = default(string), string gruntRSAPublicKey = default(string), string gruntNegotiatedSessionKey = default(string), string gruntChallenge = default(string), string cookieAuthKey = default(string))
 {
     Id   = id;
     Name = name;
     DotNetFrameworkVersion = dotNetFrameworkVersion;
     ListenerId             = listenerId;
     CovenantIPAddress      = covenantIPAddress;
     Delay                     = delay;
     Jitter                    = jitter;
     ConnectAttempts           = connectAttempts;
     LastCheckIn               = lastCheckIn;
     Status                    = status;
     Integrity                 = integrity;
     Process                   = process;
     UserDomainName            = userDomainName;
     UserName                  = userName;
     IpAddress                 = ipAddress;
     OperatingSystem           = operatingSystem;
     GruntSharedSecretPassword = gruntSharedSecretPassword;
     GruntRSAPublicKey         = gruntRSAPublicKey;
     GruntNegotiatedSessionKey = gruntNegotiatedSessionKey;
     GruntChallenge            = gruntChallenge;
     CookieAuthKey             = cookieAuthKey;
     CustomInit();
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the WscriptLauncher class.
 /// </summary>
 /// <param name="scriptLanguage">Possible values include: 'JScript',
 /// 'VBScript'</param>
 /// <param name="type">Possible values include: 'Wmic', 'Regsvr32',
 /// 'Mshta', 'Cscript', 'Wscript', 'PowerShell', 'Binary', 'MSBuild',
 /// 'InstallUtil'</param>
 /// <param name="dotNetVersion">Possible values include: 'Net35',
 /// 'Net40', 'NetCore31'</param>
 /// <param name="runtimeIdentifier">Possible values include: 'win_x64',
 /// 'win_x86', 'win_arm', 'win_arm64', 'win7_x64', 'win7_x86',
 /// 'win81_x64', 'win81_x86', 'win81_arm', 'win10_x64', 'win10_x86',
 /// 'win10_arm', 'win10_arm64', 'linux_x64', 'linux_musl_x64',
 /// 'linux_arm', 'linux_arm64', 'rhel_x64', 'rhel_6_x64', 'tizen',
 /// 'tizen_4_0_0', 'tizen_5_0_0', 'osx_x64', 'osx_10_10_x64',
 /// 'osx_10_11_x64', 'osx_10_12_x64', 'osx_10_13_x64', 'osx_10_14_x64',
 /// 'osx_10_15_x64'</param>
 /// <param name="outputKind">Possible values include:
 /// 'ConsoleApplication', 'WindowsApplication',
 /// 'DynamicallyLinkedLibrary', 'NetModule', 'WindowsRuntimeMetadata',
 /// 'WindowsRuntimeApplication'</param>
 public WscriptLauncher(ScriptingLanguage?scriptLanguage = default(ScriptingLanguage?), string progId = default(string), string diskCode = default(string), int?id = default(int?), int?listenerId = default(int?), int?implantTemplateId = default(int?), string name = default(string), string description = default(string), LauncherType?type = default(LauncherType?), DotNetVersion?dotNetVersion = default(DotNetVersion?), RuntimeIdentifier?runtimeIdentifier = default(RuntimeIdentifier?), bool?validateCert = default(bool?), bool?useCertPinning = default(bool?), string smbPipeName = default(string), int?delay = default(int?), int?jitterPercent = default(int?), int?connectAttempts = default(int?), System.DateTime?killDate = default(System.DateTime?), string launcherString = default(string), string stagerCode = default(string), OutputKind?outputKind = default(OutputKind?), bool?compressStager = default(bool?))
 {
     ScriptLanguage    = scriptLanguage;
     ProgId            = progId;
     DiskCode          = diskCode;
     Id                = id;
     ListenerId        = listenerId;
     ImplantTemplateId = implantTemplateId;
     Name              = name;
     Description       = description;
     Type              = type;
     DotNetVersion     = dotNetVersion;
     RuntimeIdentifier = runtimeIdentifier;
     ValidateCert      = validateCert;
     UseCertPinning    = useCertPinning;
     SmbPipeName       = smbPipeName;
     Delay             = delay;
     JitterPercent     = jitterPercent;
     ConnectAttempts   = connectAttempts;
     KillDate          = killDate;
     LauncherString    = launcherString;
     StagerCode        = stagerCode;
     OutputKind        = outputKind;
     CompressStager    = compressStager;
     CustomInit();
 }
Пример #3
0
 /// <summary>
 /// Initializes a new instance of the Regsvr32Launcher class.
 /// </summary>
 /// <param name="scriptLanguage">Possible values include: 'JScript',
 /// 'VBScript'</param>
 /// <param name="dotNetFrameworkVersion">Possible values include:
 /// 'Net40', 'Net35', 'NetCore21'</param>
 /// <param name="type">Possible values include: 'Wmic', 'Regsvr32',
 /// 'Mshta', 'Cscript', 'Wscript', 'PowerShell', 'Binary', 'MSBuild',
 /// 'InstallUtil'</param>
 public Regsvr32Launcher(string parameterString = default(string), string dllName = default(string), ScriptingLanguage?scriptLanguage = default(ScriptingLanguage?), string progId = default(string), string diskCode = default(string), int?id = default(int?), int?listenerId = default(int?), string name = default(string), string description = default(string), DotNetVersion?dotNetFrameworkVersion = default(DotNetVersion?), LauncherType?type = default(LauncherType?), int?implantTemplateId = default(int?), bool?validateCert = default(bool?), bool?useCertPinning = default(bool?), string smbPipeName = default(string), int?delay = default(int?), int?jitterPercent = default(int?), int?connectAttempts = default(int?), System.DateTime?killDate = default(System.DateTime?), string launcherString = default(string), string stagerCode = default(string), string base64ILByteString = default(string))
 {
     ParameterString = parameterString;
     DllName         = dllName;
     ScriptLanguage  = scriptLanguage;
     ProgId          = progId;
     DiskCode        = diskCode;
     Id                     = id;
     ListenerId             = listenerId;
     Name                   = name;
     Description            = description;
     DotNetFrameworkVersion = dotNetFrameworkVersion;
     Type                   = type;
     ImplantTemplateId      = implantTemplateId;
     ValidateCert           = validateCert;
     UseCertPinning         = useCertPinning;
     SmbPipeName            = smbPipeName;
     Delay                  = delay;
     JitterPercent          = jitterPercent;
     ConnectAttempts        = connectAttempts;
     KillDate               = killDate;
     LauncherString         = launcherString;
     StagerCode             = stagerCode;
     Base64ILByteString     = base64ILByteString;
     CustomInit();
 }
Пример #4
0
 /// <summary>
 /// Initializes a new instance of the PowerShellLauncher class.
 /// </summary>
 /// <param name="dotNetFrameworkVersion">Possible values include:
 /// 'Net40', 'Net35', 'NetCore21'</param>
 /// <param name="type">Possible values include: 'Wmic', 'Regsvr32',
 /// 'Mshta', 'Cscript', 'Wscript', 'PowerShell', 'Binary', 'MSBuild',
 /// 'InstallUtil'</param>
 /// <param name="outputKind">Possible values include:
 /// 'ConsoleApplication', 'WindowsApplication',
 /// 'DynamicallyLinkedLibrary', 'NetModule', 'WindowsRuntimeMetadata',
 /// 'WindowsRuntimeApplication'</param>
 public PowerShellLauncher(string parameterString = default(string), string powerShellCode = default(string), string encodedLauncherString = default(string), int?id = default(int?), int?listenerId = default(int?), string name = default(string), string description = default(string), DotNetVersion?dotNetFrameworkVersion = default(DotNetVersion?), LauncherType?type = default(LauncherType?), int?implantTemplateId = default(int?), bool?validateCert = default(bool?), bool?useCertPinning = default(bool?), string smbPipeName = default(string), int?delay = default(int?), int?jitterPercent = default(int?), int?connectAttempts = default(int?), System.DateTime?killDate = default(System.DateTime?), string launcherString = default(string), string stagerCode = default(string), string base64ILByteString = default(string), OutputKind?outputKind = default(OutputKind?), bool?compressStager = default(bool?))
 {
     ParameterString       = parameterString;
     PowerShellCode        = powerShellCode;
     EncodedLauncherString = encodedLauncherString;
     Id                     = id;
     ListenerId             = listenerId;
     Name                   = name;
     Description            = description;
     DotNetFrameworkVersion = dotNetFrameworkVersion;
     Type                   = type;
     ImplantTemplateId      = implantTemplateId;
     ValidateCert           = validateCert;
     UseCertPinning         = useCertPinning;
     SmbPipeName            = smbPipeName;
     Delay                  = delay;
     JitterPercent          = jitterPercent;
     ConnectAttempts        = connectAttempts;
     KillDate               = killDate;
     LauncherString         = launcherString;
     StagerCode             = stagerCode;
     Base64ILByteString     = base64ILByteString;
     OutputKind             = outputKind;
     CompressStager         = compressStager;
     CustomInit();
 }
Пример #5
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>
 public Grunt(int?id = default(int?), string name = default(string), string originalServerGuid = default(string), string guid = default(string), IList <string> children = default(IList <string>), CommunicationType?commType = default(CommunicationType?), bool?validateCert = default(bool?), bool?useCertPinning = default(bool?), string smbPipeName = default(string), int?listenerId = default(int?), string covenantIPAddress = default(string), int?delay = default(int?), int?jitterPercent = default(int?), int?connectAttempts = default(int?), System.DateTime?killDate = default(System.DateTime?), DotNetVersion?dotNetFrameworkVersion = default(DotNetVersion?), GruntStatus?status = default(GruntStatus?), IntegrityLevel?integrity = default(IntegrityLevel?), 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), string cookieAuthKey = default(string), System.DateTime?activationTime = default(System.DateTime?), System.DateTime?lastCheckIn = default(System.DateTime?))
 {
     Id   = id;
     Name = name;
     OriginalServerGuid = originalServerGuid;
     Guid                      = guid;
     Children                  = children;
     CommType                  = commType;
     ValidateCert              = validateCert;
     UseCertPinning            = useCertPinning;
     SmbPipeName               = smbPipeName;
     ListenerId                = listenerId;
     CovenantIPAddress         = covenantIPAddress;
     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;
     CookieAuthKey             = cookieAuthKey;
     ActivationTime            = activationTime;
     LastCheckIn               = lastCheckIn;
     CustomInit();
 }
Пример #6
0
 /// <summary>
 /// Initializes a new instance of the ReferenceAssembly class.
 /// </summary>
 /// <param name="dotNetVersion">Possible values include: 'Net35',
 /// 'Net40', 'NetCore31'</param>
 public ReferenceAssembly(int?id = default(int?), string name = default(string), string location = default(string), DotNetVersion?dotNetVersion = default(DotNetVersion?))
 {
     Id            = id;
     Name          = name;
     Location      = location;
     DotNetVersion = dotNetVersion;
     CustomInit();
 }
Пример #7
0
 /// <summary>
 /// Initializes a new instance of the ReferenceAssembly class.
 /// </summary>
 /// <param name="dotNetVersion">Possible values include: 'Net40',
 /// 'Net35', 'NetCore21'</param>
 public ReferenceAssembly(int?id = default(int?), string name = default(string), string location = default(string), DotNetVersion?dotNetVersion = default(DotNetVersion?), IList <ReferenceSourceLibrary> referenceSourceLibraries = default(IList <ReferenceSourceLibrary>), IList <GruntTask> gruntTasks = default(IList <GruntTask>))
 {
     Id                       = id;
     Name                     = name;
     Location                 = location;
     DotNetVersion            = dotNetVersion;
     ReferenceSourceLibraries = referenceSourceLibraries;
     GruntTasks               = gruntTasks;
     CustomInit();
 }
Пример #8
0
 /// <summary>
 /// Initializes a new instance of the Launcher class.
 /// </summary>
 /// <param name="dotNetFrameworkVersion">Possible values include:
 /// 'Net40', 'Net35', 'NetCore21'</param>
 /// <param name="type">Possible values include: 'Wmic', 'Regsvr32',
 /// 'Mshta', 'Cscript', 'Wscript', 'PowerShell', 'Binary', 'MSBuild',
 /// 'InstallUtil'</param>
 public Launcher(int?id = default(int?), int?listenerId = default(int?), DotNetVersion?dotNetFrameworkVersion = default(DotNetVersion?), string launcherString = default(string), LauncherType?type = default(LauncherType?), string name = default(string), string description = default(string), int?delay = default(int?), int?jitter = default(int?), int?connectAttempts = default(int?), string stagerCode = default(string), string base64ILByteString = default(string))
 {
     Id                     = id;
     ListenerId             = listenerId;
     DotNetFrameworkVersion = dotNetFrameworkVersion;
     LauncherString         = launcherString;
     Type                   = type;
     Name                   = name;
     Description            = description;
     Delay                  = delay;
     Jitter                 = jitter;
     ConnectAttempts        = connectAttempts;
     StagerCode             = stagerCode;
     Base64ILByteString     = base64ILByteString;
     CustomInit();
 }
Пример #9
0
 /// <summary>
 /// Initializes a new instance of the Launcher class.
 /// </summary>
 /// <param name="dotNetFrameworkVersion">Possible values include:
 /// 'Net40', 'Net35', 'NetCore21'</param>
 /// <param name="type">Possible values include: 'Wmic', 'Regsvr32',
 /// 'Mshta', 'Cscript', 'Wscript', 'PowerShell', 'Binary', 'MSBuild',
 /// 'InstallUtil'</param>
 /// <param name="commType">Possible values include: 'HTTP',
 /// 'SMB'</param>
 public Launcher(int?id = default(int?), int?listenerId = default(int?), string name = default(string), string description = default(string), DotNetVersion?dotNetFrameworkVersion = default(DotNetVersion?), LauncherType?type = default(LauncherType?), CommunicationType?commType = default(CommunicationType?), bool?validateCert = default(bool?), bool?useCertPinning = default(bool?), string smbPipeName = default(string), int?delay = default(int?), int?jitterPercent = default(int?), int?connectAttempts = default(int?), System.DateTime?killDate = default(System.DateTime?), string launcherString = default(string), string stagerCode = default(string), string base64ILByteString = default(string))
 {
     Id                     = id;
     ListenerId             = listenerId;
     Name                   = name;
     Description            = description;
     DotNetFrameworkVersion = dotNetFrameworkVersion;
     Type                   = type;
     CommType               = commType;
     ValidateCert           = validateCert;
     UseCertPinning         = useCertPinning;
     SmbPipeName            = smbPipeName;
     Delay                  = delay;
     JitterPercent          = jitterPercent;
     ConnectAttempts        = connectAttempts;
     KillDate               = killDate;
     LauncherString         = launcherString;
     StagerCode             = stagerCode;
     Base64ILByteString     = base64ILByteString;
     CustomInit();
 }
Пример #10
0
 /// <summary>
 /// Initializes a new instance of the Regsvr32Launcher class.
 /// </summary>
 /// <param name="scriptLanguage">Possible values include: 'JScript',
 /// 'VBScript'</param>
 /// <param name="dotNetFrameworkVersion">Possible values include:
 /// 'Net40', 'Net35', 'NetCore21'</param>
 /// <param name="type">Possible values include: 'Wmic', 'Regsvr32',
 /// 'Mshta', 'Cscript', 'Wscript', 'PowerShell', 'Binary', 'MSBuild',
 /// 'InstallUtil'</param>
 public Regsvr32Launcher(string parameterString = default(string), string dllName = default(string), ScriptingLanguage?scriptLanguage = default(ScriptingLanguage?), string progId = default(string), string diskCode = default(string), int?id = default(int?), int?listenerId = default(int?), DotNetVersion?dotNetFrameworkVersion = default(DotNetVersion?), string launcherString = default(string), LauncherType?type = default(LauncherType?), string name = default(string), string description = default(string), int?delay = default(int?), int?jitter = default(int?), int?connectAttempts = default(int?), string stagerCode = default(string), string base64ILByteString = default(string))
 {
     ParameterString = parameterString;
     DllName         = dllName;
     ScriptLanguage  = scriptLanguage;
     ProgId          = progId;
     DiskCode        = diskCode;
     Id                     = id;
     ListenerId             = listenerId;
     DotNetFrameworkVersion = dotNetFrameworkVersion;
     LauncherString         = launcherString;
     Type                   = type;
     Name                   = name;
     Description            = description;
     Delay                  = delay;
     Jitter                 = jitter;
     ConnectAttempts        = connectAttempts;
     StagerCode             = stagerCode;
     Base64ILByteString     = base64ILByteString;
     CustomInit();
 }
Пример #11
0
 internal static string ToSerializedValue(this DotNetVersion?value)
 {
     return(value == null ? null : ((DotNetVersion)value).ToSerializedValue());
 }