How to detect a Lua script permission-checking place menu

User Tag List

Results 1 to 3 of 3
  1. #1
    alex-mech's Avatar Member
    Reputation
    1
    Join Date
    Nov 2014
    Posts
    2
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to detect a Lua script permission-checking place

    Hi, i've looked for similar threads for my question, but didnt found then, so I try to ask here.
    Im using debugger attached to wow.exe process to find a place where the permission for running Lua scripts takes place. But i cannot find it =(
    May someone help me with tip how to get it?
    My first idea was checking similar places where old checking was in 4.0.x patch (guess Cataclysm version), it was here:
    Code:
    mov ebp, esp
    mov edx,dword ptr ss:[ebp+8]
    mov eax,dword ptr ds:[17A5B10]
    xor ecx,ecx
    push esi
    cmp dword ptr ds:[15FBAA8],ecx
    je short 01309A84
    cmp edx, 22
    here was the comparison
    Code:
    cmp dword ptr ds:[15FBAA8],ecx
    there i could replace
    Code:
    je short
    to
    Code:
    jmp short
    and it worked. But in new patch (current 6.0.x) it was, i guess, replaced or modified and i cannot find it anymore =(
    Thanks for any help and dont blame me for being dumb in this

    UPD: I assumed that i need to see current Release Info Dump Thread for [6.0.3 19116] current version. Am I right checking the CGGameUI_CanPerformAction's offset? If its ok, now i need to somehow replace code in this offset with my code I need. Another question here: how can i write asm command in HEX format? Because I only can patch memory with HEX code in my project
    Last edited by alex-mech; 11-12-2014 at 06:00 PM.

    How to detect a Lua script permission-checking place
  2. #2
    alex-mech's Avatar Member
    Reputation
    1
    Join Date
    Nov 2014
    Posts
    2
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    UPD: Can now be closed.
    I dug Release Info Dump Thread for 6.0.3 19116 and found proper offset.
    Problem solved by myself

  3. #3
    fvicaria's Avatar Active Member
    Reputation
    29
    Join Date
    Jan 2009
    Posts
    55
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    A more accurate way of doing this is the following...

    1. Find a protected function (any one will do for example MoveForwardStart)
    2. Revert from there... At some point you will find something along the lines "cmp dword_????????, 0"
    3. Patch it with:

    MOV EAX, 0x1
    POP EBP
    RET

    There are at least 3 other different ways of doing this but this one is probably the simplest.
    Just check which addresses are checked by Warden first.

Similar Threads

  1. [Lua Script] How to I reload lua scripts in-game ?
    By Wheeze201 in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 06-27-2010, 08:28 AM
  2. [MaNGOS] How to add a LUA script ?
    By caca123 in forum WoW EMU Questions & Requests
    Replies: 4
    Last Post: 04-16-2010, 11:53 PM
  3. [Guide] How To: Fix A Lua Script
    By Arthas117 in forum Programming
    Replies: 1
    Last Post: 09-28-2008, 01:01 AM
  4. How to fix this LUA Script???
    By marcosgue in forum World of Warcraft Emulator Servers
    Replies: 0
    Last Post: 02-08-2008, 07:51 AM
  5. How To LUA Script
    By Skuxta in forum WoW EMU Guides & Tutorials
    Replies: 1
    Last Post: 12-13-2007, 04:24 AM
All times are GMT -5. The time now is 05:31 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search