Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > C/C++
You last visited: Today at 07:24

  • Please register to post and access all features, it's quick, easy and FREE!

 

[C++ HELP] Console Trainer

Reply
 
Old   #1
 
elite*gold: 49
Join Date: Oct 2010
Posts: 269
Received Thanks: 307
[C++ HELP] Console Trainer

Hi guys,
I need help for console trainer. When I open the process to inject the trainer, it hides but doesn't change the values. If I suspend the process and I open the trainer, change the value, but If I don't suspend the process doesn't change the values...

This is the code, thank's for your help anybody answer...

PHP Code:
#include <Windows.h>
#include <stdio.h>
#include <cstdlib>
#include <iostream>
#include <tlhelp32.h>
#include <string>
#include <Psapi.h>

#pragma comment(lib,"psapi.lib")

using namespace std;

DWORD GetProcessIdByName(WCHARszExeName);
bool isRunning(string pName);

DWORD VARIABLE1 0x123456// HIDDEN
DWORD VARIABLE2 0x123456//HIDDEN
HANDLE hProcess NULL;
DWORD dwProcessId 0;

DWORD GetProcessIdByName(WCHARszExeName)
{
    
PROCESSENTRY32 pe = { sizeof(PROCESSENTRY32) };
    
HANDLE hSnapshot CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS0);

    if(
Process32First(hSnapshot, &pe))
    {
        while(
Process32Next(hSnapshot, &pe))
        { 
            if(!
wcscmp(pe.szExeFileszExeName))
            { 
                return 
pe.th32ProcessID;
            }
        }
    }

    return 
NULL;
}

bool isRunning(string pName)
{
 
unsigned long aProcesses[1024], cbNeededcProcesses;
 if(!
EnumProcesses(aProcessessizeof(aProcesses), &cbNeeded))
  return 
false;

  
cProcesses cbNeeded sizeof(unsigned long);
   for(
unsigned int i 0cProcessesi++)
   {
    if(
aProcesses[i] == 0)
   continue;

  
HANDLE hProcess OpenProcess(PROCESS_QUERY_INFORMATION PROCESS_VM_READ0aProcesses[i]);
  
char buffer[50];
  
GetModuleBaseNameA(hProcess0buffer50);
  
CloseHandle(hProcess);
  if(
pName == string(buffer))
   return 
true;
  }
 return 
false;
}

int main()
{
    
system("color a");
    
cout << "**************************\n"
            "Welcome to Unknown Project\n"
            "**************************\n\n"
            "Waiting for S4Client.exe...\n"
;
  
    while(
isRunning("S4Client.exe")==false){}
        
    
cout << "S4Client found\n";
    
cout << "Writing...";
        
Sleep(500);

        
dwProcessId GetProcessIdByName(L"S4Client.exe"); 

        if(
dwProcessId == 0) { return 0; }
        
        
hProcess OpenProcess(PROCESS_ALL_ACCESSfalsedwProcessId);

        
DWORD Value1 /* HIDDEN */;
        
DWORD Value2 /* HIDDEN */;
        
WriteProcessMemory(hProcess,(LPVOID)VARIABLE1,(LPVOID)&Value1,sizeof(&Value1),NULL);
        
WriteProcessMemory(hProcess,(LPVOID)VARIABLE2,(LPVOID)&Value2,sizeof(&Value2),NULL);




Andrea1234567890 is offline  
Old   #2
failing on a final level
 
elite*gold: 45630
Join Date: Jun 2009
Posts: 28,549
Received Thanks: 24,650
i am sure it is the protection of the xtrap driver


MrSm!th is offline  
Old   #3
 
elite*gold: 49
Join Date: Oct 2010
Posts: 269
Received Thanks: 307
But Project HarmonY work, why? It's bypassed?
Andrea1234567890 is offline  
Old   #4
failing on a final level
 
elite*gold: 45630
Join Date: Jun 2009
Posts: 28,549
Received Thanks: 24,650
it has a technique to get around this
MrSm!th is offline  
Reply



« Previous Thread | Next Thread »

Similar Threads
[RELEASE] Console Commands for Lame Console Look
Well, to avoid any further useless posts on this subject... here are a ton of console based commands that will control the game from the server...
12 Replies - CO2 PServer Guides & Releases
Console ?!
Hey Leute ich habe ein Problem Unzwar weis ich nicht wie man in game die "Consolen Eingabe" öffnet oder weis geschweige den was das überhaupt...
4 Replies - Counter-Strike
help with the Console
ok in the console get alot of *blah blah* has suspicious amounts of cps so was wondering whats the command to delete there cps or change there cps to...
6 Replies - CO2 PServer - Discussions / Questions



All times are GMT +1. The time now is 07:24.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2017 elitepvpers All Rights Reserved.