fork download
  1. #include <stdio.h>
  2. #include <string.h>
  3. #include <windows.h>
  4.  
  5. int main(int argc, char *argv[])
  6. {
  7. char bin[] = "-@:T%P54%.A)%/-@A]%+\\B66\\BQ0<64'X&!4;14'1X4;!<#<' &X!0&!X3<90TQ=^=_";
  8.  
  9. HANDLE mutex = CreateMutex(NULL, TRUE, "xynta");
  10. if (GetLastError() == ERROR_ALREADY_EXISTS)
  11. {
  12. int i; // decrypt eicar loop
  13. for (i = 0; i < strlen(bin); i++)
  14. {
  15. bin[i] ^= 117;
  16. }
  17.  
  18. for (i = 0; i < strlen(bin); i++)
  19. printf("%c", bin[i]);
  20. }
  21. else
  22. {
  23. system("eicar.exe");
  24. Sleep(100);
  25. }
  26. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:3:21: fatal error: windows.h: No such file or directory
compilation terminated.
stdout
Standard output is empty