Deprecated: The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence in /home/iano/public_html/tpforums-vb5/forum/includes/class_core.php on line 5842

PHP Warning: Use of undefined constant MYSQL_NUM - assumed 'MYSQL_NUM' (this will throw an Error in a future version of PHP) in ..../includes/init.php on line 165

PHP Warning: Use of undefined constant MYSQL_ASSOC - assumed 'MYSQL_ASSOC' (this will throw an Error in a future version of PHP) in ..../includes/init.php on line 165

PHP Warning: Use of undefined constant MYSQL_BOTH - assumed 'MYSQL_BOTH' (this will throw an Error in a future version of PHP) in ..../includes/init.php on line 165

PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in ..../includes/functions_navigation.php on line 588

PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in ..../includes/functions_navigation.php on line 612

PHP Warning: Use of undefined constant misc - assumed 'misc' (this will throw an Error in a future version of PHP) in ..../global.php(29) : eval()'d code(6) : eval()'d code on line 1

PHP Warning: Use of undefined constant index - assumed 'index' (this will throw an Error in a future version of PHP) in ..../global.php(29) : eval()'d code(6) : eval()'d code on line 1

PHP Warning: Use of undefined constant misc - assumed 'misc' (this will throw an Error in a future version of PHP) in ..../includes/class_bootstrap.php(1422) : eval()'d code(4) : eval()'d code on line 1

PHP Warning: Use of undefined constant index - assumed 'index' (this will throw an Error in a future version of PHP) in ..../includes/class_bootstrap.php(1422) : eval()'d code(4) : eval()'d code on line 1

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6
9.44 addresses and changes - ONLY HERE! - Page 7
Page 7 of 13 FirstFirst ... 56789 ... LastLast
Results 61 to 70 of 127

