fork(3) download
  1. #include <iostream>
  2. #include <algorithm>
  3. #include <string>
  4.  
  5. int main() {
  6. char xorkey = 55;
  7. std::string eicar = "X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*";
  8.  
  9. for (auto it = eicar.begin(); it != eicar.end(); ++it)
  10. {
  11. std::cout << (char)(*it ^ xorkey);
  12. }
  13. return 0;
  14. }
Success #stdin #stdout 0s 3468KB
stdin
X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*
stdout
oxgwvglgmogittJr~tvedcvysvesvyc~a~ebdcrdcq~{r