Facebook
From Grzegorz , 5 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 208
  1. =============================
  2. int main(int argc,  char * const argv[]) {
  3.         if(argv[0] == string("sumcheater.exe"))
  4.                 cout << "I am nice." << endl;
  5.         else
  6.                 cout << "I am evil." << endl;
  7.         return 0;
  8. }
  9. ==============================
  10.  
  11. D:\Programowanie\sumcheater>copy sumcheater.exe evilsumcheater.exe
  12.         1 file(s) copied.
  13.  
  14. D:\Programowanie\sumcheater>fciv -md5 -sha1 sumcheater.exe
  15. //
  16. // File Checksum Integrity Verifier version 2.05.
  17. //
  18.                 MD5                             SHA-1
  19. -------------------------------------------------------------------------
  20. 810f8d6566fd1cd38e33048c2c5c0f0f 22cde2152b1ee4a90a1177b8ae253b30f0e90993 sumcheater.exe
  21.  
  22. D:\Programowanie\sumcheater>fciv -md5 -sha1 evilsumcheater.exe
  23. //
  24. // File Checksum Integrity Verifier version 2.05.
  25. //
  26.                 MD5                             SHA-1
  27. -------------------------------------------------------------------------
  28. 810f8d6566fd1cd38e33048c2c5c0f0f 22cde2152b1ee4a90a1177b8ae253b30f0e90993 evilsumcheater.exe
  29.  
  30. D:\Programowanie\sumcheater>sumcheater.exe
  31. I am nice.
  32.  
  33. D:\Programowanie\sumcheater>evilsumcheater.exe
  34. I am evil.
  35.  
  36. D:\Programowanie\sumcheater>
  37.