Ir a contenido

PURCHASE MEMBERSHIP AT A 25% DISCOUNT Apply here

GET 1 MONTH OF MEMBERSHIP BY CHOOSING THE NEW NAME OF OUR COMPANY! Apply here


Photo

Como Crear un Trainer Console en c++


      
Como Crear un Trainer Console en c++ TvOTohoComo Crear un Trainer Console en c++ TvOToho
Como Crear un Trainer Console en c++

ZzcarloszZ
#1

ZzcarloszZ
  • ZzcarloszZ
  • administrator
  • Mensajes :
    625
  • Reputación :
    220
  • Points :
    6
  • Registrado :
    2012-08-08
Abrimos el Visual studio  y le damos a New Proyect, en el cual pones un nombre:
[You must be registered and logged in to see this image.]
Se abrirá una pantalla Click en Next->Seleccionas la opción (Aplicación Consola)->y descheckeas(No debe estar checked) el checbox de Emcabezados Precompliado.->Finalizar.
Ahora quedara asi:
[You must be registered and logged in to see this image.]
Ahora arriba de stdafx.h ponemos:
Code:
#include <Windows.h>
#include <TlHelp32.h>
#include <Psapi.h>
#include <iostream>
#include <string>
#include <Shlwapi.h>
#pragma comment(lib, "Shlwapi")



Ahora abajo de stdafx.h ponemos:
Code:
using namespace std;



Nos quedaría asi:
Code:
#include <Windows.h>
#include <TlHelp32.h>
#include <Psapi.h>
#include <iostream>
#include <string>
#include <Shlwapi.h>
#include "stdafx.h"
#pragma comment(lib, "Shlwapi")
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
 return 0;
}



Ahora Añadimos un Titulo a nuestra consola:
Code:
int _tmain(int argc, _TCHAR* argv[])
{
 SetConsoleTitleA("My titulo de mi consola");
 return 0;
}



ahora añadimos las variables, en este caso yo usare solo 2 ustede pueden usar mas:

Code:
int sp,Speed;



Añadimos un mensaje a nuestra consola y un retorno de valores:
Code:
#include <Windows.h>
#include <TlHelp32.h>
#include <Psapi.h>
#include <iostream>
#include <string>
#include <Shlwapi.h>
#include "stdafx.h"
#pragma comment(lib, "Shlwapi")
using namespace std;
int Sp,Speed;
int _tmain(int argc, _TCHAR* argv[])
{
 SetConsoleTitleA("My titulo de mi consola");
 cout<<"Sp=> 1(True)/0(False)"<<"\n";
 cin>>Sp;
 cout<<"Speed=> 1(True)/0(False)"<<"\n";
 cin>>Speed;


 return 0;
}



El cin sirve para obtener el valor ingresado por teclado a la consola :3455ñ: 
Ahora añadimos a nuestro código,lo ponemos arriba del main:

Code:
DWORD HS4LProcessPid(WCHAR* ProcessName)
{
 HANDLE hSnapShot;
 hSnapShot=CreateToolhelp32Snapshot (TH32CS_SNAPALL,NULL);
 PROCESSENTRY32 pEntry;
 pEntry.dwSize =sizeof(pEntry);
 Process32First (hSnapShot,&pEntry);
 while(TRUE)
 {
 BOOL hRes=Process32Next (hSnapShot,&pEntry);
if(StrCmpW(pEntry.szExeFile,ProcessName) == 0)
 {
 return pEntry.th32ProcessID;
 }
 if(hRes==FALSE)
 break;
 }
 return FALSE;
}
BOOL HS4LProcessExist(WCHAR* ProcessName)
{
 HANDLE hSnapShot;
 hSnapShot=CreateToolhelp32Snapshot (TH32CS_SNAPALL,NULL);
 PROCESSENTRY32 pEntry;
 pEntry.dwSize =sizeof(pEntry);
 Process32First (hSnapShot,&pEntry);
 while(TRUE)
 {
 BOOL hRes=Process32Next (hSnapShot,&pEntry);
if(StrCmpW(pEntry.szExeFile,ProcessName) == 0)
 {
 return TRUE;
 }
 if(hRes==FALSE)
 break;
 }
 return FALSE;
}
void HS4LWaitProcess(WCHAR* ProcessName)
{
 while(HS4LProcessExist(ProcessName) != TRUE){Sleep(500);};
}



