[C# DLL] iHook, EndScene ASM Injection! menu

User Tag List

Page 6 of 10 FirstFirst ... 2345678910 LastLast
Results 76 to 90 of 143
  1. #76
    hamburger12's Avatar Contributor CoreCoins Purchaser
    Reputation
    87
    Join Date
    Jan 2010
    Posts
    297
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can find it with ida or ollydbg

    [C# DLL] iHook, EndScene ASM Injection!
  2. #77
    Chaak's Avatar Private
    Reputation
    1
    Join Date
    May 2011
    Posts
    1
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Correct pointers for [4.2.2.14545]
    Code:
            public static uint Direct3D9__Device = 0xA80D04;
            public static uint Direct3D9__Device__OffsetA = 0x27E8;
            public static uint Direct3D9__Device__OffsetB= 0xA8;
            public static uint ClntObjMgrGetActivePlayerObjAddress = 0x3410;
            public static uint Lua_DoStringAddress = 0x426870;
            public static uint Lua_GetLocalizedTextAddress = 0x1B2140;

  3. #78
    sitnspinlock's Avatar Elite User CoreCoins Purchaser
    Reputation
    398
    Join Date
    Sep 2010
    Posts
    439
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    so the whole purpose of this mess is to call a function within the context of the main thread right?

    why not enumerate the threads in start time order.

    write your bytecode to some arbitrary memory location.

    hijack the context and profit?

    Im just confused why everyone is hooking endscene to call stuff like scriptexecutbuffer.

  4. #79
    MaiN's Avatar Elite User
    Reputation
    335
    Join Date
    Sep 2006
    Posts
    1,047
    Thanks G/R
    0/10
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by everdox View Post
    so the whole purpose of this mess is to call a function within the context of the main thread right?

    why not enumerate the threads in start time order.

    write your bytecode to some arbitrary memory location.

    hijack the context and profit?

    Im just confused why everyone is hooking endscene to call stuff like scriptexecutbuffer.
    Threading issues... Have fun calling FrameScript_ExecuteBuffer if you hijack the main thread while it is in the middle of anything with Lua.
    [16:15:41] Cypher: caus the CPU is a dick
    [16:16:07] kynox: CPU is mad
    [16:16:15] Cypher: CPU is all like
    [16:16:16] Cypher: whatever, i do what i want

  5. #80
    Cypher's Avatar Kynox's Sister's Pimp
    Reputation
    1358
    Join Date
    Apr 2006
    Posts
    5,368
    Thanks G/R
    0/6
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by MaiN View Post
    Threading issues... Have fun calling FrameScript_ExecuteBuffer if you hijack the main thread while it is in the middle of anything with Lua.
    ^ This.

    Plus, hooking EndScene gives you a decent 'pulse' callback for your bot.

  6. #81
    sitnspinlock's Avatar Elite User CoreCoins Purchaser
    Reputation
    398
    Join Date
    Sep 2010
    Posts
    439
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I must just be lucky then ;p

    haven't had anything happen yet as far as a crash is concerned

  7. #82
    Cypher's Avatar Kynox's Sister's Pimp
    Reputation
    1358
    Join Date
    Apr 2006
    Posts
    5,368
    Thanks G/R
    0/6
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by everdox View Post
    I must just be lucky then ;p

    haven't had anything happen yet as far as a crash is concerned
    Race conditions are sporadic by nature.

  8. #83
    levela13's Avatar Corporal
    Reputation
    26
    Join Date
    Feb 2010
    Posts
    18
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey!

    First of all, thanks for writing iHook, it's great, I'm noob enough to have a problem with it

    My goal was to code a program in c# which warns the user, if his random dungeon group is ready.
    Using your attached example, I managed to hook with the Wow.exe, tested some API stuff (got them from here) (Google <3) .
    My problem is, that I can't manage to get "GetLFGProposal" to work.
    Code:
    Hook.DoString("lfg = GetLFGProposal()");
    Console.WriteLine(Hook.GetLocalizedText("lfg"));
    I tried this ^ but it doesn't return anything.

    What I noticed is that "proposalExists" is a flag, not a string, still I don't know how to handle this problem. I tried with multiple syntaxes, etc, none working for me. I'm sure this is possible somehow, because the rest of the API is working flawlessly, (primitive stuff like dancing etc.) I'm just stuck with this.

    Thanks in forward!

  9. #84
    -Ryuk-'s Avatar Elite User CoreCoins Purchaser Authenticator enabled
    Reputation
    529
    Join Date
    Nov 2009
    Posts
    1,028
    Thanks G/R
    38/51
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by levela13 View Post
    Hey!

    First of all, thanks for writing iHook, it's great, I'm noob enough to have a problem with it

    My goal was to code a program in c# which warns the user, if his random dungeon group is ready.
    Using your attached example, I managed to hook with the Wow.exe, tested some API stuff (got them from here) (Google <3) .
    My problem is, that I can't manage to get "GetLFGProposal" to work.
    Code:
    Hook.DoString("lfg = GetLFGProposal()");
    Console.WriteLine(Hook.GetLocalizedText("lfg"));
    I tried this ^ but it doesn't return anything.

    What I noticed is that "proposalExists" is a flag, not a string, still I don't know how to handle this problem. I tried with multiple syntaxes, etc, none working for me. I'm sure this is possible somehow, because the rest of the API is working flawlessly, (primitive stuff like dancing etc.) I'm just stuck with this.

    Thanks in forward!
    Hey

    Try this(untested):

    Code:
    Hook.DoString("proposalExists, typeID, id, name, texture, role, hasResponded, totalEncounters, completedEncounters, numMembers, isLeader = GetLFGProposal();");
    Console.WriteLone(hook.GetLocalizedText("propsalExists");
    
    |Leacher:11/2009|Donor:02/2010|Established Member:09/2010|Contributor:09/2010|Elite:08/2013|

  10. #85
    levela13's Avatar Corporal
    Reputation
    26
    Join Date
    Feb 2010
    Posts
    18
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by -Ryuk- View Post
    Hey

    Try this(untested):

    Code:
    Hook.DoString("proposalExists, typeID, id, name, texture, role, hasResponded, totalEncounters, completedEncounters, numMembers, isLeader = GetLFGProposal();");
    Console.WriteLone(hook.GetLocalizedText("propsalExists");
    
    Still doesnt return anything

    P.s: I found another way: I check the minimap displaywith GetMinimapZoneText(), start a loop, scan it again until it changes, and if it changes, play sound etc. Don't know if it works, but it should, in theory. Yet I want to know how this GetLFGProposal(); works.

  11. #86
    MaiN's Avatar Elite User
    Reputation
    335
    Join Date
    Sep 2006
    Posts
    1,047
    Thanks G/R
    0/10
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ..just do:
    Code:
    Hook.DoString("if GetLFGProposal() then proposalExists = \"1\" else proposalExists = \"0\" end");
    bool proposalExists = Hook.GetLocalizedText("proposalExists") == "1";
    [16:15:41] Cypher: caus the CPU is a dick
    [16:16:07] kynox: CPU is mad
    [16:16:15] Cypher: CPU is all like
    [16:16:16] Cypher: whatever, i do what i want

  12. #87
    levela13's Avatar Corporal
    Reputation
    26
    Join Date
    Feb 2010
    Posts
    18
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by MaiN View Post
    ..just do:
    Code:
    Hook.DoString("if GetLFGProposal() then proposalExists = \"1\" else proposalExists = \"0\" end");
    bool proposalExists = Hook.GetLocalizedText("proposalExists") == "1";
    Not working

  13. #88
    MaiN's Avatar Elite User
    Reputation
    335
    Join Date
    Sep 2006
    Posts
    1,047
    Thanks G/R
    0/10
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by levela13 View Post
    Not working
    Then you are doing something wrong. I think GetLocalizedText has issues with bools, but it definitely doesn't have issues with strings.
    [16:15:41] Cypher: caus the CPU is a dick
    [16:16:07] kynox: CPU is mad
    [16:16:15] Cypher: CPU is all like
    [16:16:16] Cypher: whatever, i do what i want

  14. #89
    -Ryuk-'s Avatar Elite User CoreCoins Purchaser Authenticator enabled
    Reputation
    529
    Join Date
    Nov 2009
    Posts
    1,028
    Thanks G/R
    38/51
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by levela13 View Post
    Not working
    Are you using the correct addresses?

    It could be that the method I used in the dll is now broken :P
    |Leacher:11/2009|Donor:02/2010|Established Member:09/2010|Contributor:09/2010|Elite:08/2013|

  15. #90
    serock1's Avatar Member
    Reputation
    2
    Join Date
    Feb 2009
    Posts
    17
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by levela13 View Post
    Hey!

    First of all, thanks for writing iHook, it's great, I'm noob enough to have a problem with it

    My goal was to code a program in c# which warns the user, if his random dungeon group is ready.
    Using your attached example, I managed to hook with the Wow.exe, tested some API stuff (got them from here) (Google <3) .
    My problem is, that I can't manage to get "GetLFGProposal" to work.
    Code:
    Hook.DoString("lfg = GetLFGProposal()");
    Console.WriteLine(Hook.GetLocalizedText("lfg"));
    I tried this ^ but it doesn't return anything.

    What I noticed is that "proposalExists" is a flag, not a string, still I don't know how to handle this problem. I tried with multiple syntaxes, etc, none working for me. I'm sure this is possible somehow, because the rest of the API is working flawlessly, (primitive stuff like dancing etc.) I'm just stuck with this.

    Thanks in forward!
    Three chances can cause 'doesnt work' or 'doesnt return anything'. 'DoString()', 'GetLFGProposal()' or 'GetLocalizedText()' work incorrectly. I think it is helpful to debug them individually.

    e.g.

    1. Execute the code below IN GAME, instead of using 'DoString()', to check what happened on 'GetLFGProposal()'
    Code:
    /run print(GetLFGProposal())
    2. If 'GetLFGProposal()' works fine, try C# code below, and check the result in game:
    Code:
    Hook.DoString("print(GetLFGProposal())");
    3. Check anything else, etc.

    GL

Page 6 of 10 FirstFirst ... 2345678910 LastLast

Similar Threads

  1. [C# DLL] aHook, use ASM through EndScene hook
    By JuJuBoSc in forum WoW Memory Editing
    Replies: 81
    Last Post: 04-22-2024, 02:55 PM
  2. [C#] ASM Injection (CreateRemoteThread)
    By Xartrick in forum WoW Memory Editing
    Replies: 7
    Last Post: 07-23-2013, 10:57 PM
  3. [C#] ASM Injection (SetThreadContext)
    By Xartrick in forum WoW Memory Editing
    Replies: 3
    Last Post: 07-19-2013, 04:33 PM
  4. [question] basic asm injection
    By abuckau907 in forum WoW Memory Editing
    Replies: 12
    Last Post: 03-07-2012, 05:38 AM
  5. About CTM via asm injection
    By N1ghtmaree in forum WoW Memory Editing
    Replies: 11
    Last Post: 08-08-2010, 10:57 AM
All times are GMT -5. The time now is 12:05 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