Skip to content

Commit

Permalink
added firstSeen and Implant_number to engineers to help with tracking…
Browse files Browse the repository at this point in the history
…, also added ability to show/hide fields in the implants table
  • Loading branch information
DragoQCC committed Apr 9, 2023
1 parent 51fad5d commit b3f7812
Show file tree
Hide file tree
Showing 5 changed files with 176 additions and 53 deletions.
2 changes: 1 addition & 1 deletion Engineer/Models/HttpCommModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public override async Task CheckIn()
{
//pick one of the strings in the Urls list and use it for the request
string url = Urls[new Random().Next(Urls.Count)];
// Console.WriteLine("Checking in with " + _client.BaseAddress + url);
//Console.WriteLine("Checking in with " + _client.BaseAddress + url);
var taskReturned = _client.GetAsync(url, HttpCompletionOption.ResponseContentRead); // gets anything waiting at the maanger for us to read, when this happens it triggers the HandleImplant in our TS

if (await Task.WhenAny(taskReturned, Task.Delay(Sleep + 10000)) != taskReturned || taskReturned.Status == TaskStatus.Faulted)
Expand Down
6 changes: 5 additions & 1 deletion HardHatC2Client/Models/Engineer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ namespace HardHatC2Client.Models
{
public class Engineer
{
public EngineerMetadata engineerMetadata { get; set;}
public EngineerMetadata engineerMetadata { get; set;}

public int Number { get; set; }
public string Id { get; set; }
public string Address { get; set; }
public string Hostname { get; set; }
Expand All @@ -20,6 +22,8 @@ public class Engineer
public DateTime LastSeen { get; set; }
public string LastSeenTimer { get; set; }

public DateTime FirstSeen { get; set; }

public string ExternalAddress { get; set; }
public string ConnectionType { get; set; }
public string ManagerName { get; set; }
Expand Down
Loading

0 comments on commit b3f7812

Please sign in to comment.