设为首页】 【加入收藏】 【网站地图】 【商品折扣
娱乐一生 娱乐明星
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
首页  |  安全动态  |  漏洞分析  |  黑客教程  |  破解教程  |  病毒技术  |  WINDOWS视窗技术  |  DDOS技术  |  安全防护  |  漏洞快递  |  系统防护
当前位置:首页 >> 病毒技术 >> 3783病毒源程序

3783病毒源程序 -


3783病毒源程序



#include< ios.h>
#include<dos.h>
#include<dir.h>
#include< tdio.h>
#include< tring.h>
#include< tdlib.h>
#include<alloc.h>
void k3783(char *fname);
int find3783(char *buf, int len);
int flushkey();
void search(char *line);
main(int argv,char *argc[])
{ struct ffblk file;
register int done;
char dir[MAXDIR],filename[MAXDIR+12];
if(argv==1)
{ printf("\t\tKILL Virus TPVO/3783 !\ quot;);
printf("\rThe Copywrite is Qing Dao Jian Gong Xue Yuan Computer 94.1\n\t\tJiang Xianggang \t1997.5.25\ quot;);
printf("Usage: k3783 [d:] path\n Example1:\n k3783 c:\\ \ quot;);
printf(" Example2:\n k3783 c:\\dos\\\ quot;);
exit(1);
}
argv=strlen(argc[1]);
argv--;
if(argc[1][argv]!='\\')
{ printf("\t\tKILL Virus TPVO/3783 !\ quot;);
printf("\rThe Copywrite is Qing Dao Jian Gong Xue Yuan Computer 94.1\n\t\tJiang Xianggang \t1997.5.25\ quot;);
printf("Usage: k3783 [d:] path\n Example1:\n k3783 c:\\ \ quot;);
printf(" Example2:\n k3783 c:\\dos\\\ quot;);
exit(1);
}
search(argc[1]);
printf("\n\t\tKILL Virus TPVO/3783 !\ quot;);
printf("\rThe Copywrite is Qing Dao Jian Gong Xue Yuan Computer 94.1\n\t\tJiang Xianggang \t1997.5.25\ quot;);

}
void search(char *line)
{ struct ffblk file;
register int done;
char dir[MAXDIR],filename[MAXDIR+12],line1[80];

strcpy(dir,line) trcat(dir,"*.*");
done=findfirst(dir,&am file,0);
while(!done)
{ strcpy(filename,line);
printf("\r ");
printf("\r%s% quot;,line,file.ff_name);
strcat(filename,file.ff_name);
k3783(filename);
done=findnext(&am file);
if(bioskey(1)==0x011b) exit(1);
flushkey();
}
done=findfirst(dir,&am file,FA_HIDDEN|FA_SYSTEM);
while(!done)
{ strcpy(filename,line);
printf("\r ");
printf("\r%s% quot;,line,file.ff_name);
strcat(filename,file.ff_name);
k3783(filename);
done=findnext(&am file);
if(bioskey(1)==0x011b) exit(1);
}
/* done=findfirst(dir,&am file,FA_DIREC);
while(!done)
{ if(strcmp(file.ff_name,".")&am am trcmp(file.ff_name,".."))
{ strcpy(line1,line);
strcat(line1,file.ff_name);
strcat(line1,"\\");
search(line1);
}
done=findnext(&am file);
if(bioskey(1)==0x011b) exit(1);
} */
done=findfirst(dir,&am file,FA_DIREC|FA_HIDDEN);
while(!done)
{ if(strcmp(file.ff_name,".")&am am trcmp(file.ff_name,".."))
{ strcpy(line1,line);
strcat(line1,file.ff_name);
strcat(line1,"\\");
search(line1);
}
done=findnext(&am file);
if(bioskey(1)==0x011b) exit(1);
}
}
void k3783(char *fname)
{ FILE *fp,*fp1;
long file_length,i;
char source[64];
char *buf;
char *t;
int attri 
if((fp=fopen(fname,"r quot;))==NULL)
{ printf(" file %s open error!\ quot;,fname);
fclose(fp); retur 
}
fseek(fp,0l,SEEK_END);
file_length=ftell(fp);
if(file_length<3783l) {fclose(fp); retur }
if((buf=(char *)malloc(60*1024l))==NULL)
{ printf("\nout of memroy!\ quot;); fclose(fp); retur 
}
fseek(fp,-3783l,SEEK_END);
fread(buf,1,3783,fp);
t=buf;
if(find3783(buf,3783))
{ attrib=_chmod(fname,0);
_chmod(fname,1,0);
printf(" Found TPVO/3783 Virus!\7");
t=buf+3719;
/* fseek(fp,0l,SEEK_SET);
fwrite(t,1,64,fp);*/
if((fp1=fopen("c:k3783.tm quot;,"wb+"))==NULL)
{ printf(" Out of disk  ace! \ quot;);
fclose(fp); retur 
_chmod(fname,1,attrib); retur 
}
i=file_length-3783l-64l;
fseek(fp,64l,SEEK_SET);
fseek(fp1,0l,SEEK_SET);
fwrite(t,1,64,fp1);
while(i>0)
{ if(i>60*1024l)
{ fread(buf,1,60*1024l,fp);
fwrite(buf,1,60*1024l,fp1);
i-=60*1024l;
}
else { fread(buf,1,i,fp);
fwrite(buf,1,i,fp1);
i=0;
}
}
fclose(fp1);
fclose(fp);
if((fp=fopen(fname,"wb+"))==NULL)
{ printf(" \n file open error! OR File Ac e  error! No Killed!\ quot;);
fclose(fp1); remove("c:k3783.tm quot;);
_chmod(fname,1,attrib);
retur 
}
fp1=fopen("c:k3783.tm quot;,"r quot;);
i=file_length-3783l;
fseek(fp,0l,SEEK_SET);
fseek(fp1,0l,SEEK_SET);
while(i>0)
{ if(i>60*1024l)
{ fread(buf,1,60*1024l,fp1);
fwrite(buf,1,60*1024l,fp);
i-=60*1024l;
}
else { fread(buf,1,i,fp1);
fwrite(buf,1,i,fp);
i=0;
}
}
fclose(fp1);
remove("c:k3783.tm quot;);
fclose(fp);
free(buf);
_chmod(fname,1,attrib);
printf(" Killed! OK!\n\ quot;);
}
else
{ free(buf);
fclose(fp);
}
}
int find3783(char *buf, int len)
{ char *code2="\xb8\x08\x02" 
char *code1="\x7c\x8e\xc4" 
char *code3="\xcd\x13" 
char *code4="\x06\x68\xc3" 
char *t;
int i=0,j,k,l;
t=buf;
while(i<len)
{ if(memcmp((t+i),code1,3))
i++;
else
{ i++;
j=i+2;
while(j<len)
{
if(memcmp((t+j),code2,3))
j++;
else
{ j++; k=j+2;
while(k<len)
{
if(memcmp((t+k),code3,2))
k++;
else
{ k++;l=k+1;
while(l<len)
{ if(memcmp((t+l),code4,3))
l++;
else return 1;
}
}
}
}
}
}
}
return 0;
}
int flushkey()
{
union REGS r;
r.h.ah=0x0c;
r.h.al=0x06;
r.h.dl=0xff;
intdos(&am r,&am r);
}



 

娱乐图摘

更多 >>

靓丽清纯美女meimei

美女私房全裸照
导演劝女演员脱衣服(视频)

大胆火辣人体艺术写真(图)

黑丝妹妹热辣诱惑-丝袜美女妹妹

PLMM 漂亮妹妹图集-妹妹图库

全球美女图库-美女集中营

52MM 我爱漂亮妹妹-制服妹妹诱惑

图王图库-世界美女明星图片资料库
美女写真集锦

激情两性-解密性生活
浴室MM湿身内衣诱惑
邻家小妹洗澡被偷拍(视频)

热点文章

更多

· 我爱你”的病毒源代码(有部分被*号覆盖)
· 入门:从病毒命名识别病毒
· M 病毒原理及测试代码
· 病毒杀不死的原因分析 和相应对策
· 嘶嘶声(I-Worm/Fizzer)病毒技术分析报告
· 谈谈针对Linux的病毒起源、发展及分类
· 爱情后门病毒变种I-Worm.Su ot.f分析报
· 利用DCOM RPC溢出和WebDAV溢出的蠕虫紧急公告!
· ha ytime病毒源程序
· 熊猫烧香核心代码

热点文章

更多