Injecting ASM problems menu

User Tag List

Page 1 of 3 123 LastLast
Results 1 to 15 of 34
  1. #1
    lanman92's Avatar Active Member
    Reputation
    50
    Join Date
    Mar 2007
    Posts
    1,033
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Injecting ASM problems

    I'm having a few issues with injecting to cast a spell. This piece of code is not even putting the asm into the WOW.exe process. I don't see why it's not, seeing that everyone else does this fine.

    Code:
    g_clientCon = magic.ReadUInt(0x11CB310);
    s_curMgr = magic.ReadUInt(g_clientCon + 0x28A4);
    codecave = magic.AllocateMemory(0x1000);
    if (g_clientCon == 0)
      return;
    magic.Asm.Clear();
    magic.Asm.AddLine("retn");
    magic.WriteUInt(codecave, (uint)1000);
    magic.Asm.Inject(magic.ProcessHandle, codecave);
    uint value = magic.ReadUInt(codecave);
    MessageBox.Show(value.ToString());
    
    Here's even a shortened down version of what I had, doesn't do the same thing but has the same result. I'm having no problems doing standard Reads/Writes. It looks like BlackMagic.Asm doesn't want to write to the process, but I'm not sure why. I thought all of the ProcessHandle setting etc. was handled inside the constructors... I even tried just assembling it with the Asm subclass and writing it with the original BlackMagic class. Still no working.
    Last edited by lanman92; 03-12-2009 at 10:41 PM.

    Injecting ASM problems
  2. #2
    Nesox's Avatar ★ Elder ★
    Reputation
    1280
    Join Date
    Mar 2007
    Posts
    1,238
    Thanks G/R
    0/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Do you copy the FASM.dll to the output directory? wont work otherwise.
    If that wont work try if ure using vista switch to the Administrator account and disable UAC and DEP

  3. #3
    Cypher's Avatar Kynox's Sister's Pimp
    Reputation
    1356
    Join Date
    Apr 2006
    Posts
    5,368
    Thanks G/R
    0/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Nesox View Post
    Do you copy the FASM.dll to the output directory? wont work otherwise.
    If that wont work try if ure using vista switch to the Administrator account and disable UAC and DEP
    Don't disable DEP. Fix your software to be DEP compatiable.

    DEP is one of the worst things you can disable, it protects you from a whole range of potential nasties.

    There's a good reason for enforcing page execute flags.

  4. #4
    lanman92's Avatar Active Member
    Reputation
    50
    Join Date
    Mar 2007
    Posts
    1,033
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    D'oh. I sure wish it at least threw me an exception when it can't find the FASM.dll file... Sorry for the hassle.

  5. #5
    SKU's Avatar Contributor
    Reputation
    306
    Join Date
    May 2007
    Posts
    565
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by lanman92 View Post
    D'oh. I sure wish it at least threw me an exception when it can't find the FASM.dll file... Sorry for the hassle.
    You're not the first one missing FASM.dll. It's the first thing I do now whenever I create a new project, move FASM.dll in the debug/release folder.

  6. #6
    Nesox's Avatar ★ Elder ★
    Reputation
    1280
    Join Date
    Mar 2007
    Posts
    1,238
    Thanks G/R
    0/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by SKU View Post
    You're not the first one missing FASM.dll. It's the first thing I do now whenever I create a new project, move FASM.dll in the debug/release folder.
    Or add it to the project. And then in the properties Copy to output directory: copy if newer

  7. #7
    Shynd's Avatar Contributor
    Reputation
    97
    Join Date
    May 2008
    Posts
    393
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oh ****, I thought I had released the version of fasmdll_managed that didn't require FASM.dll anymore. Check the GameDeception page in a few minutes or so and it'll be updated. Shit, I'm sorry that you guys had to go through all of that FASM.dll shit while I've been gone

  8. #8
    storage's Avatar Member
    Reputation
    1
    Join Date
    Dec 2007
    Posts
    1
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey Shynd i have downloaded your new version, but i´cant debug with the new version.

  9. #9
    Shynd's Avatar Contributor
    Reputation
    97
    Join Date
    May 2008
    Posts
    393
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Comes with the source, recompile as Debug instead of Release.

  10. #10
    Apoc's Avatar Angry Penguin
    Reputation
    1387
    Join Date
    Jan 2008
    Posts
    2,750
    Thanks G/R
    0/12
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Shynd View Post
    Oh ****, I thought I had released the version of fasmdll_managed that didn't require FASM.dll anymore. Check the GameDeception page in a few minutes or so and it'll be updated. Shit, I'm sorry that you guys had to go through all of that FASM.dll shit while I've been gone
    Nice job Shynd. The less DLLs the better.

    Just wish you could embed a C++/CLI with native C++ as a satellite assembly. (Basically, merging the DLLs into a single DLL.)

  11. #11
    Cypher's Avatar Kynox's Sister's Pimp
    Reputation
    1356
    Join Date
    Apr 2006
    Posts
    5,368
    Thanks G/R
    0/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Apoc View Post
    Nice job Shynd. The less DLLs the better.

    Just wish you could embed a C++/CLI with native C++ as a satellite assembly. (Basically, merging the DLLs into a single DLL.)

    Eeeew. C++/CLI. Please go kill yourself now.

  12. #12
    Apoc's Avatar Angry Penguin
    Reputation
    1387
    Join Date
    Jan 2008
    Posts
    2,750
    Thanks G/R
    0/12
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Cypher View Post

    Eeeew. C++/CLI. Please go kill yourself now.
    The managed FASM has C++/CLI you tard.

  13. #13
    Cypher's Avatar Kynox's Sister's Pimp
    Reputation
    1356
    Join Date
    Apr 2006
    Posts
    5,368
    Thanks G/R
    0/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Go

    kill

    yourself.

  14. #14
    lanman92's Avatar Active Member
    Reputation
    50
    Join Date
    Mar 2007
    Posts
    1,033
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Off-topic, but how do you access the buffs/debuffs for players and units now? I remember it being changed a lot from TBC->WOTLK. Isn't it buried in UNIT_AURA or something?

  15. #15
    SKU's Avatar Contributor
    Reputation
    306
    Join Date
    May 2007
    Posts
    565
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm pretty sure g3gg0/Sillyboy posted it somewhere lanman.

Page 1 of 3 123 LastLast

Similar Threads

  1. Injected DoString problems
    By weber7655 in forum WoW Memory Editing
    Replies: 2
    Last Post: 06-07-2011, 10:01 PM
  2. C# Lua Wrapper (No ASM, Requires injected CLR)
    By Apoc in forum WoW Memory Editing
    Replies: 29
    Last Post: 02-04-2011, 02:52 PM
  3. Help getting 3.3.0 Invincible? And problems with cataclysm model injection.
    By random101 in forum WoW ME Questions and Requests
    Replies: 4
    Last Post: 07-25-2010, 08:49 AM
  4. M2-OBJ injecting problem
    By s3ph1roth in forum WoW ME Questions and Requests
    Replies: 1
    Last Post: 09-21-2009, 12:09 PM
  5. DLL Injection Problems
    By lanman92 in forum Programming
    Replies: 4
    Last Post: 06-18-2009, 11:24 PM
All times are GMT -5. The time now is 12:36 PM. 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