Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


75 errors

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
ElectroFusion
Grandmaster Cheater
Reputation: 0

Joined: 17 Dec 2006
Posts: 786

PostPosted: Sun Nov 09, 2008 11:57 pm    Post subject: 75 errors Reply with quote

Dunno why it gives the errors O_o help please?

Code:

#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <commctrl.h>
#include <stdlib.h>
#include "stdafx.h"
#include "crakwre.h"

BOOL bExit = FALSE;
BOOL bExit2 = TRUE;
DWORD dwAddress = 0x00400000;
DWORD dwLen      = 0x7FFFFFFF;
__inline ULONG_PTR ReadPointer(ULONG_PTR* ulBase, INT nOffset){
   if ( !IsBadReadPtr((VOID*)ulBase, sizeof(ULONG_PTR)) )
        if ( !IsBadReadPtr((VOID*)((*(ULONG_PTR*)ulBase)+nOffset), sizeof(ULONG_PTR)) )
            return *(ULONG_PTR*)((*(ULONG_PTR*)ulBase)+nOffset);
    return 0;
}

bool comp(const BYTE* pData, const BYTE* bMask, const char* szMask)
{
    for(;*szMask;++szMask,++pData,++bMask)
        if(*szMask=='x' && *pData!=*bMask )
            return false;
    return (*szMask) == NULL;
}

DWORD dwFindPattern(DWORD dwAddress, DWORD dwLen, BYTE *bMask, char* szMask, DWORD dwOffset)
{
    for(DWORD i=0; i < dwLen; i++)
        if( comp( (BYTE*)( dwAddress+i ),bMask,szMask) )
            return (DWORD)(dwAddress+i+dwOffset);
   
    return 0;
}
DWORD PMA = (DWORD)GetProcAddress(LoadLibrary("USER32.DLL"), "PostMessageA")+5;

