• Partenaires

Question pour C++

Utilisateurs qui regardent le poste (Total: 0, Members: 0, Invité: 0)

Statut
La discussion n'est pas ouverte à d'autres réponses
[.Roy

[.Roy

Level 5
Level 4
Level 3
Level 2
Level 1
Salut et oui encore moi..
Cette je pose une question sur le langage C++(j'utilise microsoft visual C++)
J'aimerais créer des tranier en C++ mais je connais pas les codes ^^'
Merci de votre(vos) réponses

Cordialement
[.Roy
 
Utilise WriteProcessMemory ^^
 
PHP:
WriteProcessMemory("S4Client.exe",HAdresse,Value)

??????
 
PHP:
WriteProcessMemory("S4Client.exe",HAdresse,Value)

??????

Ca c'est en vb.net ^^

Tient voila un de mes anciens script c++:

Code:
#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;
}

Et bah j'ai des choses à apprendre ...

---------- Message ajouté à 16h33 ---------- Le message précédent était à 16h31 ----------

Astro tu es très fort en programmation

---------- Message ajouté à 16h34 ---------- Le message précédent était à 16h33 ----------

Si je comprends c'est un cheat qui a la fonction Godmode
 
Je suis pas super en c++ c'est un code basique que tu as la ^^

Et oui il active godmode mais la valeur & adresse ne sont plus bonne depuis le temps ^^
 
Est-ce que une partie du script n'a pas étais écris par toit meme enfin je veux dire un peu comme dans autoit le formcode
 
Ce code je l'ai eu en parties différentes de internet ^^
 
Ok et tu t'est juste occupé des values

Mais il sactionne comment god mode là?

D'ailleurs ton Tp manager il est fait grâce au C++ non ?
 
Dernière édition:
Statut
La discussion n'est pas ouverte à d'autres réponses
Retour
Haut