MAX Hook 6.3.0 public source

社区服务
高级搜索
猴岛论坛CSGO反恐精英CS作弊器交流讨论MAX Hook 6.3.0 public source
发帖 回复
倒序阅读 最近浏览的帖子最近浏览的版块
122个回复

MAX Hook 6.3.0 public source

楼层直达
莎仕芘亞

ZxID:1171401

等级: 元老
猴岛国防部部长

举报 只看楼主 使用道具 楼主   发表于: 2007-09-01 0
— 本帖被 步惊天 执行加亮操作(2007-09-02) —
包含一个基础路线版本,和一个未修复过的中文显示模块[颜色不正常]
本版本路线可顺利移植到 cs 1.6 的作弊器代码中,提供给有兴趣的玩家参考

再这里感谢MAX 风格

CCA_F117  制作
  1. mAX6.3源代码是可以无错编译连接的,这里我就不多说了...
  2. 关键是生成的DLL文件有文字颜色错误让人很不爽...
  3. 小弟我发现了几处错误如下:
  4. 1.本方与敌方的名字全部是黑的(不分敌我啊)很是不爽;
  5. 2.左边的信息栏队友说话也不是很清楚,模模糊糊;
  6. 3.作弊控制台 的字体也有问题;
  7. 下面来解决如下问题
  8. void DrawHudStringCenter 
  9. void DrawHudString     
  10. void RetarTMenuMenuStr2
  11. int Initialize
  12. 发现这几个函数都调用了源文件DrawText.cpp中的 DrawSetTextColorEx 可能是文字颜色出了问题
  13. 找到这段代码
  14. void DrawHudStringCenter (int x, int y, int r, int g, int b, const char *fmt, ... )
  15. {
  16.   va_list va_alist;
  17.   char buf[256];
  18.   va_start (va_alist, fmt);
  19.   _vsnprintf (buf, sizeof(buf), fmt, va_alist);
  20.   va_end (va_alist);
  21.   if( cvar.confont ) {
  22.       int length, height;
  23.       DrawConsoleStringLenEx(buf, &length, &height );
  24.       x = x - length/2;
  25.       DrawSetTextColorEx(/*(float)*/r/255.0,/*(float)*/g/255.0,/*(float)*/b/255.0);
  26.       DrawConsoleStringEx(x,y,buf);
  27.   } else {
  28.       int borderY = displayCenterY*2-18;
  29.       if( y<0 || y>borderY ) { return; }
  30.       int drawLen = DrawLen(buf);
  31.       x = x-drawLen/2;
  32.       int borderX = displayCenterX*2-11;
  33.       int minX = x;
  34.       int maxX = x+drawLen;
  35.       bool needSingleCheck = (minX<1 || maxX>borderX);
  36.       if( needSingleCheck )
  37.       {
  38.           for ( char * p = buf; *p; p++ )
  39.           {
  40.               int next = x + screeninfo.charWidths[*p];
  41.               if( x>0 && x<borderX )
  42.                   gEngfuncs.pfnDrawCharacter (x, y, *p, r, g, b);
  43.               x = next;
  44.           }
  45.       } else {
  46.           for ( char * p = buf; *p; p++ )
  47.           {
  48.               int next = x + screeninfo.charWidths[*p];
  49.               gEngfuncs.pfnDrawCharacter (x, y, *p, r, g, b);
  50.               x = next;
  51.           }
  52.       }
  53.   }
  54. }
  55. 改成
  56. void DrawHudStringCenter (int x, int y, int r, int g, int b, const char *fmt, ... )
  57. {
  58.   va_list va_alist;
  59.   char buf[256];
  60.   va_start (va_alist, fmt);
  61.   _vsnprintf (buf, sizeof(buf), fmt, va_alist);
  62.   va_end (va_alist);
  63.   if( cvar.confont ) {
  64.       int length, height;
  65.       gEngfuncs.pfnDrawConsoleStringLen( buf, &length, &height );
  66.       x = x - length/2;
  67.       gEngfuncs.pfnDrawSetTextColor(/*(float)*/r/255.0,/*(float)*/g/255.0,/*(float)*/b/255.0);
  68.       gEngfuncs.pfnDrawConsoleString(x,y,buf);
  69.   } else {
  70.       int borderY = displayCenterY*2-18;
  71.       if( y<0 || y>borderY ) { return; }
  72.       int drawLen = DrawLen(buf);
  73.       x = x-drawLen/2;
  74.       int borderX = displayCenterX*2-11;
  75.       int minX = x;
  76.       int maxX = x+drawLen;
  77.       bool needSingleCheck = (minX<1 || maxX>borderX);
  78.       if( needSingleCheck )
  79.       {
  80.           for ( char * p = buf; *p; p++ )
  81.           {
  82.               int next = x + screeninfo.charWidths[*p];
  83.               if( x>0 && x<borderX )
  84.                   gEngfuncs.pfnDrawCharacter (x, y, *p, r, g, b);
  85.               x = next;
  86.           }
  87.       } else {
  88.           for ( char * p = buf; *p; p++ )
  89.           {
  90.               int next = x + screeninfo.charWidths[*p];
  91.               gEngfuncs.pfnDrawCharacter (x, y, *p, r, g, b);
  92.               x = next;
  93.           }
  94.       }
  95.   }
  96. }
  97. //////////////////////////////////
  98. 找到这段代码
  99. void DrawHudString (int x, int y, int r, int g, int b, const char *fmt, ... )
  100. {
  101.   va_list va_alist;
  102.   char buf[256];
  103.   va_start (va_alist, fmt);
  104.   _vsnprintf (buf, sizeof(buf), fmt, va_alist);
  105.   va_end (va_alist);
  106.   if(cvar.confont)
  107.   {
  108.       DrawSetTextColorEx(/*(float)*/r/255.0,/*(float)*/g/255.0,/*(float)*/b/255.0);
  109.       DrawConsoleStringEx(x,y,buf);
  110.   } else {
  111.       int borderY = displayCenterY*2-18;
  112.       if( y<0 || y>borderY ) { return; }
  113.       bool needSingleCheck=false;
  114.       int borderX = displayCenterX*2-11;
  115.       int drawLen = DrawLen(buf);
  116.       if( x<1 ){ needSingleCheck=true; }
  117.       else
  118.       {
  119.           int maxX = x+drawLen;
  120.           needSingleCheck = (maxX>borderX);
  121.       }
  122.       if( needSingleCheck )
  123.       {
  124.           for ( char * p = buf; *p; p++ )
  125.           {
  126.               int next = x + screeninfo.charWidths[*p];
  127.               if( x>0 && x<borderX )
  128.                   gEngfuncs.pfnDrawCharacter (x, y, *p, r, g, b);
  129.               x = next;
  130.           }
  131.       }else {
  132.           for ( char * p = buf; *p; p++ )
  133.           {
  134.               int next = x + screeninfo.charWidths[*p];
  135.               gEngfuncs.pfnDrawCharacter (x, y, *p, r, g, b);
  136.               x = next;
  137.           }
  138.       }
  139.   }
  140. }
  141. 改成
  142. void DrawHudString (int x, int y, int r, int g, int b, const char *fmt, ... )
  143. {
  144.   va_list va_alist;
  145.   char buf[256];
  146.   va_start (va_alist, fmt);
  147.   _vsnprintf (buf, sizeof(buf), fmt, va_alist);
  148.   va_end (va_alist);
  149.   if(cvar.confont)
  150.   {
  151.       gEngfuncs.pfnDrawSetTextColor(/*(float)*/r/255.0,/*(float)*/g/255.0,/*(float)*/b/255.0);
  152.       gEngfuncs.pfnDrawConsoleString(x,y,buf);
  153.   } else {
  154.       int borderY = displayCenterY*2-18;
  155.       if( y<0 || y>borderY ) { return; }
  156.       bool needSingleCheck=false;
  157.       int borderX = displayCenterX*2-11;
  158.       int drawLen = DrawLen(buf);
  159.       if( x<1 ){ needSingleCheck=true; }
  160.       else
  161.       {
  162.           int maxX = x+drawLen;
  163.           needSingleCheck = (maxX>borderX);
  164.       }
  165.       if( needSingleCheck )
  166.       {
  167.           for ( char * p = buf; *p; p++ )
  168.           {
  169.               int next = x + screeninfo.charWidths[*p];
  170.               if( x>0 && x<borderX )
  171.                   gEngfuncs.pfnDrawCharacter (x, y, *p, r, g, b);
  172.               x = next;
  173.           }
  174.       }else {
  175.           for ( char * p = buf; *p; p++ )
  176.           {
  177.               int next = x + screeninfo.charWidths[*p];
  178.               gEngfuncs.pfnDrawCharacter (x, y, *p, r, g, b);
  179.               x = next;
  180.           }
  181.       }
  182.   }
  183. }
  184. //////////////////////////////////////
  185. 还有这段
  186. int Initialize (cl_enginefunc_t *pEnginefuncs, int iVersion)
  187. {
  188.   assert(pEnginefuncs);
  189.   memcpy (&gEngfuncs,    pEnginefuncs, sizeof(cl_enginefunc_t));
  190.   memcpy (&gHookedEngfuncs, pEnginefuncs, sizeof(cl_enginefunc_t));
  191.   gHookedEngfuncs.pfnSPR_Set      = SPR_Set;
  192.   gHookedEngfuncs.pfnSPR_DrawHoles  = SPR_DrawHoles;
  193.   gHookedEngfuncs.pfnSPR_DrawAdditive = SPR_DrawAdditive;
  194.   gHookedEngfuncs.pfnSPR_Draw      = SPR_Draw;
  195.   gHookedEngfuncs.pfnSPR_Load      = SPR_Load;
  196. //    gHookedEngfuncs.pfnDrawCharacter  = DrawCharacter;
  197. //    gHookedEngfuncs.pfnDrawConsoleString = DrawConsoleStringEx;
  198. //    gHookedEngfuncs.pfnDrawSetTextColor = DrawSetTextColorEx;
  199.   gHookedEngfuncs.pfnDrawConsoleStringLen = DrawConsoleStringLenEx;
  200.   gHookedEngfuncs.pfnFillRGBA      = FillRGBA;
  201.   gHookedEngfuncs.pfnHookUserMsg    = HookUserMsg;
  202.   gHookedEngfuncs.pfnHookEvent    = HookEvent;
  203.   keyBindManager.con_visible = gEngfuncs.Con_IsVisible;
  204.   int nResult = pInitialize(&gHookedEngfuncs,iVersion);
  205.   static bool firstInitialize = true;
  206.   if(firstInitialize)
  207.   {
  208.       firstInitialize = false;
  209.       srand((unsigned)time(NULL));
  210.       keyBindManager.init();
  211.       keyBindManager.CallBack_Execute = CB_KeyManager_Exec;
  212.       keyBindManager.CallBack_ConType = CB_KeyManager_ConType;
  213.       keyBindManager.con_visible = gEngfuncs.Con_IsVisible;
  214.      
  215.       gConsole.setcolortag( 'b', 25, 50,250);
  216.       gConsole.setcolortag( 'r',165, 42, 42);
  217.       gConsole.setcolortag( 'g', 82,139,139);
  218.       gConsole.setcolortag( 'w',240,255,255);
  219.       gConsole.setcolortag( 'y', -10,-10,-10);
  220.      
  221.       gConsole.echo("&y\MAX Hook 6.7 \n");
  222.       gConsole.echo("&w\Tweaked: Superstyle \n");
  223.       gConsole.echo("&w\MAX战队 版权所有 \n");
  224.       gConsole.echo("");
  225.       ogcMenu.init(getOgcDirFile("Menu.txt").c_str());
  226.       Init_Command_Interpreter();
  227.       ogc_exec("LBChack");
  228.       cvar.alive_method = 1;
  229.       cmd.exec("wall hide 0;lambert hide 0;nosky hide 0");
  230.       pEnginefuncs->pfnConsolePrint("LBChack 1.0 \n");
  231.       pEnginefuncs->pfnConsolePrint(" \n");
  232.       pEnginefuncs->pfnConsolePrint(" \n");
  233.       detour_S_DynamicSound();
  234.       soundPatch.apply();
  235.       cvar.spec_fix = false;
  236.       me.spread.prcflags = 0;
  237.       me.spread.random_seed = 0;
  238.       me.spread.recoil = 0;
  239.       me.spread.gtime = 0;
  240.       me.spread.prevtime = 0;
  241.       me.spread.brokentime = 0;
  242.       me.spread.spreadvar = 0;
  243.       me.spread.recoiltime = 0;
  244.       me.spread.firing = false;
  245.   }
  246.   return nResult;
  247. }
  248. 注意Initialize 不要吓改,可能会引起无法显示路线的问题 所以只删掉了如下三个东东,主要问题可能就出现在他们身上
  249. //    gHookedEngfuncs.pfnDrawCharacter  = DrawCharacter;
  250. //    gHookedEngfuncs.pfnDrawConsoleString = DrawConsoleStringEx;
  251. //    gHookedEngfuncs.pfnDrawSetTextColor = DrawSetTextColorEx;
