K
Karl Unge
Hi all,
is there a possibility to shut out viruses by defining mutexes?
Actual viruses are defining mutexes to be sure running once on a computer -
so if there is a mutex named like the one the virus uses - the virus is not
starting again.
So if i create a mutex and name it like the one the virus names his own -
keep me that from being infected by viruses like Korgo, Sasser, Mydoom, ...?
for example to prevent my computer from the Sasser i open a mutex named
"Jobaka3".
if it is possible can someone post how it works?
i tried it that way - but i think it didn't work
------------------------------------------------------
int _tmain(int argc, _TCHAR* argv[])
{
if (argc < 2) {
cout << "mutex name [names]\n\n";
return false;
}
for (int i = 1; i < argc; i++) {
cout << argv;
HANDLE hMutex = CreateMutex(NULL, false, argv);
OpenMutex(SYNCHRONIZE, false, argv);
if(GetLastError() == ERROR_ALREADY_EXISTS) {
cout << " - exists";
}
cout << "\n";
}
while (true) {
Sleep(1000000);
}
return 0;
}
is there a possibility to shut out viruses by defining mutexes?
Actual viruses are defining mutexes to be sure running once on a computer -
so if there is a mutex named like the one the virus uses - the virus is not
starting again.
So if i create a mutex and name it like the one the virus names his own -
keep me that from being infected by viruses like Korgo, Sasser, Mydoom, ...?
for example to prevent my computer from the Sasser i open a mutex named
"Jobaka3".
if it is possible can someone post how it works?
i tried it that way - but i think it didn't work
------------------------------------------------------
int _tmain(int argc, _TCHAR* argv[])
{
if (argc < 2) {
cout << "mutex name [names]\n\n";
return false;
}
for (int i = 1; i < argc; i++) {
cout << argv;
HANDLE hMutex = CreateMutex(NULL, false, argv);
OpenMutex(SYNCHRONIZE, false, argv);
if(GetLastError() == ERROR_ALREADY_EXISTS) {
cout << " - exists";
}
cout << "\n";
}
while (true) {
Sleep(1000000);
}
return 0;
}