A nuestro código le agregamos esas funciones:
Code:
#include <Windows.h>
#include <TlHelp32.h>
#include <Psapi.h>
#include <iostream>
#include <string>
#include <Shlwapi.h>
#include "stdafx.h"
#pragma comment(lib, "Shlwapi")
using namespace std;
int Sp,Speed;
DWORD HS4LProcessPid(WCHAR* ProcessName)
{
 HANDLE hSnapShot;
 hSnapShot=CreateToolhelp32Snapshot (TH32CS_SNAPALL,NULL);
 PROCESSENTRY32 pEntry;
 pEntry.dwSize =sizeof(pEntry);
 Process32First (hSnapShot,&pEntry);
 while(TRUE)
 {
 BOOL hRes=Process32Next (hSnapShot,&pEntry);
if(StrCmpW(pEntry.szExeFile,ProcessName) == 0)
 {
 return pEntry.th32ProcessID;
 }
 if(hRes==FALSE)
 break;
 }
 return FALSE;
}
BOOL HS4LProcessExist(WCHAR* ProcessName)
{
 HANDLE hSnapShot;
 hSnapShot=CreateToolhelp32Snapshot (TH32CS_SNAPALL,NULL);
 PROCESSENTRY32 pEntry;
 pEntry.dwSize =sizeof(pEntry);
 Process32First (hSnapShot,&pEntry);
 while(TRUE)
 {
 BOOL hRes=Process32Next (hSnapShot,&pEntry);
if(StrCmpW(pEntry.szExeFile,ProcessName) == 0)
 {
 return TRUE;
 }
 if(hRes==FALSE)
 break;
 }
 return FALSE;
}
void HS4LWaitProcess(WCHAR* ProcessName)
{
 while(HS4LProcessExist(ProcessName) != TRUE){Sleep(500);};
}
int _tmain(int argc, _TCHAR* argv[])
{
 SetConsoleTitleA("My titulo de mi consola");
 cout<<"Sp=> 1(True)/0(False)"<<"\n";
 cin>>Sp;
 cout<<"Speed=> 1(True)/0(False)"<<"\n";
 cin>>Speed;
cout<<"Ahora abre S4..."<<"\n";
 HS4LWaitProcess(L"S4Client.exe");

 return 0;
}



Ahora añadimos un sleep, un open process;
Code:
Sleep(500);
HANDLE Open = OpenProcess(PROCESS_ALL_ACCESS,false,HS4LProcessPid(L"S4Client.exe"));



un write processmemory para escribir la address:
Code:
//inf sp
 long valuesp = 2348565979;
 WriteProcessMemory(Open, (LPVOID*)(DWORD)0x00481E82, &valuesp, sizeof(valuesp), NULL);
 //Speed
 long valuespeed = 2366073344 ;
 WriteProcessMemory(Open, (LPVOID*)(DWORD)0x005DD874, &valuespeed, sizeof(valuespeed), NULL);



Ahora después del cambio de valores ponemos:
Code:
cout<<"Done!!"<<"\n";
 system("pause");



El código completo seria:
Code:
#include <Windows.h>
#include <TlHelp32.h>
#include <Psapi.h>
#include <iostream>
#include <string>
#include <Shlwapi.h>
#include "stdafx.h"
#pragma comment(lib, "Shlwapi")
using namespace std;
int Sp,Speed;
DWORD HS4LProcessPid(WCHAR* ProcessName)
{
 HANDLE hSnapShot;
 hSnapShot=CreateToolhelp32Snapshot (TH32CS_SNAPALL,NULL);
 PROCESSENTRY32 pEntry;
 pEntry.dwSize =sizeof(pEntry);
 Process32First (hSnapShot,&pEntry);
 while(TRUE)
 {
 BOOL hRes=Process32Next (hSnapShot,&pEntry);
if(StrCmpW(pEntry.szExeFile,ProcessName) == 0)
 {
 return pEntry.th32ProcessID;
 }
 if(hRes==FALSE)
 break;
 }
 return FALSE;
}
BOOL HS4LProcessExist(WCHAR* ProcessName)
{
 HANDLE hSnapShot;
 hSnapShot=CreateToolhelp32Snapshot (TH32CS_SNAPALL,NULL);
 PROCESSENTRY32 pEntry;
 pEntry.dwSize =sizeof(pEntry);
 Process32First (hSnapShot,&pEntry);
 while(TRUE)
 {
 BOOL hRes=Process32Next (hSnapShot,&pEntry);
if(StrCmpW(pEntry.szExeFile,ProcessName) == 0)
 {
 return TRUE;
 }
 if(hRes==FALSE)
 break;
 }
 return FALSE;
}
void HS4LWaitProcess(WCHAR* ProcessName)
{
 while(HS4LProcessExist(ProcessName) != TRUE){Sleep(500);};
}
int _tmain(int argc, _TCHAR* argv[])
{
 SetConsoleTitleA("My titulo de mi consola");
 cout<<"Sp=> 1(True)/0(False)"<<"\n";
 cin>>Sp;
 cout<<"Speed=> 1(True)/0(False)"<<"\n";
 cin>>Speed;
 cout<<"Ahora abre S4..."<<"\n";
 HS4LWaitProcess(L"S4Client.exe");
 Sleep(500);
 HANDLE Open = OpenProcess(PROCESS_ALL_ACCESS,false,HS4LProcessPid(L"S4Client.exe"));
 //inf sp
 long valuesp = 2348565979;
 WriteProcessMemory(Open, (LPVOID*)(DWORD)0x00481E82, &valuesp, sizeof(valuesp), NULL);
 //Speed
 long valuespeed = 2366073344 ;
 WriteProcessMemory(Open, (LPVOID*)(DWORD)0x005DD874, &valuespeed, sizeof(valuespeed), NULL);
 cout<<"Done!!"<<"\n";
 system("pause");
 return 0;
}




Ahora vas a propiedades->Vinculador->ARchivo de manifiesto->Pones RequieredAdministrador:
[You must be registered and logged in to see this image.]
Presionas F5 para compilarlo, ahora compilalo como reléase, publícalo, y Done!!

[You must be registered and logged in to see this link.]: Seyer
[You must be registered and logged in to see this link.]: no está permitido el uso de colores en comentarios y/o títulos.



Last edited by ZzcarloszZ on May 16th 2014, 20:54; edited 4 times in total

alexmen10
#2

alexmen10
  • alexmen10
  • administrator
  • Status :
    HS4L Team
  • Mensajes :
    418
  • Reputación :
    257
  • Points :
    23
  • Registrado :
    2012-09-08
buen tutorial lo voy aprobar ahora mismo nice +1

Invitado
#3

Invitado
  • Anonymous
  • Guest
Buen tutorial ahora todos a aprender a crear sus propios hack smid_1

Konejo Weed
#4

Konejo Weed
  • Konejo Weed
  • moderator
  • Mensajes :
    639
  • Reputación :
    90
  • Points :
    2
  • Registrado :
    2014-05-25
Ami no me deja compilarlo...
Code:
// Console.cpp: define el punto de entrada de la aplicación de consola.
//
#include <Windows.h>
#include <TlHelp32.h>
#include <Psapi.h>
#include <iostream>
#include <string>
#include <Shlwapi.h>
#include "stdafx.h"
#pragma comment(lib, "Shlwapi")
using namespace std;
int Sp,GodMode,Multihit,Infammo,hp;
DWORD HS4LProcessPid(WCHAR* S4Client.exe)
{
 HANDLE hSnapShot;
 hSnapShot=CreateToolhelp32Snapshot (TH32CS_SNAPALL,NULL);
 PROCESSENTRY32 pEntry;
 pEntry.dwSize =sizeof(pEntry);
 Process32First (hSnapShot,&pEntry);
 while(TRUE)
 {
 BOOL hRes=Process32Next (hSnapShot,&pEntry);
if(StrCmpW(pEntry.szExeFile,S4Client.exe) == 0)
 {
 return pEntry.th32ProcessID;
 }
 if(hRes==FALSE)
 break;
 }
 return FALSE;
}
BOOL HS4LProcessExist(WCHAR* S4Client.exe)
{
 HANDLE hSnapShot;
 hSnapShot=CreateToolhelp32Snapshot (TH32CS_SNAPALL,NULL);
 PROCESSENTRY32 pEntry;
 pEntry.dwSize =sizeof(pEntry);
 Process32First (hSnapShot,&pEntry);
 while(TRUE)
 {
 BOOL hRes=Process32Next (hSnapShot,&pEntry);
if(StrCmpW(pEntry.szExeFile,S4Client.exe) == 0)
 {
 return TRUE;
 }
 if(hRes==FALSE)
 break;
 }
 return FALSE;
}
void HS4LWaitProcess(WCHAR* S4Client.exe)
{
 while(HS4LProcessExist(S4Client.exe) != TRUE){Sleep(500);};
}
int _tmain(int argc, _TCHAR* argv[])
{
 SetConsoleTitleA("Console Trainer By Kyan & alexRO");
 cout<<"000HP=> 1[True]/0[False]"<<"\n";
 cin>>hp;
 cout<<"GodMode=> 1[True]/0[False]"<<"\n";
 cin>>GodMode;
 cout<<"InfAmmo=> 1[True]/0[False]"<<"\n";
 cin>>Infammo;
 cout<<"MultiHit=> 1[True]/0[False]"<<"\n";
 cin>>Multihit;
 cout<<"Inf.Sp=> 1[True]/0[False]"<<"\n";
 cin>>Sp;
 cout<<"HaveFun! By Kyan & alexRO adress"<<"\n";
 HS4LWaitProcess(L"S4Client.exe");
 Sleep(500);
 HANDLE Open = OpenProcess(PROCESS_ALL_ACCESS,false,HS4LProcessPid(L"S4Client.exe"));
 //inf sp
 long valuesp = 234856979;
 WriteProcessMemory(Open, (LPVOID*)(DWORD)0x0048DD92, &valuesp, sizeof(valuesp), NULL);
 //GodMode
 long valuegodMode =  3918565441;
 WriteProcessMemory(Open, (LPVOID*)(DWORD)0x0052F0C4, &valuegodMode, sizeof(valuegodMode), NULL);
 //Multihit
 long valuemultihit = 990333579;
 WriteProcessMemory(Open, (LPVOID*)(DWORD)0x00579DB9, &valuemultihit, sizeof(valuemultihit), NULL);
 //InfAmmo
 long valueinfammo = 1301086570;
 WriteProcessMemory(Open, (LPVOID*)(DWORD)0x007A5892, &valueinfammo, sizeof(valueinfammo), NULL);
 //000HP
 long valuehp = 2348565970;
 WriteProcessMemory(Open, (LPVOID*)(DWORD)0x0052f004, &valuehp, sizeof(valuehp), NULL);
 cout<<"Done!!"<<"\n";
 system("pause");
 return 0;
}

conectaika
#5

conectaika
  • conectaika
  • new member
  • Mensajes :
    1
  • Reputación :
    0
  • Points :
    0
  • Registrado :
    2014-07-26
Cual hack ese tutorial puede hacer? xd

-Cesc-
#6

-Cesc-
  • -Cesc-
  • developer
  • Mensajes :
    255
  • Reputación :
    147
  • Points :
    0
  • Registrado :
    2012-12-22
Kyan wrote:Ami no me deja compilarlo...
Modifica tus propiedas de "Usar Emcabeza Precompilado -> NO" smid_1

conectaika wrote:Cual hack ese tutorial puede hacer? xd
Puedes poner cualquier hack, que te guste, solo programalo

#Edit = Seyer
#Motivo = No doble comentario, los staff no se salvan de mi :3

demonik
#7

demonik
  • demonik
  • new member
  • Mensajes :
    16
  • Reputación :
    7
  • Points :
    0
  • Registrado :
    2014-08-02
Me sale el siguiente error
[You must be registered and logged in to see this image.]
Qué es que me falta alguna librería?

FrAnKeStEiN
#8

FrAnKeStEiN
  • FrAnKeStEiN
  • active member
  • Mensajes :
    100
  • Reputación :
    19
  • Points :
    0
  • Registrado :
    2012-08-08
podrias volver a subir las imagenes? ya no se ven ¿o solo me pasa a mi?

Seyer
#9

Seyer
  • Seyer
  • administrator
  • Status :
    HS4L Team
  • Mensajes :
    692
  • Reputación :
    64
  • Points :
    2
  • Registrado :
    2012-08-09
FrAnKeStEiN wrote:podrias volver a subir las imagenes? ya no se ven ¿o solo me pasa a mi?

que imagenes?, en este post no hay ninguna imagen (sin contar las de perfil e.e)

FrAnKeStEiN
#10

FrAnKeStEiN
  • FrAnKeStEiN
  • active member
  • Mensajes :
    100
  • Reputación :
    19
  • Points :
    0
  • Registrado :
    2012-08-08
estas
[You must be registered and logged in to see this image.]
o soy el unico q las ve???

PD: cuanto hago la prueba del tutorial y termino todo eso, me dice que esta mal esto "int _tmain(int argc, _TCHAR* argv[])" pongo en espoiler como esta esa parte aver si me falta cambiar algo

Spoiler:

Seyer
#11

Seyer
  • Seyer
  • administrator
  • Status :
    HS4L Team
  • Mensajes :
    692
  • Reputación :
    64
  • Points :
    2
  • Registrado :
    2012-08-09
FrAnKeStEiN wrote:estas
[You must be registered and logged in to see this image.]
o soy el unico q las ve???

PD: cuanto hago la prueba del tutorial y termino todo eso, me dice que esta mal esto "int _tmain(int argc, _TCHAR* argv[])" pongo en espoiler como esta esa parte aver si me falta cambiar algo

Spoiler:

ami ni me aparece la imagen de las fotitos ratas (por asi decirlo) y con el codigo ni idea, mandale un mp a calin con todo lo que pusiste y pasaselo a calin y el te lo arregla :3

Kirby_Blue
#12

Kirby_Blue
  • Kirby_Blue
  • super moderator
  • Mensajes :
    1056
  • Reputación :
    87
  • Points :
    0
  • Registrado :
    2012-08-08
Acción: #Closed4Inactivity

Sponsored content
#13

Sponsored content

      

Create an account or log in to leave a reply

You need to be a member in order to leave a reply.

Create an account

Join our community by creating a new account. It's easy!


Create a new account

Log in

Already have an account? No problem, log in here.


Log in
You cannot reply to topics in this forum
Staff online
Sponsors
  •  TOTAL POSTS
  •  TOTAL MEMBERS
  •  NEWEST MEMBER