Windows NT 3.5源代码已编译!

本文讲述了2020年WindowsNT3.5build782源代码泄露后的编译方法,介绍如何使用Windows2000或更早版本的虚拟机、NT3.5SDK和DDK工具进行编译,以及过程中遇到的问题和解决策略,如Razzle工具的使用和新补丁的更新。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

    2020年5月,Windows NT 3.5 build 782源代码被泄露。然而,它缺少很多文件,包括编译器、链接器、头文件等。大多数这些工具都可以从 Windows NT 3.5 的 SDK 和 DDK 中应用(您也可以临时处理 NT 3.51 的 DDK 文件,但之后根据需要替换它们)。在大多数情况下,NT 3.5 的源代码是相当可编译的!特别是NTOS文件夹,它保留了系统的内核和基础。                                         

Windows NT 3.5-782 编译方法


作为其可编译性的一个例子,有一个例子:

图像



首先
,确保您满足以下要求

  • 具有 Windows 2000 或更早版本操作系统(最高 NT 3.1)的虚拟机
  • 至少 15 GB 可用空间
  • 有点耐心。

然后执行以下步骤:

请注意,不建议 安装 Visual Studio ,因为它们会导致构建问题。

更改日志
更改了什么?

  • Razzle 经过编辑以支持任何用户。在此之前,Razzle 仅支持 DEVELOPR 文件夹中的预定义用户(ntx86bld、alphachk 等)。还将 OAK\I386 添加到路径中。
  • 编译所需的大部分工具都是借助NT 3.5 612 build 的SDK 工具和NT 3.51 的DDK 工具编译的。编译的文件被替换为临时文件。
  • 一些标头已部分修复,需要编译。结果,大多数组件开始编译。
  • 通过从 OpenNT 源代码移植加密文件问题,修复了加密文件问题。唯一缺少的加密是 CBC,但它可以在没有加密的情况下进行编译。

当前的问题

  • 此时,并非WINDOWS文件夹中的所有组件都可以编译。wingdip.h文件应该被替换和/或修复为可用的文件。
  • 编译WINDBG文件夹时,弹出未定义函数导出的错误。
  • 某些包含自定义编译器(例如用于 DOS 的 CL.exe)的文件夹无法使用主编译器进行编译。
  • 新补丁版本v2已上传!下载它:https://drive.google.com/file/d/1GQugCC ... sp=sharing

    变化
  • 修复了RCRCPP文件的问题,这些文件因错误而关闭,导致大多数文件损坏
  • 修复了WINDOWS标头问题
  • 更改了DIRS文件以包含OPTIONAL_DIRS参数中的所有目录
  • Razzle 已改进,无需确认即可复制环境文件
  • NET文件夹可以无任何错误地构建
  • 您是否意识到您只需在每个包含它的目录中运行 nmake /f makefil0 ,它就会生成头文件?
    并且您不必修改目录文件,只需

    设置 BUILD_OPTIONS=[optional_dirs_here_separated_by_space_without_brackets]

    当您遵循这些操作时,您不必做几乎同样多的修改或调整,您将获得更大的成功,包括工作的 Windbg 。
    这是直接的、几乎未触及的来源。我只真正使用了我的构建工具和稍微修改过的 razzle,将用户设置为 NTRETAIL。

    图像

     

    图像

