zwischenergebnis:
vermutlich durch einen API-aufruf scheint tweak-ui dafür zu sorgen, dass LSASS.EXE in HKEY_LOCAL_MACHINE\SECURITY\Policy\Secrets\DefaultPassword herumfuhrwerkt.
folgende Idee:
den RedKey fürs Autologin beim ersten Start ganz normal setzen un íhn dann mittels eines Verweises aus dem Zweig HKLM/software/microsoft/windows/currentversion/runonce auf eine weitere Datei wieder löschen lassen?
The credentials used to logon by default during automatic logon are located
under the following registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
AutoAdminLogon REG_SZ 0 or 1 - Must be zero to remove this feature.
When you use AutoAdminLogon, Windows automatically logs on the specified user
when the system is started, bypassing the CTRL+ALT+DEL logon dialog box. This is
a very serious security problem because anyone can gain access to your computer.
DefaultUserName REG_SZ Username.
DefaultPassword REG_SZ Password
Specifies the password for the user listed under DefaultUserName.
If the password that you use for automatic logon is stored programmatically by
using the LsaStorePrivateData API, it is encrypted and stored under the
following registry key:
By encrypting the password as an LSA secret, you prevent remote users from
reading a plaintext password that is stored under the Winlogon registry key.
However, anyone with physical access to the computer can boot the system and
automatically log on, whether the password is encrypted or in plaintext, which
poses a security risk.
in der tweakUI.cpl finde ich folgende calls:
ADVAPI32
LsaOpenPolicy
LsaRetrievePrivateData
LsaStorePrivateData
LsaClose
LsaFreeMemory
jetzt brauche ich noch den weg, wie ich vorbereitete daten da rein befördern kann, so dass niemand beim ansehen eines skriptes ein passwort extrahieren kann