[c++] adresse help menu

User Tag List

Results 1 to 6 of 6
  1. #1
    royalxm's Avatar Member
    Reputation
    2
    Join Date
    Nov 2007
    Posts
    43
    Thanks G/R
    2/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [c++] adresse help

    Hello all !

    sorry my english

    i look for :
    [ swtor.exe + 1080AC4 ] = Player X/10, float

    ok my swtor.exe for hexa is 122c so
    122c + 1080AC4 = 10802CF0

    my code :

    Code:
    #include <iostream>
    #include <windows.h>
    
    
    using namespace std;
    
    
    int main()
    {
        DWORD address = 0x10802CF0;
        int value = 0;
        DWORD pid;
        HWND hwnd;
        hwnd = FindWindow(NULL,"Star Wars: The Old Republic");
        if(!hwnd)
        {
        cout <<"Window not found!\n";
        cin.get();
        }
        else
        {
        GetWindowThreadProcessId(hwnd,&pid);
        HANDLE phandle = OpenProcess(PROCESS_VM_READ,0,pid);
            if(!phandle)
            {
            cout <<"Could not get handle!\n";
            cin.get();
            }
            else
            {
            while(1)
            {
            ReadProcessMemory(phandle,(void*)address,&value,sizeof(value),0);
            cout << value << "\n";
            Sleep(1000);
            }
            return 0;
            }
        }
    }

    resulta :

    [c++] adresse help-tssuw-jpg

    help for my thx all

    [c++] adresse help
  2. #2
    the1domo's Avatar Active Member
    Reputation
    50
    Join Date
    Jan 2012
    Posts
    129
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    use a float

  3. #3
    dither's Avatar Private
    Reputation
    1
    Join Date
    Jan 2012
    Posts
    2
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    first problem,

    you're using the wrong EXE. you need to open the other SWTOR.EXE, the one without the title.

    second problem,

    the "swtor.exe + 0xXXXXXXXX" means you use the base address of the swtor.exe (which can technically change every time you launch it) in the past I have used GetModuleHandleA to get the base address of dlls, but i'm not sure if this will work for the exe its self.

  4. #4
    royalxm's Avatar Member
    Reputation
    2
    Join Date
    Nov 2007
    Posts
    43
    Thanks G/R
    2/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by dither View Post
    first problem,

    you're using the wrong EXE. you need to open the other SWTOR.EXE, the one without the title.

    second problem,

    the "swtor.exe + 0xXXXXXXXX" means you use the base address of the swtor.exe (which can technically change every time you launch it) in the past I have used GetModuleHandleA to get the base address of dlls, but i'm not sure if this will work for the exe its self.

    Okay thx ! but there are two swtor.exe :s

  5. #5
    the1domo's Avatar Active Member
    Reputation
    50
    Join Date
    Jan 2012
    Posts
    129
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    hi

    here's an example of how to use classes to get what you tryna get useing a dll

    hack.cpp
    Code:
    #include <windows.h>
    #include <stdio.h>
    #include <vector>
    #include <string>
    #include <iostream>
    #include <fstream>
    #include <io.h>
    #include <fcntl.h>
    
    #include "class.h"
    
    using namespace std;
    
    void createConsole( )
    {
        AllocConsole();
        int hConHandle;
        long lStdHandle;
        FILE *fp;
        lStdHandle = (long)GetStdHandle(STD_OUTPUT_HANDLE);
        hConHandle = _open_osfhandle(lStdHandle, _O_TEXT);
        fp = _fdopen( hConHandle, "w" );
        *stdout = *fp;
        setvbuf( stdout, NULL, _IONBF, 0 );
    }
    
    
    DWORD WINAPI Thread(LPVOID)
    {
    		createConsole( );
    		DWORD swtor = (DWORD)GetModuleHandle("swtor.exe");
    		c_Unknown1* pUnknown1 = (c_Unknown1*)(DWORD)(*(DWORD*)(swtor + 0x0107E654));
    
    		float x = pUnknown1->c_Unknown2->c_Unknown3->c_Unknown4->c_Unknown5->pLocalPlayer->X;
    
    		cout << "X: " << x << endl;
    
    		return TRUE;
    }
    
    BOOL WINAPI DllMain(HMODULE hModule, DWORD dwReason, LPVOID lpvReserved)
    {
    	if(dwReason == DLL_PROCESS_ATTACH)
    	{
    		CreateThread(NULL,NULL,Thread,NULL,NULL,NULL);
    	}
    
    	return TRUE;
    }
    class.h
    Code:
    class c_Unknown1;
    class c_Unknown2;
    class c_Unknown3;
    class c_Unknown4;
    class c_Unknown5;
    class pLocalPlayer;
    
    class c_Unknown1				//[swtor.exe + 0x0107E654]
    {
    public:
    	char unknown0[608]; 		//0x0000
    	c_Unknown2* c_Unknown2;		//0x0260  
    };
    
    class c_Unknown2
    {
    public:
    	char unknown0[1120]; 		//0x0000
    	c_Unknown3* c_Unknown3; 	//0x0460  
    };
    
    class c_Unknown3
    {
    public:
    	c_Unknown4* c_Unknown4;		//0x0000
    };
    
    class c_Unknown4
    {
    public:
    	char unknown0[20]; 			//0x0000
    	c_Unknown5* c_Unknown5; 	//0x0014  
    };
    
    class c_Unknown5
    {
    public:
    	char unknown0[8]; 			//0x0000
    	pLocalPlayer* pLocalPlayer;	//0x0008  
    };
    
    class pLocalPlayer
    {
    public:
    	char unknown0[40]; 			//0x0000
    	__int32 lasttarget; 		//0x0028  
    	__int16 ID; 				//0x002C  
    	char unknown46[18]; 		//0x002E
    	float health; 				//0x0040  
    	float Partner_health; 		//0x0044  
    	char unknown72[56]; 		//0x0048
    	float distancetotarget; 	//0x0080  
    	char unknown132[124]; 		//0x0084
    	float X; 					//0x0100  
    	float Y; 					//0x0104  
    	float Z; 					//0x0108  
    	char unknown268[8]; 		//0x010C
    	float Angle; 				//0x0114  
    	char unknown280[8]; 		//0x0118
    	float PartnerX_Cord; 		//0x0120  
    	float PartnerY_Cord; 		//0x0124  
    	float PartnerZ_Cord; 		//0x0128  
    
    };
    Last edited by the1domo; 01-15-2012 at 10:39 AM.

  6. #6
    royalxm's Avatar Member
    Reputation
    2
    Join Date
    Nov 2007
    Posts
    43
    Thanks G/R
    2/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    so i use c# :

    Code:
            private void button1_Click(object sender, EventArgs e)
            {
                Process[] RoM_Processes = Process.GetProcessesByName("swtor");
                if (RoM_Processes.Length == 0)
                {
                    MessageBox.Show("blabla", "Eblabla", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    timer1.Stop();
                    this.Close();
                }
                {
                    Process swtor = RoM_Processes[0];
                    IntPtr readHandle = OpenProcess(0x10, false, (uint)swtor.Id);
                    byte[] bytes = new byte[24];
                    int size = sizeof(float);
                    uint rw = 0;
    
    
    
                    int id = 0x01084E50;
    
    
                    ReadProcessMemory(readHandle, (IntPtr)id, bytes, (UIntPtr)size, ref rw);
                    uint idplayer = BitConverter.ToUInt32(bytes, 0);
                    label2.Text = "" + idplayer;
    
                }
            }
    is good ?
    Last edited by royalxm; 01-15-2012 at 02:10 PM.

Similar Threads

  1. I need a litle help to read a pmemory adress in c++
    By [-gvd-] in forum Programming
    Replies: 1
    Last Post: 10-11-2009, 07:23 PM
  2. I need help to provide proof of adress
    By shedule00 in forum WoW Scams Help
    Replies: 2
    Last Post: 06-08-2009, 09:38 AM
  3. Help whats the .... adress?
    By axelcoolaxel in forum WoW Memory Editing
    Replies: 20
    Last Post: 02-04-2009, 11:33 AM
  4. [HELP]Shifting IP Adress Problem!
    By mrsunhill in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 07-10-2008, 08:13 PM
  5. bot help
    By xwhitedeathx in forum World of Warcraft General
    Replies: 3
    Last Post: 05-01-2006, 03:50 AM
All times are GMT -5. The time now is 03:58 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search