Anon-maintained list of their own patches.
2021-10-21: Initial upload.
2021-10-23: Added "Fixes for decompiled winlogon".
This is a quite large guide, moved to the separate page.
Updates string formatter to identify the OS name in systeminfo
and msinfo32
as Windows XP instead of Windows 2000.
1 2 3 4 5 6 7 8 9 10 11 |
--- a/admin/wmi/wbem/providers/win32provider/providers/systemname.cpp +++ b/admin/wmi/wbem/providers/win32provider/providers/systemname.cpp @@ -372,7 +372,7 @@ CHString CSystemName::GetLocalizedName(void) #else if( IsWinNT5() ) { - if ( IsWinNT51() ) + if ( IsWinNT51() || IsWinNT52() ) { if (VER_SUITE_PERSONAL & t_ku.SuiteMask()) { |
Support for SHA-2 RSA certificate signatures was added in XP SP3 only. Without this patch, modern certificates (like ISRG Root X1 from Let's Encrypt) won't be verified.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
--- a/ds/security/cryptoapi/pki/certstor/oidinfo.cpp +++ b/ds/security/cryptoapi/pki/certstor/oidinfo.cpp @@ -140,6 +140,11 @@ static CCRYPT_OID_INFO PubKeyAlgTable[] = { // Signature Algorithm Table //-------------------------------------------------------------------------- static const ALG_ID aiRsaPubKey = CALG_RSA_SIGN; +static const DWORD rgdwRsaSha2Sign[] = { + CALG_RSA_SIGN, + 0, + PROV_RSA_AES +}; static const DWORD rgdwMosaicSign[] = { CALG_DSS_SIGN, CRYPT_OID_INHIBIT_SIGNATURE_FORMAT_FLAG | @@ -160,12 +165,17 @@ static const DWORD rgdwDssSign[] = { OID_INFO_LEN, pszOID, pwszName, CRYPT_SIGN_ALG_OID_GROUP_ID, aiHash, sizeof(rgdwExtra), (BYTE *) rgdwExtra +#define RSA_SHA2_SIGN_ALG_ENTRY(pszOID, pwszName, aiHash)+ SIGN_EXTRA_ALG_ENTRY(pszOID, pwszName, aiHash, rgdwRsaSha2Sign) #define DSS_SIGN_ALG_ENTRY(pszOID, pwszName) SIGN_EXTRA_ALG_ENTRY(pszOID, pwszName, CALG_SHA1, rgdwDssSign) static CCRYPT_OID_INFO SignAlgTable[] = { RSA_SIGN_ALG_ENTRY(szOID_RSA_SHA1RSA, L"sha1RSA", CALG_SHA1), RSA_SIGN_ALG_ENTRY(szOID_RSA_MD5RSA, L"md5RSA", CALG_MD5), + RSA_SHA2_SIGN_ALG_ENTRY("1.2.840.113549.1.1.11", L"sha256RSA", CALG_SHA_256), + RSA_SHA2_SIGN_ALG_ENTRY("1.2.840.113549.1.1.12", L"sha384RSA", CALG_SHA_384), + RSA_SHA2_SIGN_ALG_ENTRY("1.2.840.113549.1.1.13", L"sha512RSA", CALG_SHA_512), DSS_SIGN_ALG_ENTRY(szOID_X957_SHA1DSA, L"sha1DSA"), RSA_SIGN_ALG_ENTRY(szOID_OIWSEC_sha1RSASign, L"sha1RSA", CALG_SHA1), RSA_SIGN_ALG_ENTRY(szOID_OIWSEC_sha1RSASign, L"shaRSA", CALG_SHA1), |
It also probably requires relatively modern rsaenh.dll
, but the one provided by win2003_x86-missing-binaries_v2.7z
should be enough. Binary only, yes.
Just skip the check for test certificate (which you probably use for builds).
1 2 3 4 5 6 7 8 9 10 11 |
--- a/windows/core/ntuser/kernel/init.c +++ b/windows/core/ntuser/kernel/init.c @@ -3100,7 +3100,7 @@ BOOL xxxUpdatePerUserSystemParameters( /* * Desktop Build Number Painting */ - if (USER_SHARED_DATA->SystemExpirationDate.QuadPart || gfUnsignedDrivers) { + if (0 && (USER_SHARED_DATA->SystemExpirationDate.QuadPart || gfUnsignedDrivers)) { gdwCanPaintDesktop = 1; } else { FastGetProfileDwordW(pProfileUserName, PMAP_DESKTOP, L"PaintDesktopVersion", 0, &gdwCanPaintDesktop, dwPolicyFlags); |
Just reorders some stuff and disables the network check (which is not really needed). For those who still use the ported version of winlogon (Winlogon200X_v3c.zip
).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
--- a/ds/security/gina/winlogon/wlxutil.c +++ b/ds/security/gina/winlogon/wlxutil.c @@ -2578,6 +2578,9 @@ VOID WaitForServices( HANDLE hDsReindexEvent ; ULONG SamWaitTime = 15000 ; + DWORD fWaitForNetwork; + HKEY hKey; + DWORD cbData, dwType; if ( pTerm->SafeMode ) { @@ -2587,6 +2590,30 @@ VOID WaitForServices( StatusMessage(FALSE, 0, IDS_STATUS_SYSTEM_STARTUP ); WaitForServiceToStart( TEXT("SamSs"), SamWaitTime); + StatusMessage (TRUE, 0, IDS_STATUS_RPCSS_START); + WaitForServiceToStart (TEXT("RpcSs"), 120000); + + fWaitForNetwork = FALSE; + if ( RegOpenKeyEx( HKEY_LOCAL_MACHINE, + TEXT("Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon"), + 0, + KEY_READ, + &hKey ) == ERROR_SUCCESS ) + { + cbData = sizeof(fWaitForNetwork); + RegQueryValueEx( hKey, + TEXT("WaitForNetwork"), + NULL, + &dwType, + (LPBYTE)&fWaitForNetwork, + &cbData ); + RegCloseKey( hKey ); + } + + if ( !fWaitForNetwork ) { + return; + } + if ( pTerm->SafeMode ) { // @@ -2615,9 +2642,6 @@ VOID WaitForServices( StatusMessage (FALSE, 0, IDS_STATUS_NET_START); WaitForServiceToStart (SERVICE_NETLOGON, 120000); - StatusMessage (TRUE, 0, IDS_STATUS_RPCSS_START); - WaitForServiceToStart (TEXT("RpcSs"), 120000); - StatusMessage (TRUE, 0, IDS_STATUS_MUP_START); WaitForMUP (120000); |
This version of winlogon (ds.zip_decompiled_XPSP1_winlogon.zip
) can't be built without additional fixes. Moreover, it has some controversial stuff which can be easily removed.
licensing
is completely unnecessary. It contains a lot of unreadable disassembled code (and it's explained why in the included readme file). This directory can be easily removed with some code changes.sclogon2.c
) is incomplete and conflicts with definitions from sclgnrpc.h
. I decided to just remove it intead of trying to fix.⎗
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 |
--- a/ds/security/gina/winlogon/sas.c +++ b/ds/security/gina/winlogon/sas.c @@ -10,8 +10,6 @@ #include |