Utilities for Windows NT Besides my research work I am responsible for a couple of computers at the physics department of the University of Mainz which are running under Windows NT. Therefore I started developing some utilities which I think are missing in the core operating system. These programs will be free to use for everyone (which does not mean that I will not appreciate any donations if you like them, and if they save your time and money - this hint is directed mainly to users in a commercial environment). Disclaimer: These programs are provided "as is" and come without any warranty of any kind, either expressed or implied, including but not limited to fitness for a particular purpose or a particular system. In no case shall the author be liable for any damage or unwanted behavior of any computer hardware and/or software, including but not limited to data loss or time spent to recover your system. Do not test this program on your production machines without a backup you know you can restore! A new service: You can send an e-mail to ntutils@bibserver.physik.uni-mainz.de to automatically receive information about new versions of some or all of the listed utilities. NEWGINA How to run a script at logoff! How to run a script at system shutdown! How to get rid of CTRL-ALT-DEL prior to logging on! Very new and untested... try at your own risk! It is distributed under the GNU General Public License, and comes with source code and binaries for Intel x86. More information can be found in the README file. Download newgina_pre09.zip (approx. 64k). Important information (a little bug): The user logoff script does not execute if there is no log file set. Set the log file to NUL:. (An old version without the logoff/shutdown script option with binaries for DEC Alpha is still available.) CHOWN Demonstrates that it is possible to assign a new owner to a file, even if Microsoft asserts that this is impossible. Not the first implementation of such a program, but source is included, so you may understand how this works. There are no miracles. V1.1 changes more reliably the owner of files where the Administrator has no access to. It is distributed under the GNU General Public License, and comes with source code and binaries for Intel x86. Type 'chown' on the command line for a short instruction. More information can be found in the README file. Download Version 1.1 of chown.zip (approx. 35k). There is also a GUI frontend written by Suppi. Please contact him for any questions regarding this frontend. More information can be found in the README file. CLOSE Closes a window from the command line based on its title in the title bar by sending a WM_CLOSE message. This allows graceful shutdown of applications as opposed to KILL utilities (e.g. from the Resource Kit), which do not give the application some time to tidy up. It is distributed under the GNU General Public License, and comes with source code and binaries for Intel x86. Type 'close' on the command line for a short information. Usage should be self-explanatory. Download close.zip (approx. 20k). MOVEEX Replaces or moves files currently in use, e.g. system DLLs. This is nothing more than a command line interface to the MoveFileEx() API call with a flag that delays the move until the next reboot. More information can be found in the README file. Binary for x86 only, but source is included. Download moveex.zip (approx. 21k) PUSHKEYS for C This is a straightforward port of Christopher Latta's Pushkeys for Visual Basic to C. It is equivalent to the VB SendKeys statement (unfortunately missing in C), which allows to send keystrokes to open applications, including DOS application. Included is a short demo program, which may be useful on its own (type 'pushkeys' on the command line for usage instructions and a short example), as well as the original VB program which includes the help file (in the /orig directory). It should run under Windows 95 as well. Download pushkeyc.zip (approx. 35k). LOGOFF A tool to log off users from their workstations remotely or unattended. This tool is in a very early (pre-beta) stage and will be part of a service that monitors the valid logon hours and logs of users whose logon hours have expired, but should already be useful as a standalone program. It is distributed under the GNU General Public License, and comes with source code and binaries for Intel x86, but without (much) documentation. Few information can be found in the README file. For more information contact me. Download logoff.zip V0.1 PRE-BETA (approx. 80k). NOLOCKWS Especially for large PC pools in universities or schools it is very annoying when users lock their NT workstations, leave, and forget to come back. Subsequent users have the choice of resetting the PC or calling an administrator who can unlock the workstation. While lots of Windows NT settings can be changed through the registry, disabling the Lock Workstation button in the Windows NT Security (Ctrl-Alt-Del) dialog seems to be forgotten. This program allows administrators to disable or re-enable the Lock Workstation button. Version 0.99 BETA can now handle Novell's IntraNetware Client, which uses its own Gina (with the same lack of configurability), and eases the use with international version of Windows NT. NOLOCKWS is distributed under the GNU General Public License, comes with source code and binaries for DEC Alpha and Intel x86. More information can be found in the README file. Download nolockws.zip V0.99 BETA (approx. 95k). PASSWD This utility allows changing passwords on the command line or from within a batch file (non-interactive) instead of the usual CTRL-ALT-DEL dialog. It is also possible to change the password on remote domains or machines. No special privileges are necessary to issue this command (in contrast to the 'net user' command, which allows password changing as well, but only for users with administrative privileges). Intended for: Users who come from other operating systems like Unix or VMS and think it is unnecessary to do everything with a GUI interface. Users who want to automate tasks like password changing in a batch file or want to force users to change passwords in their logon script. Allow password changing for users who (can) never physically log on to a computer with the CTRL-ALT-DEL dialog, but use this computer for a PPP connection or log on through a Telnet connection. Now with source code and distributed under the GNU General Public License Download passwd.zip (approx. 29k). More useful utilities written by others... I am working on more utilities, including a program that forces users to log off after the logon hours have expired (and not just disconnects network connections to a server). Watch out! (C) by Alexander Frink, July 1997 (back to my homepage).
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值