[ 此贴被步惊天在2007-09-09 19:31重新编辑 ]
附件: MAX20Hook206_1155824688.rar (202 K) 下载数:541
猴岛顾问

ZxID:1203163

等级: 少尉
举报 只看该作者 沙发   发表于: 2007-09-03 0
收下,我做的都是无线的看看这个代码,做个线路的试试
猴岛顾问

ZxID:1203163

等级: 少尉
举报 只看该作者 板凳   发表于: 2007-09-03 0
--------------------Configuration: uindows - Win32 Release--------------------
Compiling...
aimbot.cpp
apihook.cpp
attack.cpp
AutoMove.cpp
AutoRoute.cpp
bind.cpp
calcscreen.cpp
client.cpp
D:\y游戏工具\MAX20Hook206_1155824688\client.cpp(2942) : warning C4129: '? : unrecognized character escape sequence
D:\y游戏工具\MAX20Hook206_1155824688\client.cpp(4324) : warning C4129: 'M' : unrecognized character escape sequence
D:\y游戏工具\MAX20Hook206_1155824688\client.cpp(4325) : warning C4129: 'T' : unrecognized character escape sequence
D:\y游戏工具\MAX20Hook206_1155824688\client.cpp(4326) : warning C4129: 'M' : unrecognized character escape sequence
color.cpp
console.cpp
cvar.cpp
DrawText.cpp
D:\y游戏工具\MAX20Hook206_1155824688\DrawText.cpp(137) : warning C4244: 'argument' : conversion from 'int' to 'float', possible loss of data
D:\y游戏工具\MAX20Hook206_1155824688\DrawText.cpp(137) : warning C4244: 'argument' : conversion from 'int' to 'float', possible loss of data
D:\y游戏工具\MAX20Hook206_1155824688\DrawText.cpp(143) : warning C4244: 'argument' : conversion from 'int' to 'float', possible loss of data
D:\y游戏工具\MAX20Hook206_1155824688\DrawText.cpp(143) : warning C4244: 'argument' : conversion from 'int' to 'float', possible loss of data
D:\y游戏工具\MAX20Hook206_1155824688\DrawText.cpp(143) : warning C4244: 'argument' : conversion from 'int' to 'float', possible loss of data
D:\y游戏工具\MAX20Hook206_1155824688\DrawText.cpp(150) : warning C4244: 'argument' : conversion from 'int' to 'float', possible loss of data
D:\y游戏工具\MAX20Hook206_1155824688\DrawText.cpp(150) : warning C4244: 'argument' : conversion from 'int' to 'float', possible loss of data
D:\y游戏工具\MAX20Hook206_1155824688\DrawText.cpp(160) : warning C4244: '=' : conversion from 'float' to 'int', possible loss of data
D:\y游戏工具\MAX20Hook206_1155824688\DrawText.cpp(161) : warning C4244: '=' : conversion from 'float' to 'int', possible loss of data
D:\y游戏工具\MAX20Hook206_1155824688\DrawText.cpp(162) : warning C4244: '=' : conversion from 'float' to 'int', possible loss of data
eventhook.cpp
gpatch.cpp
interpreter.cpp
log.cpp
D:\y游戏工具\MAX20Hook206_1155824688\log.h(18) : error C2146: syntax error : missing ';' before identifier 'm_strLogPath'
D:\y游戏工具\MAX20Hook206_1155824688\log.h(18) : error C2501: 'CString' : missing storage-class or type specifiers
D:\y游戏工具\MAX20Hook206_1155824688\log.h(18) : error C2501: 'm_strLogPath' : missing storage-class or type specifiers
D:\y游戏工具\MAX20Hook206_1155824688\log.cpp(25) : error C2065: 'm_strLogPath' : undeclared identifier
D:\y游戏工具\MAX20Hook206_1155824688\log.cpp(25) : error C2440: '=' : cannot convert from 'const char *' to 'int'
        This conversion requires a reinterpret_cast, a C-style cast or function-style cast
