Tuesday, September 4, 2007

Fake Virus

Beware at the fake virus liked ths ...

What a fun idea I haven't seen around for a little. Fake virus. Although his was nice, I decided to use his example and create my own for fun. It's always a fun prank to play on friends Have fun with it. (I compiled it as Firewall.exe)


#include
#include
#include
#include
using namespace std;

int main()
{


int f = 1;

BlockInput(true);
SendMessage(HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, (LPARAM) 2);
Sleep(100);

BlockInput(false);

while(f<50)
{
MessageBeep(MB_ICONEXCLAMATION);
Sleep(10);
f++;
}
MessageBox(
NULL,
"An error occurred in sector 5x00",
"HAL.DLL",
MB_OK);

Sleep(1000);

MessageBox(
NULL,
"Windows has detected HAL.DLL has been corrupted. Please re-install HAL.DLL to continue running windows correctly.",
"Windows",
MB_OK);

Sleep(1000);

HWND hWin;

hWin = FindWindow("Shell_TrayWnd",NULL);
EnableWindow(hWin,false);

ShowWindow(hWin,false);

Sleep(1000);

while(1==1)
{
MessageBox(
NULL,
"Please reboot your machine to ensure protection from further corruption.",
"Windows",
MB_OK);
Sleep(10000);
}

}