C# Meta Game Doxing Pre-research
The cause of the incident was that I played Love Nest, and soon after I saw Kinito Pet‘s live broadcast, I found the doxing in Meta game very interesting, so I pre-researched how to dox, so that it would be convenient for future game make. Theoretically, this is a C# solution for Windows environment, but because it is only tested with Unity in Windows environment, it may not be applicable to other engine environments.
Get directly
Some information can be obtained directly, which saves time and effort
1 | //Get operating system information |
Create process
Some information requires creating a process and obtaining it in the cmd. Let me first introduce a simple process creation.
1 | string GetCmdInfo(string command) |
Then we can use the process to execute the command line to implement various extended functions (such as obtaining hardware information, etc. At present, the most mainstream solution for obtaining hardware information is to introduce System.Management to call ManagementObjectSearcher for traversal, but Unity requires some additional operations. Here we first use the wmic command to obtain it)
1 | //Calling the printer |
Simulate keyboard and mouse
The next step is to obtain and simulate the keyboard and mouse operations. At this step, you can’t avoid adding something to Unity’s C#. I personally recommend NuGet for Unity and install Input Simulator.
1 | //Simulate keyboard |
Written behind
That’s about it for now. After I got interested, I verified it with various parties and recorded these C# system calls as a preliminary study for Meta games. You are welcome to add to it. Now it’s time for you to be creative. For example, you can suddenly open the player’s camera and tell the player that you can see me; when threatening the player, you can call the printer to print a death notice; when the player refuses to tell the real address of the character, you can directly open the command line ipconfig and wait for a few seconds to say that you already know it… Of course, I also hope that you will pay attention to not overdoing the doxing when making Meta games…