Results 1 to 14 of 14
  1. #1
    gethan's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    13
    Reputation
    13
    Thanks
    0

    alterIWnet device pointer?

    Hello forum,
    i'm currently woring on a project for alterIWnet.
    I want to detour the EndScene function, but can't find the offset.
    0x586FA0 for the official MW2 doesen't seem to work.

    I want so say, that i need the offset to the EndScene function.

  2. #2
    aIW|Convery's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Posts
    2,875
    Reputation
    124
    Thanks
    598
    My Mood
    Cynical
    As in after the final kill or are you talking about single player?

  3. #3
    gethan's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    13
    Reputation
    13
    Thanks
    0
    Quote Originally Posted by aIW|Convery View Post
    As in after the final kill or are you talking about single player?
    I'm talking about the multiplayer from alterIWnet 1.3.3.7a++.

  4. #4
    ♪~ ᕕ(ᐛ)ᕗ's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Uterus
    Posts
    8,821
    Reputation
    781
    Thanks
    1,857
    My Mood
    Doh

  5. The Following 2 Users Say Thank You to ♪~ ᕕ(ᐛ)ᕗ For This Useful Post:

    gethan (04-12-2011),[MPGH]Hell_Demon (04-18-2011)

  6. #5
    gethan's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    13
    Reputation
    13
    Thanks
    0
    I got the address(0x06737268), but it looks like MW2 chrashes everytime i inject the dll.

  7. #6
    ♪~ ᕕ(ᐛ)ᕗ's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Uterus
    Posts
    8,821
    Reputation
    781
    Thanks
    1,857
    My Mood
    Doh
    Quote Originally Posted by gethan View Post
    I got the address(0x06737268), but it looks like MW2 chrashes everytime i inject the dll.
    What are u trying to do?

  8. #7
    gethan's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    13
    Reputation
    13
    Thanks
    0
    Atm, I'm trying to draw a rectangle^^

  9. #8
    ♪~ ᕕ(ᐛ)ᕗ's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Uterus
    Posts
    8,821
    Reputation
    781
    Thanks
    1,857
    My Mood
    Doh
    [FONT="Georgia"][COLOR="DarkOliveGreen"][SIZE="2"]
    Quote Originally Posted by gethan View Post
    Atm, I'm trying to draw a rectangle^^
    Use the mw2 engine
    Give me a second......

    EDIT:
    It's on -not allowed-:
    Last edited by master131; 04-12-2011 at 06:17 PM.

  10. The Following User Says Thank You to ♪~ ᕕ(ᐛ)ᕗ For This Useful Post:

    gethan (04-12-2011)

  11. #9
    gethan's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    13
    Reputation
    13
    Thanks
    0
    Wow, ty, I'll look what I can do

  12. #10
    ♪~ ᕕ(ᐛ)ᕗ's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Uterus
    Posts
    8,821
    Reputation
    781
    Thanks
    1,857
    My Mood
    Doh
    Quote Originally Posted by gethan View Post
    Wow, ty, I'll look what I can do
    For what?

  13. #11
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,827
    Reputation
    3310
    Thanks
    74,427
    My Mood
    Breezy
    /removed link
    Don't post links to that site.
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.7 *NEW* 2017 Update!
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]

  14. #12
    Hell_Demon's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    I love causing havoc
    Posts
    3,696
    Reputation
    270
    Thanks
    4,155
    My Mood
    Cheeky
    Where are you trying to draw from?
    Ah we-a blaze the fyah, make it bun dem!

  15. #13
    ♪~ ᕕ(ᐛ)ᕗ's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Uterus
    Posts
    8,821
    Reputation
    781
    Thanks
    1,857
    My Mood
    Doh
    EDIT:
    HUH? Wait.
    Here is the code for the DetourFunction:
    Code:
    oEndScene = (void (__cdecl *)(void))DetourFunction((PBYTE)0x586E00, (PBYTE)xEndScene);
    It's working fine for me. And also 'xEndScene' is mah function where I call the drawing thinies.
    Code:
    void xEndScene(void)
    {
              //Code Here?
    }
    Last edited by ♪~ ᕕ(ᐛ)ᕗ; 04-18-2011 at 05:48 AM.

  16. The Following User Says Thank You to ♪~ ᕕ(ᐛ)ᕗ For This Useful Post:

    gethan (04-18-2011)

  17. #14
    gethan's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    13
    Reputation
    13
    Thanks
    0
    Ok, my DLL code looks like this:

    Code:
    #include <windows.h>
    #include <iostream>
    
    (PBYTE)xEndScene);
    
    bool DetourFunc( BYTE* oldFunc, BYTE* newFunc, DWORD len )
    {
        BYTE* newMem4base = NULL;
        DWORD dwOld;
    
        newMem4base = ( BYTE* )malloc( 5+len );
    
        if( newMem4base == NULL )
            return false;
    
        for( DWORD i = 0; i < ( len+5 ); i++ )
            newMem4base[i] = 0x90;
    
        VirtualProtect( oldFunc, len, PAGE_READWRITE, &dwOld );
    
        memcpy( newMem4base, oldFunc, len );
        oldFunc[0] = 0xE8;
        *( DWORD* )( oldFunc+0x01 ) = DWORD( newFunc-oldFunc-5 );
        oldFunc[5] = 0xE9;
        *( DWORD* )( oldFunc+0x06 ) = DWORD( newMem4base-( oldFunc+0x5 )-5 );
        newMem4base += len;
        newMem4base[0] = 0xE9;
        *( DWORD* )( newMem4base+0x01 ) = DWORD( ( oldFunc+10 )-newMem4base-5 );
    
        for( DWORD i = 10; i <len; i++ )
            oldFunc[i] = 0x90;
    
        return true;
    }
    
    void xEndScene(void)
    {
              //Code Here?
    }
    
    DWORD WINAPI Thread( LPVOID lpParam )
    {
    	DetourFunc( ( BYTE* )0x01031470, ( BYTE* )&xEndScene, 10);
    	return 0;
    }
    
    
    BOOL APIENTRY DllMain( HMODULE hModule, DWORD  ul_reason_for_call, LPVOID lpReserved )
    {
    	if( ul_reason_for_call == DLL_PROCESS_ATTACH )
    	{
    		HANDLE hThread = CreateThread( NULL, 0, Thread, NULL, 0, NULL );
    		CloseHandle( hThread );
    	}
    
    	return TRUE;
    }
    For the Draw function i foud this code(But cant compile(Problem with RGBA color and arguments):
    Code:
    #include <iostream>
    #include <windows.h>
    
    typedef void* (*GetFontType_)(char* FontName, int Unknown1);
    GetFontType_ GetFontType = (GetFontType_)0x505670;
    
    typedef int (*DrawEngineText_)(char* Text, int Unknown1, void* Font, float X, float Y, float Unknown2, float Unknown3, float Unknown4, RGBA_COLOR* Color, int Unknown5);
    DrawEngineText_ DrawEngineText = (DrawEngineText_)0x509D80;
    
    
    struct RGBA_COLOR
    {
            float r, g, b, a;
    };
    
    
    void DrawTextWithEngine(float x, float y, RGBA_COLOR* Color, const char* Text, ...)
    {
    	void* Font = GetFontType( "fonts/smalldevfont", 0 );
            	
    	char buf[300] = "";
    	va_list va_alist;
    
    	va_start(va_alist,Text);
    	vsnprintf(buf,sizeof(buf),Text,va_alist);
    	va_end(va_alist);
    
    	DrawEngineText(buf,0x7FFFFFFF,Font,x,y,1.0f,1.0f,0.0f,Color,0);	
    }
    But i am a little helpless now. I don't know what to next.