HEAD ACHE. Ugh I don't understand, I checked like 300 Times
Posts 1–5 of 5 · Page 1 of 1
HEAD ACHE. Ugh I don't understand, I checked like 300 Times
Okay I am so fucking curious how the boolean Working, gets the the state of true, I am not running warrock, yet for some fucked up reason the boolean is being set to true. Here
Code:
/*Things For You To Note Notes
Return Types :
0 - Exit Because Of End Of Code
1 - Exit On User Request
2 - Exit On Error
Status Codes :
0 - Off\False
1 - On\True
2 - Error
*/
#include <cstdlib>
#include <iostream>
#include <string>
#include <windows.h>
#include <conio.h>
#include <dos.h>
#include <tlhelp32.h>
#include <stdio.h>
using namespace std;
//Varible Declarations
int TimesUsed = 0;
int status = 0;
bool Working = false;
string OutPutCommand = "";
//Function
void Screen(void)
{
system("cls");
cout<<"Programmed In C++ By : Jetamay"<<endl;
cout<<endl;
if(status == 0){cout<<"Hack Status [Unactivated]"<<endl;}
if(status == 1){cout<<"Hack Status [Activated]"<<endl;}
if(status == 2){cout<<"Hack Status [WarRock Not Found]"<<endl;}
cout<<"[A] Shotgun - [Used("<<TimesUsed<<")] Status [NONE]\n"<<endl;
}
struct Addresses{
DWORD ShotGun;
}WarRock;
long GetProcessID(void)
{
HANDLE ProcessSnap;
HANDLE WarRockProcess = NULL;
PROCESSENTRY32 ProcessInformation;
ProcessSnap = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0);
Process32First(ProcessSnap, &ProcessInformation);
//Start Find Process
do
{
if(strcmp(ProcessInformation.szExeFile,"alg.exe"))
{
Working = true;
return ProcessInformation.th32ProcessID;
break;
}
}while(Process32Next(ProcessSnap, &ProcessInformation));
//End Find Process
if(Working == false){status = 2;}
else{status = 0;}
Screen();
}
void CMDstart(void)
{
GetProcessID();
if(Working == true)
{
status = 1;
}
else{cout<<"\aProcess Not Found"<<endl;
system("PAUSE");
status = 3;
Screen();
}
}
int main(void)
{
/*Setup
Addresses
Here*/
Addresses SetUp = WarRock;
SetUp.ShotGun = 0xdF54;
Screen();
/*Get Process Id Below*/
GetProcessID();
cout<<Working;
while(true)
{
Screen();
cout<<Working<<endl;
cout<<"Command Line :> ";
cin>>OutPutCommand;
cin.get();
if(OutPutCommand == "exit" || OutPutCommand == "Exit"){return 1;}
if(OutPutCommand == "Start" || OutPutCommand == "start"){CMDstart();}
if(OutPutCommand == "Stop" || OutPutCommand == "stop"){status = 0;}
if(OutPutCommand == "TE" || OutPutCommand == "te"){status = 2;}
Screen();
}
system("PAUSE");
return 0;
}
dont wory about whether wr is or not running, just put the addresses into a timer and write. If the address isnt there, there shouldnt be an error, and if it is, it should work
-.- But then it might be getting the wrong process.
well, if you dont have another thing named warrock.exe, it should work. If you do, just take out the process
Oommffggg I'm soo fucking stupid its
if(strcmp(ProcessInformation.szExeFile,"WarRock.ex e") == 0)
I forgot to add the '== 0' at the end, Ghad, True means 1+ false means 0. So it must have read it as true.