D:\y游戏工具\MAX20Hook206_1155824688\log.cpp(30) : error C2228: left of '.IsEmpty' must have class/struct/union type
D:\y游戏工具\MAX20Hook206_1155824688\log.cpp(33) : error C2065: 'AfxIsValidString' : undeclared identifier
D:\y游戏工具\MAX20Hook206_1155824688\log.cpp(52) : error C2065: 'AfxGetApp' : undeclared identifier
D:\y游戏工具\MAX20Hook206_1155824688\log.cpp(52) : error C2227: left of '->m_pszExeName' must point to class/struct/union
D:\y游戏工具\MAX20Hook206_1155824688\log.cpp(54) : error C2065: 'CTime' : undeclared identifier
D:\y游戏工具\MAX20Hook206_1155824688\log.cpp(54) : error C2146: syntax error : missing ';' before identifier 'ct'
D:\y游戏工具\MAX20Hook206_1155824688\log.cpp(54) : error C2065: 'ct' : undeclared identifier
D:\y游戏工具\MAX20Hook206_1155824688\log.cpp(55) : error C2653: 'CTime' : is not a class or namespace name
D:\y游戏工具\MAX20Hook206_1155824688\log.cpp(56) : error C2228: left of '.Format' must have class/struct/union type
main.cpp
menu.cpp
mpatcher.cpp
opengl.cpp
playeritems.cpp
random.cpp
recoil.cpp
rfunc.cpp
sprites.cpp
stdafx.cpp
stringfinder.cpp
timehandling.cpp
trace.cpp
D:\y游戏工具\MAX20Hook206_1155824688\trace.cpp(119) : warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
D:\y游戏工具\MAX20Hook206_1155824688\trace.cpp(119) : warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
D:\y游戏工具\MAX20Hook206_1155824688\trace.cpp(119) : warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
interface.cpp
执行 cl.exe 时出错.

