Results 1 to 5 of 5
  1. #1
    radnomguywfq3's Avatar
    Join Date
    Jan 2007
    Gender
    male
    Location
    J:\E\T\A\M\A\Y.exe
    Posts
    8,858
    Reputation
    381
    Thanks
    1,823
    My Mood
    Sad

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



    There are two types of tragedies in life. One is not getting what you want, the other is getting it.

    If you wake up at a different time in a different place, could you wake up as a different person?


  2. #2
    sailerboy's Avatar
    Join Date
    Jul 2006
    Posts
    101
    Reputation
    10
    Thanks
    10
    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

  3. #3
    radnomguywfq3's Avatar
    Join Date
    Jan 2007
    Gender
    male
    Location
    J:\E\T\A\M\A\Y.exe
    Posts
    8,858
    Reputation
    381
    Thanks
    1,823
    My Mood
    Sad
    -.- But then it might be getting the wrong process.



    There are two types of tragedies in life. One is not getting what you want, the other is getting it.

    If you wake up at a different time in a different place, could you wake up as a different person?


  4. #4
    sailerboy's Avatar
    Join Date
    Jul 2006
    Posts
    101
    Reputation
    10
    Thanks
    10
    well, if you dont have another thing named warrock.exe, it should work. If you do, just take out the process

  5. #5
    radnomguywfq3's Avatar
    Join Date
    Jan 2007
    Gender
    male
    Location
    J:\E\T\A\M\A\Y.exe
    Posts
    8,858
    Reputation
    381
    Thanks
    1,823
    My Mood
    Sad
    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.



    There are two types of tragedies in life. One is not getting what you want, the other is getting it.

    If you wake up at a different time in a different place, could you wake up as a different person?


Similar Threads

  1. I don't understand adresses like these
    By radnomguywfq3 in forum Debate Fort
    Replies: 9
    Last Post: 11-19-2007, 04:42 PM
  2. Boom Head Shot
    By styx23 in forum General
    Replies: 16
    Last Post: 09-20-2007, 10:30 PM
  3. I don't understand Cheat Engine and VB
    By radnomguywfq3 in forum Visual Basic Programming
    Replies: 6
    Last Post: 08-29-2007, 04:20 PM
  4. Freee Heads And Shi
    By EleMentX in forum Entertainment
    Replies: 9
    Last Post: 07-30-2006, 03:23 PM
  5. I dont understand the tutorial
    By ValconGSX in forum WarRock - International Hacks
    Replies: 1
    Last Post: 01-16-2006, 04:11 PM