Bonjour Guest,
Venez discuter avec la communauté de Cheat-Gam3. Vous pouvez nous rejoindre sur le discord de Cheat-Gam3 https://discord.gg/uPDnJfBD56 .
PHP:WriteProcessMemory("S4Client.exe",HAdresse,Value)
??????
#include <iostream>
#include <windows.h>
#include <tlhelp32.h>
#include <shlwapi.h>
#include <conio.h>
#include <stdio.h>
#include <string>
using namespace std;
DWORD GetTargetThreadIDFromProcName(const char * ProcName)
{
PROCESSENTRY32 pe;
HANDLE thSnapShot;
BOOL retval, ProcFound = false;
thSnapShot = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0);
if(thSnapShot == INVALID_HANDLE_VALUE)
{
//MessageBox(NULL, "Error: Unable to create toolhelp snapshot!", "2MLoader", MB_OK);
printf("Error: Unable to create toolhelp snapshot!");
return false;
}
pe.dwSize = sizeof(PROCESSENTRY32);
retval = Process32First(thSnapShot, &pe);
while(retval)
{
if(StrStrI(pe.szExeFile, ProcName))
{
return pe.th32ProcessID;
}
retval = Process32Next(thSnapShot, &pe);
}
return 0;
}
DWORD GetPidByName(char *szProcName)
{
HANDLE hSnap;
DWORD dwPID = 0;
PROCESSENTRY32 pe = {sizeof(PROCESSENTRY32)};
if((hSnap = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0))!= INVALID_HANDLE_VALUE)
{
if(Process32First(hSnap, &pe))
{
do
{
if(strcmpi(pe.szExeFile, szProcName) == 0)
{
dwPID = pe.th32ProcessID;
break;
}
}
while(Process32Next(hSnap, &pe));
}
CloseHandle(hSnap);
}
return dwPID;
}
int main()
{
cout << "Wait S4Client..." << endl;
while (GetPidByName("S4Client.exe") == 0)
{
}
Sleep(2000);
int addrgodmode = 0x0051C635;
int valuegodmodehack = 3135869072;
DWORD pID = GetTargetThreadIDFromProcName("S4Client.exe");
HANDLE hProc = OpenProcess(PROCESS_ALL_ACCESS, FALSE, pID);
if(WriteProcessMemory (hProc, (LPVOID)addrgodmode, (LPVOID) &valuegodmodehack, sizeof(&valuegodmodehack), NULL)) {
cout << "Injected !";
} else {
cout << "Error !";
}
CloseHandle(hProc);
system("pause");
return 0;
}
Ca c'est en vb.net ^^
Tient voila un de mes anciens script c++:
PHP:]#include <iostream> #include <windows.h> #include <tlhelp32.h> #include <shlwapi.h> #include <conio.h> #include <stdio.h> #include <string> using namespace std; DWORD GetTargetThreadIDFromProcName(const char * ProcName) { PROCESSENTRY32 pe; HANDLE thSnapShot; BOOL retval, ProcFound = false; thSnapShot = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0); if(thSnapShot == INVALID_HANDLE_VALUE) { //MessageBox(NULL, "Error: Unable to create toolhelp snapshot!", "2MLoader", MB_OK); printf("Error: Unable to create toolhelp snapshot!"); return false; } pe.dwSize = sizeof(PROCESSENTRY32); retval = Process32First(thSnapShot, &pe); while(retval) { if(StrStrI(pe.szExeFile, ProcName)) { return pe.th32ProcessID; } retval = Process32Next(thSnapShot, &pe); } return 0; } DWORD GetPidByName(char *szProcName) { HANDLE hSnap; DWORD dwPID = 0; PROCESSENTRY32 pe = {sizeof(PROCESSENTRY32)}; if((hSnap = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0))!= INVALID_HANDLE_VALUE) { if(Process32First(hSnap, &pe)) { do { if(strcmpi(pe.szExeFile, szProcName) == 0) { dwPID = pe.th32ProcessID; break; } } while(Process32Next(hSnap, &pe)); } CloseHandle(hSnap); } return dwPID; } int main() { cout << "Wait S4Client..." << endl; while (GetPidByName("S4Client.exe") == 0) { } Sleep(2000); int addrgodmode = 0x0051C635; int valuegodmodehack = 3135869072; DWORD pID = GetTargetThreadIDFromProcName("S4Client.exe"); HANDLE hProc = OpenProcess(PROCESS_ALL_ACCESS, FALSE, pID); if(WriteProcessMemory (hProc, (LPVOID)addrgodmode, (LPVOID) &valuegodmodehack, sizeof(&valuegodmodehack), NULL)) { cout << "Injected !"; } else { cout << "Error !"; } CloseHandle(hProc); system("pause"); return 0; }
Thread starter | Similar threads | Forum | Replies | Date |
---|---|---|---|---|
B | Recherche d'un uplauncher pour mon serveur privé Dofus | Espace d'aide | 0 |
Similar threads |
---|
Recherche d'un uplauncher pour mon serveur privé Dofus |