uindows.dll - 1 error(s), 0 warning(s)
person135

ZxID:1176179

等级: 新兵
举报 只看该作者 地板   发表于: 2007-09-06 0
xie xie le da ge

wo ding ni
死鱼高达

ZxID:1138010

等级: 列兵
举报 只看该作者 4楼  发表于: 2007-09-06 0
带路点的源码少见,谢谢
jahankazdi

ZxID:1250613

等级: 列兵
举报 只看该作者 5楼  发表于: 2007-09-15 0
   
guestxp

ZxID:1247196

等级: 下士
举报 只看该作者 6楼  发表于: 2007-10-21 0
是少见,..先下了,好用再回来顶一下..
guestxp

ZxID:1247196

等级: 下士
举报 只看该作者 7楼  发表于: 2007-10-21 0
有问题啊,,,只有9K....??是我的问题还是骗子?
guestxp

ZxID:1247196

等级: 下士
举报 只看该作者 8楼  发表于: 2007-10-21 0
大家不要下了..没法用!是错误的
CCASNK

ZxID:1189260

等级: 准尉
CCA暴力战队形象代言人
举报 只看该作者 9楼  发表于: 2007-10-23 0
這個代碼不錯 我 回去 看看去 呵呵
穿越火线群:40672092
CSonline群:80204001
k961106

ZxID:1303817

等级: 新兵
举报 只看该作者 10楼  发表于: 2007-11-20 0
good
a09080711

ZxID:1172159

等级: 新兵
举报 只看该作者 11楼  发表于: 2007-11-30 0
来学习  支持一下
ddkk996

ZxID:1063115

等级: 中士
举报 只看该作者 12楼  发表于: 2007-12-18 0
DDD
kepp3307

ZxID:1234602

等级: 新兵
举报 只看该作者 13楼  发表于: 2007-12-24 0
cccccccccccccccccccccccccccc
kepp3307

ZxID:1234602

等级: 新兵
举报 只看该作者 14楼  发表于: 2007-12-24 0
cccccccccccccccccccccccccc
s123456sx0330sc

ZxID:1215352

等级: 列兵
举报 只看该作者 15楼  发表于: 2008-01-02 0
  可以编入其他作弊器不
venoomhk

ZxID:1236410

等级: 列兵
举报 只看该作者 16楼  发表于: 2008-02-12 0
thxxxxxxxxxxxxxxxxxxxxxxx
546454055

ZxID:1352233

等级: 列兵
爱暴力!!!!!!!!!!!!!!1
举报 只看该作者 17楼  发表于: 2008-02-12 0
vxccccvxvfdvfxvx
hanyang88665

ZxID:1335407

等级: 少尉
举报 只看该作者 18楼  发表于: 2008-02-17 0
ddddddddddddddddddddddddddd
aaaping

ZxID:1235428

等级: 少校
举报 只看该作者 19楼  发表于: 2008-02-21 0
不会用
« 返回列表
发帖 回复