Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

Rekomendowane odpowiedzi

Opublikowano

Poszperalem i znalazlem :)

Pochodzi on z Ug

 

#include <windows.h>

#include <string.h>

#define POINTER 0x005FACDC

#define OFF 0x8

#define OFF_MOV_SPEED 0x5b2

#define OFF_ATK_SPEED 0x5b6

#define ATK_TMR 1001

#define MOV_TMR 1002

#include <stdlib.h>

#define Refresh 300

#define atk 301

#define mov 302

/* Make the class name into a global variable */

char szClassName[ ] = "WindowsApp";

HWND hwnd_mov, hwnd_atk, hwnd_value_mov, hwnd_value_atk, hwnd_st;

enum{BTN_MOV_SPEED, BTN_ATK_SPEED, LBL_ST_MOV, LBL_ST_ATK, MOV_VALUE, ATK_VALUE};

DWORD addr_mov, addr_atk;

int value_atk, value_mov;

char text[6], text2[6];

static int normal = 16256;

static int norm = 16280;

static char* string = "16256";

void IsRunning(void)

{

HWND hWnd = FindWindow(0, "locMt2");

if(!hWnd){

MessageBox(NULL, "Waiting for LocMt2", "ERROR", MB_OK);

do

{hWnd = FindWindow(0, "LocMt2");

}while(!hWnd);

}

}

HANDLE FindProc()

{

HWND hWnd = FindWindow(0, "LocMt2");

DWORD proc_id;

GetWindowThreadProcessId(hWnd, &proc_id);

HANDLE hProcess = OpenProcess(PROCESS_ALL_ACCESS, FALSE, proc_id);

return hProcess;

}

void RefreshAddr()

{

DWORD ptr = (DWORD)POINTER;

DWORD buff;

ReadProcessMemory(FindProc(), (LPVOID)ptr, &buff, sizeof(buff), NULL);

DWORD buff2;

buff +=0x08;

ReadProcessMemory(FindProc(), (LPVOID)buff, &buff2, sizeof(buff), NULL);

addr_mov = buff2 + (DWORD)OFF_MOV_SPEED;

ReadProcessMemory(FindProc(), (LPVOID)buff, &buff2, sizeof(buff), NULL);

addr_atk = buff2 + (DWORD)OFF_ATK_SPEED;

}

HINSTANCE hInst;

LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)

{

switch (message) /* handle the messages */

{

case WM_DESTROY:

PostQuitMessage (0);

/* send a WM_QUIT to the message queue */

break;

case WM_CREATE:

IsRunning();

hwnd_mov= CreateWindow("Button", "Speed Mov: ", WS_BORDER | WS_CHILD | WS_VISIBLE | WS_DISABLED | BS_AUTOCHECKBOX ,0+10,0+2,120,20,hwnd,(HMENU)BTN_MOV_SPEED,hInst,NULL);

hwnd_value_mov = CreateWindow("Edit", "16256", WS_BORDER | WS_CHILD | WS_VISIBLE | WS_DISABLED |ES_NUMBER ,0+135,0+2,70,20,hwnd,(HMENU)MOV_VALUE,hInst,NULL);

hwnd_atk = CreateWindow("Button", "Speed Attack: ", WS_BORDER | WS_CHILD | WS_VISIBLE| WS_DISABLED | BS_AUTOCHECKBOX ,0+10,0+25,120,20,hwnd,(HMENU)BTN_ATK_SPEED,hInst,NULL);

hwnd_value_atk = CreateWindow("Edit", "16256", WS_BORDER | WS_CHILD | WS_VISIBLE | WS_DISABLED | ES_NUMBER ,0+135,0+25,70,20,hwnd,(HMENU)ATK_VALUE,hInst,NULL);

hwnd_st = CreateWindow("Button", "START", WS_BORDER | WS_CHILD | WS_VISIBLE ,0+140,0+110,50,20,hwnd,(HMENU)100,hInst,NULL);

SetTimer(hwnd, (UINT)Refresh, (UINT)200, NULL);

RefreshAddr();

break;

case WM_COMMAND:

switch(wParam)

{

case 100:

EnableWindow(hwnd_mov, true);

EnableWindow(hwnd_value_mov, true);

EnableWindow(hwnd_atk, true);

EnableWindow(hwnd_value_atk, true);

EnableWindow(hwnd_st, false);

break;

case BTN_MOV_SPEED:

if(IsDlgButtonChecked(hwnd, BTN_MOV_SPEED))

{

SendMessage(hwnd_value_mov, WM_GETTEXT, sizeof(text), (LPARAM)text);

value_mov= atoi(text);

SetTimer(hwnd, (UINT)mov, (UINT)100, NULL);

}else {KillTimer(hwnd, (UINT)mov);

WriteProcessMemory(FindProc(), (LPVOID)addr_mov, &normal, 2, NULL);

SendMessage(hwnd_value_mov, WM_SETTEXT, 0, (LPARAM)string);

}

break;

case BTN_ATK_SPEED:

if(IsDlgButtonChecked(hwnd, BTN_ATK_SPEED))

{

SendMessage(hwnd_value_atk, WM_GETTEXT, sizeof(text2), (LPARAM)text2);

value_atk = atoi(text2);

SetTimer(hwnd, (UINT)atk, (UINT)100, NULL);

}else {KillTimer(hwnd, (UINT)atk);

WriteProcessMemory(FindProc(), (LPVOID)addr_atk, &norm,2, NULL);

SendMessage(hwnd_value_atk, WM_SETTEXT, 0, (LPARAM)string);

}

break;

}break;

case WM_TIMER:

switch(wParam)

{

case Refresh:

RefreshAddr();

break;

case mov:

SendMessage(hwnd_value_mov, WM_GETTEXT, sizeof(text), (LPARAM)text);

value_mov= atoi(text);

WriteProcessMemory(FindProc(), (LPVOID)addr_mov, &value_mov, 2, NULL);

break;

case atk:

SendMessage(hwnd_value_atk, WM_GETTEXT, sizeof(text2), (LPARAM)text2);

value_atk= atoi(text2);

WriteProcessMemory(FindProc(), (LPVOID)addr_atk, &value_atk, 2, NULL);

break;

}

break; default: /* for messages that we don't deal with */

return DefWindowProc (hwnd, message, wParam, lParam);

}

return 0;

}

