Is it posible to modify memory in .text for classic wow menu

User Tag List

Results 1 to 9 of 9
  1. #1
    airjqqq's Avatar Member Authenticator enabled
    Reputation
    4
    Join Date
    Jan 2013
    Posts
    19
    Thanks G/R
    4/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Is it posible to modify memory in .text for classic wow

    hi, i used to build a "in game based" bot, from 5.x to 7.1. used just by myself for fun. never published.

    at that days, i just inject a dll in to wow process then hack some script function jump to my dll memory.

    then when i call the script in game using lua. it will call my dll function instead.

    BUUUUUT for now days, the .text memory of wow is unable to modify in a common way, which i need to hack then let the script call jump to my dll.

    i have tried to hack CreateRemoteThread then call some asm bytes to modify the memory i need. but i can only change .data memory for now. once i execute change .text memory code. wow process will crash.

    so i wonder if it is posible to modify memory in .text for now

    thansk all you guys who has time for my issue

    Is it posible to modify memory in .text for classic wow
  2. #2
    Icesythe7's Avatar Contributor
    Reputation
    231
    Join Date
    Feb 2017
    Posts
    168
    Thanks G/R
    10/111
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by airjqqq View Post
    hi, i used to build a "in game based" bot, from 5.x to 7.1. used just by myself for fun. never published.

    at that days, i just inject a dll in to wow process then hack some script function jump to my dll memory.

    then when i call the script in game using lua. it will call my dll function instead.

    BUUUUUT for now days, the .text memory of wow is unable to modify in a common way, which i need to hack then let the script call jump to my dll.

    i have tried to hack CreateRemoteThread then call some asm bytes to modify the memory i need. but i can only change .data memory for now. once i execute change .text memory code. wow process will crash.

    so i wonder if it is posible to modify memory in .text for now

    thansk all you guys who has time for my issue
    you dont need to modify anything in .text to add your own lua functions or to call lua from ur dll

  3. #3
    airjqqq's Avatar Member Authenticator enabled
    Reputation
    4
    Join Date
    Jan 2013
    Posts
    19
    Thanks G/R
    4/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Icesythe7 View Post
    you dont need to modify anything in .text to add your own lua functions or to call lua from ur dll
    my all logic like rotation, moving was implement in lua. and i need to get some information that origin lua api not provide like get enmey world position, or call some protect function like MoveForwardStart.

    so what i intend to do is call some dll function from lua, by calling the hacked lua function in .text then jump to my dll.

    all functions in my dll are script like function that get params from lua stack then return value by pushing them back

    may be it's a rare way, but i can use all build in lua function and a in game ui to control the logic.



    do you mean using FrameScript_RegisterFunction to add new lua function? i have tried this years ago but no luck.

    or just change the script function address in memory? it should be stored in some list since it is "registered". i remember script function's address must in some range or wow will crash. hmmm..... still confusing
    Last edited by airjqqq; 01-02-2020 at 02:57 AM.

  4. #4
    zys924's Avatar Active Member
    Reputation
    20
    Join Date
    Nov 2009
    Posts
    113
    Thanks G/R
    0/7
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You need to learn and understand user-mode memory mapping first if you are even confused about why WoW will crash.

  5. #5
    namreeb's Avatar Legendary

    Reputation
    658
    Join Date
    Sep 2008
    Posts
    1,023
    Thanks G/R
    7/215
    Trade Feedback
    0 (0%)
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    Wow remaps its own .text section with the 'SEC_NO_CHANGE' flag. This means that the text section (and actually I thought the .data section too?) cannot be altered, nor can their protection be altered. If you really want to modify it, you'll have to search the virtual address space for the source of the remap which can be made writable. Beware that there are CRC checks to most (but not all) of the .text section, so this is dangerous.

    If you want to see an example of this remapping, you can look here: GitHub - changeofpace/Self-Remapping-Code: This program remaps its image to prevent the page protection of pages contained in the image from being modified via NtProtectVirtualMemory.

  6. #6
    oldmanofmen's Avatar Member
    Reputation
    12
    Join Date
    Jan 2010
    Posts
    104
    Thanks G/R
    4/3
    Trade Feedback
    3 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by namreeb View Post
    Wow remaps its own .text section with the 'SEC_NO_CHANGE' flag. This means that the text section (and actually I thought the .data section too?) cannot be altered, nor can their protection be altered. If you really want to modify it, you'll have to search the virtual address space for the source of the remap which can be made writable. Beware that there are CRC checks to most (but not all) of the .text section, so this is dangerous.

    If you want to see an example of this remapping, you can look here: GitHub - changeofpace/Self-Remapping-Code: This program remaps its image to prevent the page protection of pages contained in the image from being modified via NtProtectVirtualMemory.
    The .data section is still fine. I haven't looked at it recently but I'm pretty sure it's just the .text section that has SEC_NO_CHANGE page protection.

  7. #7
    airjqqq's Avatar Member Authenticator enabled
    Reputation
    4
    Join Date
    Jan 2013
    Posts
    19
    Thanks G/R
    4/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by zys924 View Post
    You need to learn and understand user-mode memory mapping first if you are even confused about why WoW will crash.
    start learning Virtual address spaces for Microsoft, thanks for pointing me the way

  8. #8
    airjqqq's Avatar Member Authenticator enabled
    Reputation
    4
    Join Date
    Jan 2013
    Posts
    19
    Thanks G/R
    4/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by namreeb View Post
    Wow remaps its own .text section with the 'SEC_NO_CHANGE' flag. This means that the text section (and actually I thought the .data section too?) cannot be altered, nor can their protection be altered. If you really want to modify it, you'll have to search the virtual address space for the source of the remap which can be made writable. Beware that there are CRC checks to most (but not all) of the .text section, so this is dangerous.

    If you want to see an example of this remapping, you can look here: GitHub - changeofpace/Self-Remapping-Code: This program remaps its image to prevent the page protection of pages contained in the image from being modified via NtProtectVirtualMemory.
    Thank you so much. can't wait to read it

  9. #9
    Icesythe7's Avatar Contributor
    Reputation
    231
    Join Date
    Feb 2017
    Posts
    168
    Thanks G/R
    10/111
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    you can simply register ur functions with register funcvtion and call them as normal given u modify(not max) the text end offset

Similar Threads

  1. IS it possible to model edit in live wow 7.3
    By wabaki91 in forum WoW ME Questions and Requests
    Replies: 29
    Last Post: 11-10-2017, 05:42 PM
  2. Is it safe to model edit in cataclysm ?
    By manw in forum WoW ME Questions and Requests
    Replies: 6
    Last Post: 07-09-2011, 08:29 PM
  3. Is it possible to modify the level cap to 80 perhaps if you compile your own ascent ?
    By Wheeze201 in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 12-27-2007, 11:25 AM
  4. Is it posible to do more then 5 in 1hour?
    By qwert in forum World of Warcraft General
    Replies: 1
    Last Post: 03-11-2007, 03:08 PM
  5. Is it posible to...
    By qwert in forum WoW ME Questions and Requests
    Replies: 1
    Last Post: 12-03-2006, 01:11 PM
All times are GMT -5. The time now is 05:10 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