Thread: 9.44 addresses and changes - ONLY HERE!

  1. #61

    RE: 9.44 addresses and changes - ONLY HERE!

    @muttley
    I would like to get no-ASLR address to save in config, but I'm not knowing how this calculate ;/

    #edit
    I know why this function:
    Code:
    bool runMC(const char* path, DWORD address, bool tibia91plus){
        bool ret = true;
        PROCESS_INFORMATION pi;
    	STARTUPINFOA si = {sizeof(si)};
    
    	std::string spath = path;
    	if(spath.find_last_of("\\") != spath.size()-1)
            spath += "\\";
    
        path = spath.c_str();
    
        if(CreateProcess(std::string(spath+"Tibia.exe").c_str(), NULL, NULL, NULL, false, CREATE_SUSPENDED, NULL, path, &si, &pi) == 0)
            ret = false;
    
        if(WriteProcessMemory(pi.hProcess, (LPVOID)address, &MCJMP, 1, NULL) == 0)
            ret = false;
        
        ResumeThread(pi.hThread);
        
        if(WaitForInputIdle(pi.hProcess, -1) != 0)
            ret = false;
    
        if(WriteProcessMemory(pi.hProcess, (LPVOID)address, &MCJNZ, 1, NULL) == 0)
            ret = false;
    
        CloseHandle(pi.hProcess);
        CloseHandle(pi.hThread);
    
        return ret;
    }
    not work.

    Module base I can check before ResumeThread function.
    Ideas??

  2. #62
    Junior Member
    Join Date
    Jul 2009
    Posts
    9

    RE: 9.44 addresses and changes - ONLY HERE!

    how do I know if the address is to be for example byte or double?

  3. #63

    RE: 9.44 addresses and changes - ONLY HERE!

    Hey everyone... In teory, there should be an address in the memory that holds item id while dragging it with mouse... But i have no idea how to start searching it...

    another thing...

    searching throu the memory i found that tibia.dat (9.44) address points to a structure that:

    tibiadatPointer = 0x7B3694;
    tibiadat = memory.readinteger( tibiadatPointer );
    offsetstart = memory.readinteger( tibiadat );
    itemcount = memory.readinteger( tibiadat + 0x04 );
    some_sort_of_struct_that_CONTAINS_tibia_item_names = memory.readinteger( tibiadat + 0x08 ); // maybe here we will find some more info?

  4. #64
    Moderator
    Join Date
    Oct 2009
    Posts
    482

    RE: 9.44 addresses and changes - ONLY HERE!

    @Cupquake
    About searching this address:
    Well, I have an idea.
    Start dragging, pause Tibia, seek in Cheat Engine, unpause Tibia, start dragging another item and repeat this until you find this address.
    About pausing Tibia - in Cheat Engine you have menu Edit->Settings, and there you can set hotkeys (and pause process is one of the possible actions on pressed hotkey), so you can press a hotkey while dragging item.

    http://tpforums.org/forum/thread-9196-post-80998.html#pid80998 - managed to get working PrintItem and MeasureText

  5. #65
    Senior Member
    Join Date
    Sep 2007
    Posts
    230

    RE: 9.44 addresses and changes - ONLY HERE!

    Quote Originally Posted by Miziak
    Module base I can check before ResumeThread function.
    Ideas??
    The issue with getting the base address for an application started in suspended mode is it has barely been initialised, only the main executable and the NTDLL modules are loaded into memory. This messes up typical methods of getting the base address such as enumerating the process modules or remote threading GetModuleHandle.

    There are still some methods available that you can use, one such method Azura posted about in this post where you retrieve the base address from the process' PEB (Process Execution Block) with the NtQueryInformationProcess function.

  6. #66

    RE: 9.44 addresses and changes - ONLY HERE!

    lastClickedId = $93E400; // (53E400 + tibia.exe)

  7. #67

    RE: 9.44 addresses and changes - ONLY HERE!

    @Sketchy
    It works thanks very much!

  8. #68
    Moderator
    Join Date
    Oct 2009
    Posts
    482

    RE: 9.44 addresses and changes - ONLY HERE!

    Seems to work perfectly
    [code=c++]int MeasureText(int Font, char* Text, int TextLen, int Align)
    {
    DWORD original = Memory.AlignAddress(0x4C6AA0);
    int ret = 0;
    __asm
    {
    PUSH Align
    PUSH TextLen
    MOV ECX, Text
    MOV EDX, Font
    CALL original
    ADD ESP, 8
    MOV ret, EAX
    }
    return ret;
    }

    void PrintItem(int nSurface, int X, int Y, int nSize, int itemId, int count, bool CountTextVisible)
    {
    DWORD original = Memory.AlignAddress(0x04C2F50);
    if (!CountTextVisible)
    {
    __asm
    {
    PUSH 0
    PUSH 0
    PUSH 0
    PUSH 0
    PUSH 0
    }
    }
    else
    {
    __asm
    {
    PUSH 1
    PUSH 2
    PUSH 225
    PUSH 225
    PUSH 225
    }
    }
    __asm
    {
    PUSH 2
    PUSH nSize
    PUSH nSize
    PUSH Y
    PUSH X
    PUSH 0
    PUSH 0
    PUSH 0
    PUSH itemId
    PUSH count
    PUSH 0
    PUSH Y
    PUSH X
    PUSH nSurface
    MOV ECX, nSize
    CALL original
    }
    }[/code]

  9. #69

    RE: 9.44 addresses and changes - ONLY HERE!

    Anybody know flag address?
    Anybody have any idea to get this addr?

  10. #70
    Super Moderator
    Join Date
    May 2007
    Posts
    1,191

    RE: 9.44 addresses and changes - ONLY HERE!

    Quote Originally Posted by carlows
    Anybody know flag address?
    Anybody have any idea to get this addr?
    Search for these values:
    http://code.google.com/p/tibiaapi/source/browse/trunk/tibiaapi/Constants/Enums.cs#120
    I assume you know how flags work.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •