Generic Dll Injector for x86 and x64 + Export Caller menu

User Tag List

Results 1 to 15 of 15
  1. #1
    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)

    Generic Dll Injector for x86 and x64 + Export Caller

    Releasing this for several reasons:
    * Previous releases have become abandoned because they weren't part of an actively developed project, this one is so it should hopefully receive regular updates.
    * Extra functionality unavailable in other loaders (a remote export caller)
    * Compatibility with XP (thanks Harko).
    * Easier to use without needing to modify the source.
    * Batch scriptable.

    Anyway, the meat is here:
    Ramblings++ » Blog Archive » Generic Dll Injector for x86 and x64 + Export Caller - Just another periodically updated, syndicated website

    Mods: I'm linking like this so I only have to update one source rather than multiple (as I'm posting this in multiple locations). I checked the rules and this seems within them, however if you disagree please let me know.

    Apoc: Now you have nothing to complain about you noob.
    Last edited by Cypher; 08-20-2009 at 09:59 AM.

    Generic Dll Injector for x86 and x64 + Export Caller
  2. #2
    Shenlok's Avatar Active Member
    Reputation
    15
    Join Date
    Jul 2008
    Posts
    42
    Thanks G/R
    6/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello,

    Firstly, thanks for this contribution. I know I will find this a very useful program, when I get it to work that is

    Unfortunately I've been unable to get your loader to work for me so far. I've compiled it using VS2008 SP1, Boost Library 1.39 (which i compiled for use in x64) and it compiles fine. However when running it from the command prompt with the instruction posted on your blog (“Loader64.exe” –process=”notepad.exe” –module=”Module64.dll” –export=”Initialize”), I get the error "Error! unkown option -p".

    So I try the command while removing the "-" from the params, and the error changes to "Error! Invalid combination of options." I've tried most options that I can think of, as well as all of the examples posted on your blog, each time giving me the same errors, depending on whether I use hyphens or not. I know I must be doing something wrong that is retardedly simple, and if so I apologise for being an idiot, but I can't figure it out myself. Any help would be appreciated.

    EDIT: I'm using Windows 7 Professional x64, an official copy I got from the MSDNAA, if thats any help.
    Last edited by Shenlok; 08-23-2009 at 02:56 PM.

  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)
    You need to use "--" not "-" before the command names.

    Sorry, it seems the blog software has taken the two hyphens and merged them into one big one. >_>

  4. #4
    Shenlok's Avatar Active Member
    Reputation
    15
    Join Date
    Jul 2008
    Posts
    42
    Thanks G/R
    6/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ah, that would make sense. I feel like such a fool, especially since I used the double hyphens when compiling boost not long ago But now, another error emerges.
    "Error! Injector::InjectLib: Call to LoadLibraryW in remote process failed."

    And if I try with the --launch parameter, it says:
    "Error! Injector::InjectLib: Could not create process."

    If I were to make a guess I'd have thought it would be something to do with admin rights, but I open the command prompt from the Run menu thus giving it admin privileges. Sorry to bug you about this. Again it's probably something very simple that I'm overlooking.

    P.S.: UAC is disabled, fyi

  5. #5
    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)
    That's strange... You on Vista or Windows 7? Also, x86 or x64?

    Just to be sure about the admin privs. Please find the Command Prompt in your start menu, then right click it, and click "Run as Administrator". The title of the window should be "Administrator: Command Prompt".

    This is just bizarre because I've tested the code on my Windows 7 machine extensively.

    EDIT:

    For the x86/x64 question, I'll split it up:
    1. What architecture is your OS?
    2. What loader architecture are you using?
    3. Does the loader architecture match the process?

    e.g
    Even on x64 Windows, you need to use the x86 loader if the process (for example, WoW) is x86.
    Last edited by Cypher; 08-23-2009 at 05:35 PM.

  6. #6
    Shenlok's Avatar Active Member
    Reputation
    15
    Join Date
    Jul 2008
    Posts
    42
    Thanks G/R
    6/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for your help Cypher, got it working now. Seems that it was indeed something retardedly simple, namely that the process (WoW's) architecture was not x64, and I was using the x64 loader. I had forgotten that wow wasn't a 64bit process. Now the injection works using the --process parameter, however --launch still gives me the "Could not create process" error.

    I'm on Windows 7 Professional RTM x64 by the way. And yes, the title of the command prompt is correct.

    So yeah, thanks for your help, and sorry for being a moron. The --launch thing isnt much of an issue for me, but if you want I'll stick around this thread and try any suggestions you may have.

  7. #7
    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)
    I'm on Windows 7 Ultimate x64.

    Please give me the full commandline you're using when using "--launch".

    Here is mine, it is working fine on my end:
    Loader32 --launch="C:\Users\Public\Games\World of Warcraft\WoW.exe" --module="Extensions\HXGeneric32.dll" --export="Initialize"

  8. #8
    Shenlok's Avatar Active Member
    Reputation
    15
    Join Date
    Jul 2008
    Posts
    42
    Thanks G/R
    6/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Loader32.exe --launch="C:\World of Warcraft\WoW.exe" --module="LuaFoo.Injectee.dll"

  9. #9
    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)
    Okay, I just tried injecting the exact same DLL and it worked fine for me.

    Are you capable of debugging the loader and checking the error code for the call to CreateProcessW? If so, please do.

    If not then I'll throw together a quick version just for you that will dump that information out, but if you are, that would save us both some time.

    Thanks.

  10. #10
    Shenlok's Avatar Active Member
    Reputation
    15
    Join Date
    Jul 2008
    Posts
    42
    Thanks G/R
    6/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok, figured it out. Seems idiocy runs in my family. This is a fresh install of Windows 7, so I copied WoW over from my Brother's PC, and it turned out that he had named the folder "Word of Warcraft", which I failed to notice up until now. So naturally it couldn't find wow.exe as I had left out this typo when using your launcher. Sorry for the hassle, all works well and good. Thanks again for the release!

  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)
    Hahaha. No problem.

    At least now I know there's nothing wrong with the loader.

  12. #12
    flo8464's Avatar Active Member
    Reputation
    30
    Join Date
    Apr 2009
    Posts
    434
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,
    working just perfectly, thanks for sharing.
    Just a thing I am wondering about .. is there a way to pass arguments to the called exported function without ending up with ugly code & asm in it?

  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)
    Originally Posted by flo8464 View Post
    Hi,
    working just perfectly, thanks for sharing.
    Just a thing I am wondering about .. is there a way to pass arguments to the called exported function without ending up with ugly code & asm in it?
    You can pass 1 via the call to CreateRemoteThread.

    If you want to pass more than 1 you'll need to use my RtlRemoteCall rewrite.

  14. #14
    sacramento's Avatar Private
    Reputation
    1
    Join Date
    Mar 2013
    Posts
    1
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi:
    I had lauch the link you had share to download your .exe but i can't find the apllication...
    The link as be discontinued?

    Thanks

  15. #15
    miceiken's Avatar Contributor Authenticator enabled
    Reputation
    208
    Join Date
    Dec 2007
    Posts
    401
    Thanks G/R
    7/8
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This is probably the one,
    Filebeam - Beam up that File Scottie!

Similar Threads

  1. Replies: 22
    Last Post: 04-29-2009, 05:11 PM
  2. DLL Injector (x86 + x64, Unicode + MBCS)
    By Cypher in forum WoW Memory Editing
    Replies: 4
    Last Post: 04-23-2009, 02:07 PM
  3. Quick Request for Vista x86 and W7 Beta x86 Users
    By Cypher in forum WoW Memory Editing
    Replies: 2
    Last Post: 01-28-2009, 03:41 AM
  4. .DLL Injector & Language Hack
    By tehshadow in forum World of Warcraft Bots and Programs
    Replies: 18
    Last Post: 11-07-2006, 10:38 PM
  5. Farming for Tubers and Night Dragon's Breath
    By Matt in forum World of Warcraft Guides
    Replies: 0
    Last Post: 04-01-2006, 09:51 AM
All times are GMT -5. The time now is 03:30 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