Windows NT KAMIDAKI 10.0 build 19045 (Windows 10) AMD64
Apache/2.4.58 (Win64) OpenSSL/3.1.3 PHP/8.3.9
Server IP : 192.168.3.16 & Your IP : 216.73.216.140
Domains :
Cant Read [ /etc/named.conf ]
User : SISTEMA
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
C: /
Windows /
diagnostics /
system /
Audio /
Delete
Unzip
Name
Size
Permission
Date
Action
en-US
[ DIR ]
drwxrwxrwx
2023-03-23 12:54
pt-BR
[ DIR ]
drwxrwxrwx
2019-12-07 15:53
AudioDiagnosticSnapIn.dll
17.5
KB
-rw-rw-rw-
2019-12-07 10:09
AudioDiagnosticUtil.dll
13
KB
-rw-rw-rw-
2019-12-07 10:09
CL_AudioDiagnosticSnapIn.ps1
1.11
KB
-rw-rw-rw-
2019-12-07 10:09
CL_Invocation.ps1
1
KB
-rw-rw-rw-
2019-12-07 10:09
CL_LoadAssembly.ps1
610
B
-rw-rw-rw-
2019-12-07 10:09
CL_RunDiagnosticScript.ps1
384
B
-rw-rw-rw-
2019-12-07 10:09
CL_Utility.ps1
218.71
KB
-rw-rw-rw-
2019-12-07 10:09
DiagPackage.diagpkg
29.18
KB
-rw-rw-rw-
2019-12-07 10:09
DiagPackage.dll
172
KB
-rw-rw-rw-
2019-12-07 10:09
MF_AudioDiagnostic.ps1
11.38
KB
-rw-rw-rw-
2019-12-07 10:09
RS_APOLoadFailure.ps1
1.6
KB
-rw-rw-rw-
2019-12-07 10:09
RS_AudioService.ps1
2.5
KB
-rw-rw-rw-
2019-12-07 10:09
RS_AudioServiceResponse.ps1
2.65
KB
-rw-rw-rw-
2019-12-07 10:09
RS_ChangeVolume.ps1
1.96
KB
-rw-rw-rw-
2019-12-07 10:09
RS_EnableInCPL.ps1
1.19
KB
-rw-rw-rw-
2019-12-07 10:09
RS_HDAudioDriver.ps1
6.96
KB
-rw-rw-rw-
2019-12-07 10:09
RS_NotDefault.ps1
6.59
KB
-rw-rw-rw-
2019-12-07 10:09
RS_SamplingRate.ps1
1.29
KB
-rw-rw-rw-
2019-12-07 10:09
RS_Unmute.ps1
1.22
KB
-rw-rw-rw-
2019-12-07 10:09
TS_APOLoadFailure.ps1
4.99
KB
-rw-rw-rw-
2019-12-07 10:09
TS_AudioDeviceDriver.ps1
1.78
KB
-rw-rw-rw-
2019-12-07 10:09
TS_AudioService.ps1
1.59
KB
-rw-rw-rw-
2019-12-07 10:09
TS_AudioServiceResponse.ps1
15.23
KB
-rw-rw-rw-
2019-12-07 10:09
TS_DisabledInCPL.ps1
2.48
KB
-rw-rw-rw-
2019-12-07 10:09
TS_HDAudioDriver.ps1
1.92
KB
-rw-rw-rw-
2019-12-07 10:09
TS_LowVolume.ps1
2.39
KB
-rw-rw-rw-
2019-12-07 10:09
TS_Mute.ps1
1.48
KB
-rw-rw-rw-
2019-12-07 10:09
TS_NotDefault.ps1
3.11
KB
-rw-rw-rw-
2019-12-07 10:09
TS_SamplingRate.ps1
1.55
KB
-rw-rw-rw-
2019-12-07 10:09
TS_UnpluggedIn.ps1
1.94
KB
-rw-rw-rw-
2019-12-07 10:09
VF_HDAudioDriver.ps1
2.85
KB
-rw-rw-rw-
2019-12-07 10:09
VF_LowVolume.ps1
1.68
KB
-rw-rw-rw-
2019-12-07 10:09
Save
Rename
# Copyright � 2015, Microsoft Corporation. All rights reserved. # :: ======================================================= :: <# DESCRIPTION: RS_NotDefault sets the given audio device to default. ARGUMENTS: $deviceID: ID of the audio device which needs to be set default. RETURNS: None FUNCTIONS: Get-DefaultEndpoint #> #==================================================================================== # Initialize #==================================================================================== PARAM($deviceID) Import-LocalizedData -BindingVariable localizationString -FileName CL_LocalizationData #==================================================================================== # Load Utilities #==================================================================================== . .\CL_Utility.ps1 #================================================================================== # Functions #================================================================================== Function Get-DefaultEndpoints() { <# .DESCRIPTION Function to get path of default Audio endpoints .PARAMETER None .OUTPUTS Array of registry path of audio endpoints #> $endpointKeys = @() # Checking the registry paths for Audio Render and Capture... $registryPathRender = "HKLM:\Software\Microsoft\Windows\Currentversion\MMDevices\Audio\Render\" $registryPathCapture = "HKLM:\Software\Microsoft\Windows\Currentversion\MMDevices\Audio\Capture\" $registryPaths = @($registryPathRender,$registryPathCapture) $regRoleKeys = @("Role:0","Role:1","Role:2","Level:0","Level:1","Level:2") foreach($regPath in $registryPaths) { $allSubKeys = Get-ChildItem $regPath foreach($subkey in $allSubKeys) { $keyName = $subkey.name $keyName = "Registry::$keyName" foreach($roleKey in $regRoleKeys) { $resultKey = Get-ItemProperty -Path $keyName -Name $roleKey -ErrorAction SilentlyContinue if($resultKey) { if(!($endpointKeys -Contains $keyName)) { $endpointKeys += $keyName } } } } } return $endpointKeys } Function Set-RegPermisssion([string]$regPath) { <# .DESCRIPTION Function to set audio endpoint path registry permission to change .PARAMETER String containing registry path of audio endpoint .OUTPUTS None #> $definition = @" using System; using System.Runtime.InteropServices; public class AdjPriv { [DllImport("advapi32.dll", ExactSpelling = true, SetLastError = true)] internal static extern bool AdjustTokenPrivileges(IntPtr htok, bool disall, ref TokPriv1Luid newst, int len, IntPtr prev, IntPtr rele); [DllImport("advapi32.dll", ExactSpelling = true, SetLastError = true)] internal static extern bool OpenProcessToken(IntPtr h, int acc, ref IntPtr phtok); [DllImport("advapi32.dll", SetLastError = true)] internal static extern bool LookupPrivilegeValue(string host, string name, ref long pluid); [StructLayout(LayoutKind.Sequential, Pack = 1)] internal struct TokPriv1Luid { public int Count; public long Luid; public int Attr; } internal const int SE_PRIVILEGE_ENABLED = 0x00000002; internal const int TOKEN_QUERY = 0x00000008; internal const int TOKEN_ADJUST_PRIVILEGES = 0x00000020; public static bool EnablePrivilege(long processHandle, string privilege) { TokPriv1Luid tp; IntPtr hproc = new IntPtr(processHandle); IntPtr htok = IntPtr.Zero; if (!OpenProcessToken(hproc, TOKEN_ADJUST_PRIVILEGES | TOKEN_QUERY, ref htok)) { return false; } tp.Count = 1; tp.Luid = 0; tp.Attr = SE_PRIVILEGE_ENABLED; if (!LookupPrivilegeValue(null, privilege, ref tp.Luid)) { return false; } if (!AdjustTokenPrivileges(htok, false, ref tp, 0, IntPtr.Zero, IntPtr.Zero)) { return false; } return true; } } "@ $ProcessHandle = (Get-Process -id $pid).Handle $type = Add-Type $definition -PassThru try { # Enable SeTakeOwnershipPrivilege $type[0]::EnablePrivilege($processHandle, 'SeTakeOwnershipPrivilege') $key = [Microsoft.Win32.Registry]::LocalMachine.OpenSubKey($regPath, [Microsoft.Win32.RegistryKeyPermissionCheck]::ReadWriteSubTree,[System.Security.AccessControl.RegistryRights]::takeownership) $acl = $key.GetAccessControl() $acl.SetOwner([System.Security.Principal.NTAccount]"Administrators") $key.SetAccessControl($acl) $key = [Microsoft.Win32.Registry]::LocalMachine.OpenSubKey($regPath,[Microsoft.Win32.RegistryKeyPermissionCheck]::ReadWriteSubTree,[System.Security.AccessControl.RegistryRights]::ChangePermissions) $acl = $key.GetAccessControl() $rule = New-Object System.Security.AccessControl.RegistryAccessRule ("BUILTIN\Administrators","FullControl","Allow") $acl.SetAccessRule($rule) $key.SetAccessControl($acl) } catch [System.Exception] { Write-ExceptionTelemetry "Set-RegPermission" $_ } } Function Remove-RegKey([string]$path) { <# .DESCRIPTION Function to remove role key of default Audio endpoints .PARAMETER String containing registry path of Audio endpoints .OUTPUTS None #> $regRoleKeys = @("Role:0","Role:1","Role:2","Level:0","Level:1","Level:2") foreach($roleKey in $regRoleKeys) { Remove-ItemProperty -Path $path -Name $roleKey -ErrorAction SilentlyContinue } } #==================================================================================== # Main #==================================================================================== Write-DiagProgress -activity $localizationString.setAsDefault_progress $endpointPaths = @() $endpointPaths = Get-DefaultEndpoints if($endpointPaths) { foreach($path in $endpointPaths) { [int]$intTemp1 = $path.length - 29 $regPath = $path.Substring(29,$intTemp1) Set-RegPermisssion($regPath) Remove-RegKey($path) } } Set-DefaultEndpoint $deviceID Write-DiagProgress -activity " "