bang numpang beljar jg neh, :sweet:
btw fungsi FindPattern sndiri apa aja yah?
btw fungsi FindPattern sndiri apa aja yah?
Untuk Mencari address Pada suatu Gamebang numpang beljar jg neh, :sweet:
btw fungsi FindPattern sndiri apa aja yah?
#include <fstream>
#include <Windows.h>
#include <stdio.h>
LPTSTR dwModule = "Audition.exe";
DWORD dwStartAddress, ResultAOB =0;
void MEMwrite(void *adr, void *ptr, int size)
{
DWORD OldProtection;
VirtualProtect(adr,size,PAGE_EXECUTE_READWRITE, &OldProtection);
memcpy(adr,ptr,size);
VirtualProtect(adr,size,OldProtection, &OldProtection);
}
bool Match(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 Pattern(DWORD dwAddress,DWORD dwLen,BYTE *bMask,char * szMask){
for(DWORD i=0; i < dwLen; i++)
if( Match( (BYTE*)( dwAddress+i ),bMask,szMask) )
return (DWORD)(dwAddress+i);
return 0;
}
int __stdcall PFON(void){
dwStartAddress = 0x400000;
do {
dwStartAddress = (DWORD)GetModuleHandle(dwModule);
Sleep(50);
}while(!dwStartAddress);
DWORD dwSize = 0x500000;
DWORD PFNORMAL = Pattern(dwStartAddress,dwSize,(PBYTE)"\x7D\x3F\x33\x33\x73\x3F\x9A\x99","xxxxxx");
DWORD GetADR = PFNORMAL - dwStartAddress;
MEMwrite((void*)GetADR, (PBYTE)"\x00",1 );
return 0;
}
DWORD WINAPI Loopely(LPVOID param){
while(1){
if(GetAsyncKeyState(VK_F3)&1){
PFON();
MessageBeep(MB_ICONINFORMATION);
}
Sleep(50);
}
return 0;
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
if (dwReason == DLL_PROCESS_ATTACH)
{
DisableThreadLibraryCalls(hDll);
if(dwReason == DLL_PROCESS_ATTACH){
MessageBeep(MB_ICONINFORMATION);
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)Loopely, 0, 0, 0);
}
else if(dwReason == DLL_PROCESS_DETACH)
{
}
}
return TRUE;
}
cba ini omPada waktu tekan hotkey = langsung DC game nya...
pencerahan gan.
#include <fstream>
#include <Windows.h>
#include <stdio.h>
LPTSTR dwModule = "Audition.exe";
DWORD dwStartAddress, ResultAOB =0;
void MEMwrite(void *adr, void *ptr, int size)
{
DWORD OldProtection;
VirtualProtect(adr,size,PAGE_EXECUTE_READWRITE, &OldProtection);
memcpy(adr,ptr,size);
VirtualProtect(adr,size,OldProtection, &OldProtection);
}
bool Match(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 Pattern(DWORD dwAddress,DWORD dwLen,BYTE *bMask,char * szMask){
for(DWORD i=0; i < dwLen; i++)
if( Match( (BYTE*)( dwAddress+i ),bMask,szMask) )
return (DWORD)(dwAddress+i);
return 0;
}
DWORD WINAPI Loopely(LPVOID param){
DWORD PFNORMAL = Pattern(0x400000,0x500000,(PBYTE)"\x7D\x3F\x33\x33\x73\x3F\x9A\x99","xxxxxx");
while(1){
if(GetAsyncKeyState(VK_F3)&1){
MEMwrite((void*)PFNORMAL, (PBYTE)"\x00",1 );
MessageBeep(MB_ICONINFORMATION);
}
Sleep(50);
}
return 0;
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
if (dwReason == DLL_PROCESS_ATTACH)
{
DisableThreadLibraryCalls(hDll);
if(dwReason == DLL_PROCESS_ATTACH){
MessageBeep(MB_ICONINFORMATION);
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)Loopely, 0, 0, 0);
}
else if(dwReason == DLL_PROCESS_DETACH)
{
}
}
return TRUE;
}
Pasti ada yang salah.Pada waktu tekan hotkey = langsung DC game nya...Code:#include <fstream> #include <Windows.h> #include <stdio.h> LPTSTR dwModule = "Audition.exe"; DWORD dwStartAddress, ResultAOB =0; void MEMwrite(void *adr, void *ptr, int size) { DWORD OldProtection; VirtualProtect(adr,size,PAGE_EXECUTE_READWRITE, &OldProtection); memcpy(adr,ptr,size); VirtualProtect(adr,size,OldProtection, &OldProtection); } bool Match(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 Pattern(DWORD dwAddress,DWORD dwLen,BYTE *bMask,char * szMask){ for(DWORD i=0; i < dwLen; i++) if( Match( (BYTE*)( dwAddress+i ),bMask,szMask) ) return (DWORD)(dwAddress+i); return 0; } int __stdcall PFON(void){ dwStartAddress = 0x400000; do { dwStartAddress = (DWORD)GetModuleHandle(dwModule); Sleep(50); }while(!dwStartAddress); DWORD dwSize = 0x500000; DWORD PFNORMAL = Pattern(dwStartAddress,dwSize,(PBYTE)"\x7D\x3F\x33\x33\x73\x3F\x9A\x99","xxxxxx"); DWORD GetADR = PFNORMAL - dwStartAddress; MEMwrite((void*)GetADR, (PBYTE)"\x00",1 ); return 0; } DWORD WINAPI Loopely(LPVOID param){ while(1){ if(GetAsyncKeyState(VK_F3)&1){ PFON(); MessageBeep(MB_ICONINFORMATION); } Sleep(50); } return 0; } BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved ) { if (dwReason == DLL_PROCESS_ATTACH) { DisableThreadLibraryCalls(hDll); if(dwReason == DLL_PROCESS_ATTACH){ MessageBeep(MB_ICONINFORMATION); CreateThread(0, 0, (LPTHREAD_START_ROUTINE)Loopely, 0, 0, 0); } else if(dwReason == DLL_PROCESS_DETACH) { } } return TRUE; }
pencerahan gan.
kalo menurut wa yg salah ada pada jumlah mask nya,Pada waktu tekan hotkey = langsung DC game nya...Code:#include <fstream> #include <Windows.h> #include <stdio.h> LPTSTR dwModule = "Audition.exe"; DWORD dwStartAddress, ResultAOB =0; void MEMwrite(void *adr, void *ptr, int size) { DWORD OldProtection; VirtualProtect(adr,size,PAGE_EXECUTE_READWRITE, &OldProtection); memcpy(adr,ptr,size); VirtualProtect(adr,size,OldProtection, &OldProtection); } bool Match(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 Pattern(DWORD dwAddress,DWORD dwLen,BYTE *bMask,char * szMask){ for(DWORD i=0; i < dwLen; i++) if( Match( (BYTE*)( dwAddress+i ),bMask,szMask) ) return (DWORD)(dwAddress+i); return 0; } int __stdcall PFON(void){ dwStartAddress = 0x400000; do { dwStartAddress = (DWORD)GetModuleHandle(dwModule); Sleep(50); }while(!dwStartAddress); DWORD dwSize = 0x500000; DWORD PFNORMAL = Pattern(dwStartAddress,dwSize,(PBYTE)"\x7D\x3F\x33\x33\x73\x3F\x9A\x99","xxxxxx"); DWORD GetADR = PFNORMAL - dwStartAddress; MEMwrite((void*)GetADR, (PBYTE)"\x00",1 ); return 0; } DWORD WINAPI Loopely(LPVOID param){ while(1){ if(GetAsyncKeyState(VK_F3)&1){ PFON(); MessageBeep(MB_ICONINFORMATION); } Sleep(50); } return 0; } BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved ) { if (dwReason == DLL_PROCESS_ATTACH) { DisableThreadLibraryCalls(hDll); if(dwReason == DLL_PROCESS_ATTACH){ MessageBeep(MB_ICONINFORMATION); CreateThread(0, 0, (LPTHREAD_START_ROUTINE)Loopely, 0, 0, 0); } else if(dwReason == DLL_PROCESS_DETACH) { } } return TRUE; }
pencerahan gan.
Open File apa di Olly nyadapet dari OllyDbg