Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > C/C++
You last visited: Today at 05:02

  • 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: 308
[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 04/24/2011, 13:37   #2
failing on a final level
 
elite*gold: 46330
Join Date: Jun 2009
Posts: 28,808
Received Thanks: 25,070
i am sure it is the protection of the xtrap driver


MrSm!th is offline  
Old 04/24/2011, 13:48   #3
 
elite*gold: 49
Join Date: Oct 2010
Posts: 269
Received Thanks: 308
But Project HarmonY work, why? It's bypassed?
Andrea1234567890 is offline  
Old 04/24/2011, 13:53   #4
failing on a final level
 
elite*gold: 46330
Join Date: Jun 2009
Posts: 28,808
Received Thanks: 25,070
it has a technique to get around this
MrSm!th is offline  
Reply



« C++ Viren gecodet... oO | C++ Anfängerhilfe »

Similar Threads
[RELEASE] Console Commands for Lame Console Look
12/07/2011 - CO2 PServer Guides & Releases - 12 Replies
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 console. I will not explain what each does, it should be pretty easy to figure out, and I don't intend to...
Console ?!
09/03/2010 - Counter-Strike - 4 Replies
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 ist könt ihr mir helfen und sagen was das ist und wie man es öffnen kan ? THX Im Voraus
help with the Console
02/12/2010 - CO2 PServer - Discussions / Questions - 6 Replies
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 like 1 lol any help would be appreciated



All times are GMT +2. The time now is 05:02.


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

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