Skip to content

Instantly share code, notes, and snippets.

@livz

livz/Bug.c Secret

Created Jul 21, 2017
Embed
What would you like to do?
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