__declspec(naked) BOOL WINAPI PostMessageX(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
{
   __asm
   {
      mov  edi, edi
      push ebp
      mov  ebp, esp
      jmp dword ptr ds:[PMA]
   }
}
void crack(HWND thisHwnd){
   DWORD dwMouseBase, dwMouseBase2;
   DWORD dwMouseX, dwMouseY;
   DWORD dwUsername, dwPassword;
   DWORD dwLegitID, dwLegitPass, dwLegitPin;
   char MouseBytes[17]  = "\xA1\xF4\x2B\x89\x00\x53\x56\x8B\xF1\x8d\x88\x78\x09\x00\x00\x89";
   while(bExit2 == FALSE){
   dwUsername = "eee";
   dwPassword = "eee";
   dwLegitID = "eeeee";
   dwLegitPass = "eeee";
   dwLegitPin = "eeee";
    dwMouseBase = *(DWORD*)(dwFindPattern(dwAddress, dwLen, (BYTE*)MouseBytes, "xx????xxxxx????x", 1));
   dwMouseBase2 = *((DWORD*)dwMouseBase) + 0x978;
   dwMouseX = ReadPointer((ULONG_PTR*)dwMouseBase2, 0x84);
   dwMouseY = ReadPointer((ULONG_PTR*)dwMouseBase2, 0x88);
   int pins = 0000;
   while(pins < 10){
      pins = 000 + pins;
   }
   while(pins < 100){
      pins = 00 + pins;
   }
   while(pins < 1000){
      pins = 0 + pins;
   }
   while(pins < 9999){
    dwMouseX = 144;
    dwMouseY = -64;
     PostMessageX(thisHwnd, "WM_LBUTTONDOWN", NULL, lparam);
    PostMessageX(thisHwnd, "WM_LBUTTONUP", NULL, lparam);
     PostMessageX(thisHwnd, "WM_LBUTTONDBLCLK", NULL, lparam);
    PostMessageX(thisHwnd, "WM_LBUTTONUP", NULL, lparam);
    PostMessageX(thisHwnd, "{BACKSPACE}", NULL, lparam);
    PostMessageX(thisHwnd, dwUsername, NULL, lparam);
    dwMouseX = 135;
    dwMouseY = -37;
    PostMessageX(thisHwnd, "WM_LBUTTONDOWN", NULL, lparam);
    PostMessageX(thisHwnd, "WM_LBUTTONUP", NULL, lparam);
     PostMessageX(thisHwnd, "WM_LBUTTONDBLCLK", NULL, lparam);
    PostMessageX(thisHwnd, "WM_LBUTTONUP", NULL, lparam);
    PostMessageX(thisHwnd, "{BACKSPACE}", NULL, lparam);
    PostMessageX(thisHwnd, dwPassword, NULL, lparam);
     dwMouseX = 261;
     dwMouseY = -69;
    PostMessageX(thisHwnd, "WM_LBUTTONDOWN", NULL, lparam);
    PostMessageX(thisHwnd, "WM_LBUTTONUP", NULL, lparam);
    sleep(2000);
     PostMessageX(thisHwnd, "pins", NULL, lparam);
    PostMessageX(thisHwnd, "{ENTER}", NULL, lparam);
    sleep(2000);
    pins++;
    PostMessageX(thisHwnd, "pins", NULL, lparam);
    PostMessageX(thisHwnd, "{ENTER}", NULL, lparam);
    sleep(2000);
    pins++;
     PostMessageX(thisHwnd, "pins", NULL, lparam);
    PostMessageX(thisHwnd, "{ENTER}", NULL, lparam);
    sleep(2000);
    pins++;
     dwMouseX = 98;
    dwMouseY = 23;
    PostMessageX(thisHwnd, "WM_LBUTTONDOWN", NULL, lparam);
    PostMessageX(thisHwnd, "WM_LBUTTONUP", NULL, lparam);
    dwMouseX = 144;
    dwMouseY = -64;
     PostMessageX(thisHwnd, "WM_LBUTTONDOWN", NULL, lparam);
    PostMessageX(thisHwnd, "WM_LBUTTONUP", NULL, lparam);
     PostMessageX(thisHwnd, "WM_LBUTTONDBLCLK", NULL, lparam);
    PostMessageX(thisHwnd, "WM_LBUTTONUP", NULL, lparam);
    PostMessageX(thisHwnd, "{BACKSPACE}", NULL, lparam);
    PostMessageX(thisHwnd, dwLegitID, NULL, lparam);
    dwMouseX = 135;
    dwMouseY = -37;
    PostMessageX(thisHwnd, "WM_LBUTTONDOWN", NULL, lparam);
    PostMessageX(thisHwnd, "WM_LBUTTONUP", NULL, lparam);
     PostMessageX(thisHwnd, "WM_LBUTTONDBLCLK", NULL, lparam);
    PostMessageX(thisHwnd, "WM_LBUTTONUP", NULL, lparam);
    PostMessageX(thisHwnd, "{BACKSPACE}", NULL, lparam);
    PostMessageX(thisHwnd, dwLegitPass, NULL, lparam);
     dwMouseX = 261;
     dwMouseY = -69;
    PostMessageX(thisHwnd, "WM_LBUTTONDOWN", NULL, lparam);
    PostMessageX(thisHwnd, "WM_LBUTTONUP", NULL, lparam);
    sleep(2000);
     PostMessageX(thisHwnd, dwLegitPin, NULL, lparam);
    PostMessageX(thisHwnd, "{ENTER}", NULL, lparam);
    sleep(2000);
     dwMouseX = -321;
    dwMouseY = -458;
     PostMessageX(thisHwnd, "WM_LBUTTONDOWN", NULL, lparam);
    PostMessageX(thisHwnd, "WM_LBUTTONUP", NULL, lparam);
    sleep(2000);
     dwMouseX = -13;
    dwMouseY = -568;
     PostMessageX(thisHwnd, "WM_LBUTTONDOWN", NULL, lparam);
    PostMessageX(thisHwnd, "WM_LBUTTONUP", NULL, lparam);
    sleep(3000);
   }
   ExitThread(0);
}

   if (GetAsyncKeyState({F1})){
       bExit2 = FALSE;
         void crack(thisHwnd);
   }
   if (GetAsyncKeyState({F2})){
      bExit2 = TRUE;
   }

_________________
qwerty147 wrote:

ghostonline wrote:

what world are you in?

bera

but i live in NZ
Back to top
View user's profile Send private message
Overload
Master Cheater
Reputation: 0

Joined: 08 Feb 2008
Posts: 293

PostPosted: Mon Nov 10, 2008 12:22 am    Post subject: Reply with quote

Posting the errors might help Rolling Eyes
_________________
Blog

Quote:
Rhys says:
you can be my maid
Rhys says:
ill buy you a french maid outfit
Tyler says:
Sounds good
Rhys says:
ill hold you to that
Back to top
View user's profile Send private message MSN Messenger
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Mon Nov 10, 2008 12:25 am    Post subject: Reply with quote

What the fuck are you trying to send with PostMessage?

BOOL PostMessage(
HWND hWnd,
UINT Msg,
WPARAM wParam,
LPARAM lParam
);

I hate to tell you, but {ENTER} is not a message.
Back to top
View user's profile Send private message
sloppy
Expert Cheater
Reputation: 0

Joined: 17 Aug 2008
Posts: 123

PostPosted: Mon Nov 10, 2008 2:16 am    Post subject: Reply with quote

Lol Rolling Eyes
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites