Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ImSwordQueen authored Jun 21, 2024
1 parent 7c4ca6c commit 880d245
Showing 1 changed file with 12 additions and 25 deletions.
37 changes: 12 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,45 +13,32 @@ The following steps explain how you can contribute to the project
3. enjoy

## How to use
1. Copy the 2 compiled DLL files (ConsoleLogonHook.dll and ConsoleLogonUI.dll) from ConsoleLogonHook\x64\Release into %SYSTEMROOT%\System32
> [!NOTE]
> **It will most likely ask you to provide adminsistrator permission to copy to System32, just accept the warning**
> [!WARNING]
> **This LogonUI modification will require administrator privileges to be installed.**
>
2. Take and rename authui.dll to au7hui.dll from windows 7 sp1 and copy into %SYSTEMROOT%\System32 , this is so the windows 7 consolelogonui can pull the resources from it (note: this step may not be necessary in the future)
Or alternatively, just copy au7hui.dll from a release
3. Take ownership of ConsoleLogon.dll and replace it with version, 10.0.19041.3636 (should be in releases), this only temporary until a pdb offset finder system is written as they are hardcoded atm
4. A) Import the following registry key as TrustedInstaller by copying it into a text file and save as a .reg file then running with psexec64, or using any other method to run something as trusted installer
1. Copy the 2 DLL files (ConsoleLogonHook.dll and ConsoleLogonUI.dll) from [Releases](https://github.com/wiktorwiktor12/ConsoleLogonHook/releases) into %SYSTEMROOT%\System32

```
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsRuntime\ActivatableClassId\Windows.Internal.UI.Logon.Controller.ConsoleBlockedShutdownResolver]
"DllPath"="C:\\Windows\\System32\\ConsoleLogonHook.dll"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsRuntime\ActivatableClassId\Windows.Internal.UI.Logon.Controller.ConsoleLockScreen]
"DllPath"="C:\\Windows\\System32\\ConsoleLogonHook.dll"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsRuntime\ActivatableClassId\Windows.Internal.UI.Logon.Controller.ConsoleLogonUX]
"DllPath"="C:\\Windows\\System32\\ConsoleLogonHook.dll"
> [!NOTE]
Step 2 might not be necessary in a future release.
>
2. Take `authui.dll` from Windows 7 SP1, rename it to `au7hui.dll` and place it into %SYSTEMROOT%\System32 , this is so the ConsoleLogonHook can pull the resources from it to have the Windows 7 logonUI, Or alternatively, just copy au7hui.dll from releases

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsRuntime\ActivatableClassId\Windows.Internal.Shell.PlatformExtensions.ConsoleCredUX]
"DllPath"="C:\\Windows\\System32\\ConsoleLogonHook.dll"
```
3. Take ownership of ConsoleLogon.dll and replace it with version, 10.0.19041.3636 (should be in releases), this only temporary until a pdb offset finder system is written as they are hardcoded atm

4. B) Or open a CMD window as TrustedInstaller via psexec64 and run the following commands:
4. Open a CMD window as TrustedInstaller via psexec64 and run the following commands:

```
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsRuntime\ActivatableClassId\Windows.Internal.Shell.PlatformExtensions.ConsoleCredUX /v DllPath /t REG_SZ /d %systemroot%\System32\ConsoleLogonHook.dll /f
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsRuntime\ActivatableClassId\Windows.Internal.UI.Logon.Controller.ConsoleBlockedShutdownResolver /v DllPath /t REG_SZ /d %systemroot%\System32\ConsoleLogonHook.dll /f
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsRuntime\ActivatableClassId\Windows.Internal.UI.Logon.Controller.ConsoleLockScreen /v DllPath /t REG_SZ /d %systemroot%\System32\ConsoleLogonHook.dll /f
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsRuntime\ActivatableClassId\Windows.Internal.UI.Logon.Controller.ConsoleLogonUX /v DllPath /t REG_SZ /d %systemroot%\System32\ConsoleLogonHook.dll /f
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsRuntime\ActivatableClassId\Windows.Internal.Shell.PlatformExtensions.ConsoleCredUX /v DllPath /t REG_SZ /d %systemroot%\System32\ConsoleLogonHook.dll /f
```

5. Take ownership of and rename Windows.UI.Logon.dll to anything else so it will invoke console login, it'll just work and do its thing
5. Take ownership of the file `Windows.UI.Logon.dll` and rename it to something elsem as an example `Windows.UI.Logon.bak.dll`, so it will fallback to the console login instead.

> [!NOTE]
> **THIS IS STILL EARLY INTO DEVELOPMENT AND MAY BE BUGGY**
Expand Down

0 comments on commit 880d245

Please sign in to comment.