跳到主要內容

發表文章

目前顯示的是 7月, 2012的文章

//伪代码,�...

//伪代码,要用自己去改 //storm.dll //////////////////////////////////////////////////////////////////////////////////////////////////// //1503AE83    E8 58FDABED     call    GameStat.02AFABE0 // hook Storm #501号函数,Storm.dll库的详细函数列表请看 //  code.google.com/p/vgce/wiki/stormDLL //GameStatDota.dll( modulebase:0x2af0000,  size:0x1a000) void GameStatDota_02afabe0(str) //比较游戏中的一些字符串,获得游戏结果等等 {   if(!IsBadReadPtr(str))     Func_2af9980(str); //跟据字符串内容做出动作 } char * mystrstr(char * str1, char * str2, int len) {   int i = strlen(str1);   for( int j=0; j< i - len; j++)   {     if(memcmp(str1+j, str2, len) == 0)       return str1+j;   }   return NULL; } Func_2af9980(str) //判断内容,做出动作   //只要在游戏中显示出来的字符串,都可以在这里面弄到,然后做一些分析   //比如统计杀人次数,死亡次数,金钱,等级。。。等等 {   install_seh(); //?   if(mystrstr(str, utf-8(":|r"), 4) != 0) //  0x3A, 0x20, 0x7C, 0x72     //不知道做啥的,=我再研究下   if(mystrstr(str, utf-8("等待其他玩家中"), 0x15) != 0)      GetTickCount();   if(mystrstr(str, asc(&