-
-
Save livz/4c1a48c204df521fba562ac7087dd0e3 to your computer and use it in GitHub Desktop.
Say my name
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Compile with cl: | |
* cl /EHsc /nologo Bug.c | |
* | |
*/ | |
#pragma comment(lib, "User32.lib") | |
#include <Windows.h> | |
int main(int argc, char **argv) | |
{ | |
// Is is original name? | |
if(!strcmp(argv[0], "Bug.exe")) { | |
MessageBox( | |
NULL, | |
"You can find me in the Prefetch folder", | |
"Bug", | |
MB_OK); | |
} else { | |
MessageBox( | |
NULL, | |
"I don't like prefetches and Process Explorer!", | |
"OrNobug", | |
MB_OK); | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment