Windows XP source code leaked

Source | Open Source China (ID: oschina2013)

A user on the 4chan forum posted that the Windows XP source code has been leaked, and attached a screenshot of the Windows NT kernel source code being decompressed in the post. From the decompression path, the leaked system version is Windows XP SP1. Currently this post has been archived and no reply is allowed for the time being.

The user who has downloaded the leaked file provided the following screenshot. You can see that the entire file size is 42.92GB. From the perspective of the directory structure, the leaked content also includes the source code of the Xbox operating system, as well as the Windows NT 5 kernel, Windows NT 4 kernel and Windows NT 3.5 kernel source code, in addition to the source code of other versions of operating systems such as Windows 2000, the folder named "misc" is the largest with a total of 31.17GB, accounting for 70% of the entire file.

The user who created and provided the torrent download said that these files have been secretly spread among hackers for many years. He spent about 2 months collecting all the leaked files and checked all the archives to ensure their Authenticity.

What is leaked here is Windows XP. In fact, Axel Rietschin, a kernel engineer from Microsoft, has published a blog to give you a glimpse of the charm of the Windows 10 kernel.

According to Axel, the code bases of Windows 10 and Windows 8.x, 7, Vista, XP, 2000 and NT are the same, and each generation has undergone major refactoring on the basis of the previous ones, and added a large number of new features to improve performance. And hardware support, in addition to security improvements, while maintaining a very high backward compatibility.

Currently, leaked copies of Windows kernel research can be found on GitHub. Although these codes are outdated and incomplete, they still have high research value. For example, the wrk-v1.2/base/ntos/config source code implements a well-known kernel component configuration manager Registry, that is, the registry, which is called Cm internally.

According to Axel, most of the kernel of ntoskrnl.exe is written in C, and most of the content that runs in kernel mode is also written in C, including file system, network, and drivers. It also contains some C++ code, and the closer to the user mode, the closer to the new source code, the use of C becomes less and less, and vice versa.

Looking specifically at the source code of Windows 10 "DVD", the author guesses that 98% of them are written in C and C++, and C accounts for a large proportion.

In addition, .NET BCL and some related libraries and frameworks are usually written in C#, "but they are just a chestnut in the ocean of C with a few C++ islands." They come from different departments, and the codes are not Not part of the Windows source tree.

The author exclaimed: The scale of the Windows source code is huge, this is a truly epic giant project.

The complete source tree contains all the code. As shown in the figure above, the test code and all the content that together form the "Windows source code" add up to more than 4 million files, 500,000 folders, and a size of more than 0.5 TB, including the OS Workstation, server, and all versions of the tool, the code of each component of the related development kit.

How terrible is the scale of the source code? The author estimates that it will take a lifetime to fully view the file names of these source codes and try to understand what the source codes are used for. He also gave an example: Once, I left a Git branch for a few weeks, and when I came back, it had fallen behind nearly 60,000 commits.

—————END—————

Friends who like this article, welcome to follow the official account  programmer Xiaohui , and watch more exciting content

点个[在看],是对小灰最大的支持!

Guess you like

Origin blog.csdn.net/bjweimengshu/article/details/108878045