1
0
mirror of https://github.com/elisspace/Wakanda-Forever.git synced 2026-08-29 15:44:11 +00:00
Files
Wakanda-Forever/dsc/Lab/UserServer.mof
2022-07-20 00:09:57 -04:00

238 lines
13 KiB
Plaintext

/*
@TargetNode='UserServer'
@GeneratedBy=floki
@GenerationDate=04/28/2022 16:15:04
@GenerationHost=DESKTOP-7485T5P
*/
instance of MSFT_WaitForAll as $MSFT_WaitForAll1ref
{
ResourceID = "[WaitForAll]DC";
NodeName = {
"baku-dc"
};
RetryCount = 15;
SourceInfo = "C:\\Users\\floki\\AWS-RedTeam-ADLab\\dsc\\adlab.ps1::573::9::WaitForAll";
RetryIntervalSec = 60;
ResourceName = "[ADUser]asrep";
ModuleName = "PSDesiredStateConfiguration";
ModuleVersion = "0.0";
ConfigurationName = "Lab";
};
instance of DSC_FirewallProfile as $DSC_FirewallProfile1ref
{
ResourceID = "[FirewallProfile]DisablePublic";
Enabled = "False";
SourceInfo = "C:\\Users\\floki\\AWS-RedTeam-ADLab\\dsc\\adlab.ps1::581::9::FirewallProfile";
Name = "Public";
ModuleName = "NetworkingDsc";
ModuleVersion = "8.2.0";
ConfigurationName = "Lab";
};
instance of DSC_FirewallProfile as $DSC_FirewallProfile2ref
{
ResourceID = "[FirewallProfile]DisablePrivate";
Enabled = "False";
SourceInfo = "C:\\Users\\floki\\AWS-RedTeam-ADLab\\dsc\\adlab.ps1::586::9::FirewallProfile";
Name = "Private";
ModuleName = "NetworkingDsc";
ModuleVersion = "8.2.0";
ConfigurationName = "Lab";
};
instance of DSC_FirewallProfile as $DSC_FirewallProfile3ref
{
ResourceID = "[FirewallProfile]DisableDomain";
Enabled = "False";
SourceInfo = "C:\\Users\\floki\\AWS-RedTeam-ADLab\\dsc\\adlab.ps1::591::9::FirewallProfile";
Name = "Domain";
ModuleName = "NetworkingDsc";
ModuleVersion = "8.2.0";
ConfigurationName = "Lab";
};
instance of MSFT_Credential as $MSFT_Credential1ref
{
Password = "DoesntMatter";
UserName = "admin";
};
instance of MSFT_UserResource as $MSFT_UserResource1ref
{
ResourceID = "[User]localuser";
UserName = "local-user";
Ensure = "Present";
Password = $MSFT_Credential1ref;
SourceInfo = "C:\\Users\\floki\\AWS-RedTeam-ADLab\\dsc\\adlab.ps1::596::9::User";
ModuleName = "PSDesiredStateConfiguration";
ModuleVersion = "0.0";
ConfigurationName = "Lab";
};
instance of MSFT_GroupResource as $MSFT_GroupResource1ref
{
ResourceID = "[Group]Administrators";
MembersToInclude = {
"local-user"
};
SourceInfo = "C:\\Users\\floki\\AWS-RedTeam-ADLab\\dsc\\adlab.ps1::602::9::Group";
GroupName = "Administrators";
ModuleName = "PSDesiredStateConfiguration";
ModuleVersion = "0.0";
DependsOn = {
"[User]localuser"};
ConfigurationName = "Lab";
};
instance of DSC_DnsServerAddress as $DSC_DnsServerAddress1ref
{
ResourceID = "[DnsServerAddress]DnsServerAddress";
Validate = False;
AddressFamily = "IPv4";
SourceInfo = "C:\\Users\\floki\\AWS-RedTeam-ADLab\\dsc\\adlab.ps1::608::9::DnsServerAddress";
Address = {
"10.0.1.100"
};
ModuleName = "NetworkingDsc";
InterfaceAlias = "Ethernet";
ModuleVersion = "8.2.0";
DependsOn = {
"[Group]Administrators"};
ConfigurationName = "Lab";
};
instance of MSFT_ScriptResource as $MSFT_ScriptResource1ref
{
ResourceID = "[Script]DisableDefender";
GetScript = " \n return @{ Result = (Get-Content C:\\Windows\\Temp\\DefenderDisable.txt) } \n ";
TestScript = "\n Test-Path \"C:\\Windows\\Temp\\DefenderDisable.txt\"\n ";
SourceInfo = "C:\\Users\\floki\\AWS-RedTeam-ADLab\\dsc\\adlab.ps1::617::9::Script";
SetScript = "\n Uninstall-WindowsFeature -Name Windows-Defender\n $sw = New-Object System.IO.StreamWriter(\"C:\\Windows\\Temp\\DefenderDisable.txt\")\n $sw.WriteLine(\"Defender has been uninstalled\")\n $sw.Close()\n ";
ModuleName = "PSDesiredStateConfiguration";
ModuleVersion = "0.0";
ConfigurationName = "Lab";
};
instance of MSFT_ScriptResource as $MSFT_ScriptResource2ref
{
ResourceID = "[Script]DisableSMBSign";
GetScript = " \n return @{ } \n ";
TestScript = "\n $false\n ";
SourceInfo = "C:\\Users\\floki\\AWS-RedTeam-ADLab\\dsc\\adlab.ps1::635::9::Script";
SetScript = "\n Set-SmbClientConfiguration -RequireSecuritySignature 0 -EnableSecuritySignature 0 -Confirm -Force\n ";
ModuleName = "PSDesiredStateConfiguration";
ModuleVersion = "0.0";
ConfigurationName = "Lab";
};
instance of MSFT_ScriptResource as $MSFT_ScriptResource3ref
{
ResourceID = "[Script]EnablePSRemoting";
GetScript = " \n return @{ } \n ";
TestScript = "\n $false\n ";
SourceInfo = "bast.landfloki\\AWS-RedTeam-ADLab\\dsc\\adlab.ps1::650::9::Script";
SetScript = "\n Enable-PSRemoting -SkipNetworkProfileCheck -Force -ErrorAction Stop\n ";
ModuleName = "PSDesiredStateConfiguration";
ModuleVersion = "0.0";
ConfigurationName = "Lab";
};
instance of MSFT_Credential as $MSFT_Credential2ref
{
Password = "DoesntMatter";
UserName = "first-admin";
};
instance of MSFT_WaitForADDomain as $MSFT_WaitForADDomain1ref
{
ResourceID = "[WaitForADDomain]waitFirstDomain";
WaitTimeout = bast.land
Credential = $MSFT_Credential2ref;
WaitForValidCredentials = True;
SourceInfo = "C:\\Users\\floki\\AWS-RedTeam-ADLab\\dsc\\adlab.ps1::664::9::WaitForADDomain";
DomainName = "first.local";
ModuleName = "ActiveDirectoryDsc";
ModuleVersion = "6.0.1";
DependsOn = {
"[DnsServerAddress]DnsServerAddress"};
ConfigurationName = "Lab";
};
instance of MSFT_Credential as $MSFT_Credential3ref
{
Password = "DoesntMatter";
UserName = "first-admin";
};
instance of DSC_Computer as $DSC_Computer1ref
{
ResourceID = "[Computer]JoinDomain";
Credential = $MSFT_Credential3ref;
DomainName = "first.local";
SourceInfo = "C:\\Users\\floki\\AWS-RedTeam-ADLab\\dsc\\adlab.ps1::672::9::Computer";
Name = "nakia";
ModuleName = "ComputerManagementDsc";
ModuleVersion = "8.5.0";
DependsOn = {
"[WaitForADDomain]waitFirstDomain"};
ConfigurationName = "Lab";
};
instance of OMI_ConfigurationDocument
{
Version="2.0.0";
MinimumCompatibleVersion = "1.0.0";
CompatibleVersionAdditionalProperties= {"Omi_BaseResource:ConfigurationName"};
Author="floki";
GenerationDate="04/28/2022 16:15:04";
GenerationHost="DESKTOP-7485T5P";
Name="Lab";
};