[Linux] simple injection with LD_PRELOAD menu

User Tag List

Page 3 of 3 FirstFirst 123
Results 31 to 38 of 38
  1. #31
    HardcorEViruS's Avatar Member
    Reputation
    1
    Join Date
    Aug 2009
    Posts
    2
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by eLaps View Post
    Code:
    uint64_t myguid = ((uint64_t (*)())0x004D3790)();
    This works for me. I'm running 3.3.5.12340 at the moment. How do you get this address? If I search with IDA I only get the address I posted before.
    Thanks for your help.

    [Linux] simple injection with LD_PRELOAD
  2. #32
    eLaps's Avatar Active Member
    Reputation
    34
    Join Date
    Sep 2007
    Posts
    123
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by HardcorEViruS View Post
    How do you get this address?
    reading here :/

  3. #33
    audible83's Avatar Member
    Reputation
    4
    Join Date
    Jun 2008
    Posts
    48
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The patch that sednogma / fenris supplied in the first post of this topic is in place in the latest souces of Wine. just a heads up.

  4. #34
    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)
    Beware that WoW calls glClear() multiple times per frame though. I recommend to use the glXSwapBuffers() hook which is described below.
    Is anyone able to confirm that?
    I can't use the glXSwapBuffers hook as I distribute a tool for WoW and I don't really want to force people to patch and compile Wine.

    I measured the frequence WoW calls glGlear and my results are even below the framecount displayed by WoW itself.
    It's always like 15 fps shown by WoW and 13-14 calls to glClear.

    So I assume the fps displayed by WoW are inaccurate and glClear is just fine if you don't attempt to paint yourself.
    Hey, it compiles! Ship it!

  5. #35
    _Mike's Avatar Contributor
    Reputation
    310
    Join Date
    Apr 2008
    Posts
    531
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by flo8464 View Post
    Is anyone able to confirm that?
    I can't use the glXSwapBuffers hook as I distribute a tool for WoW and I don't really want to force people to patch and compile Wine.

    I measured the frequence WoW calls glGlear and my results are even below the framecount displayed by WoW itself.
    It's always like 15 fps shown by WoW and 13-14 calls to glClear.

    So I assume the fps displayed by WoW are inaccurate and glClear is just fine if you don't attempt to paint yourself.
    I haven't tried running wow under wine, but I know that it calls clear multiple times per frame under d3d at least. (3 times iirc)
    A simple way to test it would be to hook both glClear and glXSwapBuffers to see how many clears there are between each buffer swap.
    And as long as you don't do your own rendering it shouldn't matter much even if they do clear more than once if your hook runs fast enough to not impact the fps to much.

  6. #36
    !@^^@!'s Avatar Active Member
    Reputation
    23
    Join Date
    Feb 2007
    Posts
    155
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Another solution would be to write a "code FPS" mechanic where you count the given number of clears in a second and calculate what n'th clear call your code should run at to retain the code fps specified
    “Programmers are in a race with the Universe to create bigger and better idiot-proof programs, while the Universe is trying to create bigger and better idiots. So far the Universe is winning.” - Rich Cook

  7. #37
    kouteiheika's Avatar Private
    Reputation
    14
    Join Date
    May 2011
    Posts
    7
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by flo8464 View Post
    I can't use the glXSwapBuffers hook as I distribute a tool for WoW and I don't really want to force people to patch and compile Wine.
    You can always redistribute your patched /usr/lib/wine/opengl32.dll.so with your tool and tell your users to replace their version with yours. Wine generally works pretty well even when you mix and match its libraries, especially with components like opengl32.dll.so that basically don't change at all between versions. I'm still using 1.3.11's gdi32 patched with DIB engine on 1.3.23 and I don't have any problems, so I doubt something as rarely touched as opengl32.dll.so will break anything.

  8. #38
    Skazzi's Avatar Private
    Reputation
    1
    Join Date
    Dec 2010
    Posts
    1
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ATM, wow crashed on
    Code:
    		if( read_uint(0x00A70C50) ) {
    			p1 = read_uint(0x00A70C50);
    			p2 = read_uint(p1 + 0x38);
    			p_base = read_uint(p2 + 0x24);
    		}
    Ubuntu 64-bit 12.04 with ptrace_scope=0
    Code:
    Unhandled exception: page fault on read access to 0xc11456c1 in 32-bit code (0xf77176ee).

Page 3 of 3 FirstFirst 123

Similar Threads

  1. Replies: 0
    Last Post: 03-12-2012, 07:42 PM
  2. [RELEASE] Latest mangos Linux x86_64 compiles with UDB + NCDB + FDB
    By MrFreaky in forum WoW EMU General Releases
    Replies: 7
    Last Post: 01-17-2009, 08:28 AM
  3. DLL injection with windows SP3
    By Therrm in forum World of Warcraft Bots and Programs
    Replies: 3
    Last Post: 12-06-2008, 03:03 PM
  4. [How To] Create A Linux Ascent Server With Registration Page
    By Dragonshadow in forum WoW EMU Guides & Tutorials
    Replies: 12
    Last Post: 06-04-2008, 10:22 AM
  5. Very simple problem with Wamp - I cant get my server site up - please help
    By faxmunky in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 04-19-2008, 02:59 AM
All times are GMT -5. The time now is 07:59 PM. 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