大家看看这是什么东西?
#include <stdio.h>#include <stdlib.h>
FILE *fin,*fout;
char filename[100];
char FNAME[100];
unsigned long filesize;
int main(){
unsigned int ch;
printf(" DXp-bat\n");
printf(" Bat2Exe By Ozone\n");
printf("Source file name: ");
gets(filename);
fin=fopen(filename,"rb");
if(fin==NULL){
printf("\n%s\nError File!!!\n",filename);
return 0;
}
printf("Output file(*.bat): ");
gets(FNAME);
fout=fopen(FNAME,"w");
filesize=0;
fprintf(fout,"@echo off\n\ncls\ndebug <%%0 >nul\ncopy very.bat %%temp%%\\%s\nstart %%temp%%\\%s\ndel very.bat\nexit",filename,filename);
while(1){
ch=fgetc(fin);
if(feof(fin))break;
if(filesize%16==0){
fprintf(fout,"\ne%lX",filesize+0x100);
}
filesize++;
fprintf(fout," %X",ch);
}
fprintf(fout,"\nn very.bat\nrcx\n%lX\nw\nq\n",filesize);
fclose(fin);
fclose(fout);
return 0;
}