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;
}