int WINAPI WinMain (HINSTANCE hThisInstance,

HINSTANCE hPrevInstance,

LPSTR lpszArgument,

int nFunsterStil)

{

HWND hwnd; /* This is the handle for our window */

MSG messages; /* Here messages to the application are saved */

WNDCLASSEX wincl; /* Data structure for the windowclass */

/* The Window structure */

wincl.hInstance = hThisInstance;

wincl.lpszClassName = szClassName;

wincl.lpfnWndProc = WindowProcedure; /* This function is called by windows */

wincl.style = CS_DBLCLKS; /* Catch double-clicks */

wincl.cbSize = sizeof (WNDCLASSEX);

/* Use default icon and mouse-pointer */

wincl.hIcon = LoadIcon (NULL, IDI_APPLICATION);

wincl.hIconSm = LoadIcon (NULL, IDI_APPLICATION);

wincl.hCursor = LoadCursor (NULL, IDC_ARROW);

wincl.lpszMenuName = NULL; /* No menu */

wincl.cbClsExtra = 0; /* No extra bytes after the window class */

wincl.cbWndExtra = 0; /* structure or the window instance */

/* Use Windows's default color as the background of the window */

wincl.hbrBackground = (HBRUSH) COLOR_BACKGROUND;

/* Register the window class, and if it fails quit the program */

if (!RegisterClassEx (&wincl))

return 0;

/* The class is registered, let's create the program*/

hwnd = CreateWindowEx (

0, /* Extended possibilites for variation */

szClassName, /* Classname */

"LocMt2 HAT", /* Title Text */

WS_OVERLAPPEDWINDOW, /* default window */

CW_USEDEFAULT, /* Windows decides the position */

CW_USEDEFAULT, /* where the window ends up on the screen */

230, /* The programs width */

180, /* and height in pixels */

HWND_DESKTOP, /* The window is a child-window to desktop */

NULL, /* No menu */

hThisInstance, /* Program Instance handler */

NULL /* No Window Creation data */

);

/* Make the window visible on the screen */

ShowWindow (hwnd, nFunsterStil);

/* Run the message loop. It will run until GetMessage() returns 0 */

while (GetMessage (&messages, NULL, 0, 0))

{

/* Translate virtual-key messages into character messages */

TranslateMessage(&messages);

/* Send message to WindowProcedure */

DispatchMessage(&messages);

}

/* The program return-value is 0 - The value that PostQuitMessage() gave */

return messages.wParam;

}

/* This function is called by the Windows function DispatchMessage() */

 

Zobaczcie czy wam dziala licze na + :)

4143_1.png

Opublikowano

nie dość że metin znowu w nie odpowiednim dziale na dodatek to nieznajomość języka nie uprawnia cie do kopiowania

nie wiem na co liczysz że ktoś ci to przekompiluje ? wszytstko masz to sprawdzaj sobie sam

 

zresztą to działa tylko na serwerze LOCMT2

If you = stupid then

insert(foot.in.your.ass)

end if

licznik-54-96732-stat.png

×
×
  • Dodaj nową pozycję...