@@ -22,40 +22,45 @@ public Grunt()
2222 /// <summary>
2323 /// Initializes a new instance of the Grunt class.
2424 /// </summary>
25+ /// <param name="commType">Possible values include: 'HTTP',
26+ /// 'SMB'</param>
2527 /// <param name="dotNetFrameworkVersion">Possible values include:
2628 /// 'Net40', 'Net35', 'NetCore21'</param>
2729 /// <param name="status">Possible values include: 'Uninitialized',
28- /// 'Stage0', 'Stage1', 'Stage2', 'Active', 'Lost', 'Killed'</param>
30+ /// 'Stage0', 'Stage1', 'Stage2', 'Active', 'Lost', 'Killed',
31+ /// 'Disconnected'</param>
2932 /// <param name="integrity">Possible values include: 'Untrusted',
3033 /// 'Low', 'Medium', 'High', 'System'</param>
31- public Grunt ( int ? id = default ( int ? ) , string name = default ( string ) , string originalServerGuid = default ( string ) , string guid = default ( string ) , DotNetVersion ? dotNetFrameworkVersion = default ( DotNetVersion ? ) , int ? listenerId = default ( int ? ) , string covenantIPAddress = default ( string ) , string childGrunts = default ( string ) , bool ? usePipes = default ( bool ? ) , string pipeName = 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 ) )
34+ public Grunt ( int ? id = default ( int ? ) , string name = default ( string ) , string originalServerGuid = default ( string ) , string guid = default ( string ) , string childGrunts = default ( string ) , CommunicationType ? commType = default ( CommunicationType ? ) , string smbPipeName = default ( string ) , int ? listenerId = default ( int ? ) , string covenantIPAddress = default ( string ) , int ? delay = default ( int ? ) , int ? jitter = default ( int ? ) , int ? connectAttempts = default ( int ? ) , 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 ? ) )
3235 {
3336 Id = id ;
3437 Name = name ;
3538 OriginalServerGuid = originalServerGuid ;
3639 Guid = guid ;
37- DotNetFrameworkVersion = dotNetFrameworkVersion ;
40+ ChildGrunts = childGrunts ;
41+ CommType = commType ;
42+ SmbPipeName = smbPipeName ;
3843 ListenerId = listenerId ;
3944 CovenantIPAddress = covenantIPAddress ;
40- ChildGrunts = childGrunts ;
41- UsePipes = usePipes ;
42- PipeName = pipeName ;
4345 Delay = delay ;
4446 Jitter = jitter ;
4547 ConnectAttempts = connectAttempts ;
46- LastCheckIn = lastCheckIn ;
48+ DotNetFrameworkVersion = dotNetFrameworkVersion ;
4749 Status = status ;
4850 Integrity = integrity ;
4951 Process = process ;
5052 UserDomainName = userDomainName ;
5153 UserName = userName ;
5254 IpAddress = ipAddress ;
55+ Hostname = hostname ;
5356 OperatingSystem = operatingSystem ;
5457 GruntSharedSecretPassword = gruntSharedSecretPassword ;
5558 GruntRSAPublicKey = gruntRSAPublicKey ;
5659 GruntNegotiatedSessionKey = gruntNegotiatedSessionKey ;
5760 GruntChallenge = gruntChallenge ;
5861 CookieAuthKey = cookieAuthKey ;
62+ ActivationTime = activationTime ;
63+ LastCheckIn = lastCheckIn ;
5964 CustomInit ( ) ;
6065 }
6166
@@ -77,43 +82,38 @@ public Grunt()
7782 /// <summary>
7883 /// </summary>
7984 [ JsonProperty ( PropertyName = "originalServerGuid" ) ]
80- public string OriginalServerGuid { get ; private set ; }
85+ public string OriginalServerGuid { get ; set ; }
8186
8287 /// <summary>
8388 /// </summary>
8489 [ JsonProperty ( PropertyName = "guid" ) ]
8590 public string Guid { get ; set ; }
8691
8792 /// <summary>
88- /// Gets or sets possible values include: 'Net40', 'Net35', 'NetCore21'
8993 /// </summary>
90- [ JsonProperty ( PropertyName = "dotNetFrameworkVersion" ) ]
91- public DotNetVersion ? DotNetFrameworkVersion { get ; set ; }
92-
93- /// <summary>
94- /// </summary>
95- [ JsonProperty ( PropertyName = "listenerId" ) ]
96- public int ? ListenerId { get ; set ; }
94+ [ JsonProperty ( PropertyName = "childGrunts" ) ]
95+ public string ChildGrunts { get ; set ; }
9796
9897 /// <summary>
98+ /// Gets or sets possible values include: 'HTTP', 'SMB'
9999 /// </summary>
100- [ JsonProperty ( PropertyName = "covenantIPAddress " ) ]
101- public string CovenantIPAddress { get ; set ; }
100+ [ JsonProperty ( PropertyName = "commType " ) ]
101+ public CommunicationType ? CommType { get ; set ; }
102102
103103 /// <summary>
104104 /// </summary>
105- [ JsonProperty ( PropertyName = "childGrunts " ) ]
106- public string ChildGrunts { get ; set ; }
105+ [ JsonProperty ( PropertyName = "smbPipeName " ) ]
106+ public string SmbPipeName { get ; set ; }
107107
108108 /// <summary>
109109 /// </summary>
110- [ JsonProperty ( PropertyName = "usePipes " ) ]
111- public bool ? UsePipes { get ; set ; }
110+ [ JsonProperty ( PropertyName = "listenerId " ) ]
111+ public int ? ListenerId { get ; set ; }
112112
113113 /// <summary>
114114 /// </summary>
115- [ JsonProperty ( PropertyName = "pipeName " ) ]
116- public string PipeName { get ; set ; }
115+ [ JsonProperty ( PropertyName = "covenantIPAddress " ) ]
116+ public string CovenantIPAddress { get ; set ; }
117117
118118 /// <summary>
119119 /// </summary>
@@ -131,13 +131,14 @@ public Grunt()
131131 public int ? ConnectAttempts { get ; set ; }
132132
133133 /// <summary>
134+ /// Gets or sets possible values include: 'Net40', 'Net35', 'NetCore21'
134135 /// </summary>
135- [ JsonProperty ( PropertyName = "lastCheckIn " ) ]
136- public string LastCheckIn { get ; set ; }
136+ [ JsonProperty ( PropertyName = "dotNetFrameworkVersion " ) ]
137+ public DotNetVersion ? DotNetFrameworkVersion { get ; set ; }
137138
138139 /// <summary>
139140 /// Gets or sets possible values include: 'Uninitialized', 'Stage0',
140- /// 'Stage1', 'Stage2', 'Active', 'Lost', 'Killed'
141+ /// 'Stage1', 'Stage2', 'Active', 'Lost', 'Killed', 'Disconnected'
141142 /// </summary>
142143 [ JsonProperty ( PropertyName = "status" ) ]
143144 public GruntStatus ? Status { get ; set ; }
@@ -169,6 +170,11 @@ public Grunt()
169170 [ JsonProperty ( PropertyName = "ipAddress" ) ]
170171 public string IpAddress { get ; set ; }
171172
173+ /// <summary>
174+ /// </summary>
175+ [ JsonProperty ( PropertyName = "hostname" ) ]
176+ public string Hostname { get ; set ; }
177+
172178 /// <summary>
173179 /// </summary>
174180 [ JsonProperty ( PropertyName = "operatingSystem" ) ]
@@ -199,5 +205,15 @@ public Grunt()
199205 [ JsonProperty ( PropertyName = "cookieAuthKey" ) ]
200206 public string CookieAuthKey { get ; set ; }
201207
208+ /// <summary>
209+ /// </summary>
210+ [ JsonProperty ( PropertyName = "activationTime" ) ]
211+ public System . DateTime ? ActivationTime { get ; set ; }
212+
213+ /// <summary>
214+ /// </summary>
215+ [ JsonProperty ( PropertyName = "lastCheckIn" ) ]
216+ public System . DateTime ? LastCheckIn { get ; set ; }
217+
202218 }
203219}
0 commit comments