Skip to content

Instantly share code, notes, and snippets.

@livz

livz/Bug.c Secret

Created July 21, 2017 16:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save livz/4c1a48c204df521fba562ac7087dd0e3 to your computer and use it in GitHub Desktop.
Save livz/4c1a48c204df521fba562ac7087dd0e3 to your computer and use it in GitHub Desktop.
Say my name
/*
* 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