Dismiss Notice
Want to Shorten Your Long URL? Check out our sister website Tiniurl to solve your needs!

Tutorial How to make Dll hack

Discussion in 'WarRock' started by kvdirect, Aug 11, 2009.

  1. kvdirect

    kvdirect Registered User

    Messages:
    83
    Likes Received:
    1
    Joined:
    Nov 15, 2008
    After reading alot of the post here and getting alot of questions about how to make a dll hack I decided to make a tutorial on it.

    Things needed
    1. Visuial C++ 6.0 (pm me if you need this)
    2. Addie finder ( Nearons should work for you)
    3. SDK Summer 2004 Download here http://www.microsoft.com/downloads/d...displaylang=en
    4. Injector (Any hack you have downloaded comes with one.)


    Step 1

    Open Visual C++
    Press File-->New Select Win32 Dynamic-Link Library and enter a project Name
    Select An Empty DLL Project
    Press File-->New Select C++ Source File Give it a name

    Now you are ready to get started

    Copy and Paste this code Start Below Here:

    /*
    Project : Public HACK Tutorial
    Author : KVDIRECT AKA:Sniper8ce
    */
    #include <stdio.h>
    #include <windows.h>

    //Address go Here
    #define Playerpointer 0x00CB11C8 //these are current
    #define Serverpointer 0x00B39BE0 // as of 8-11-09
    #define OFS_X 0x0000023C // on Warrock int
    #define OFS_Y 0x00000244 // change them when needed
    #define OFS_Z 0x00000240
    #define ADR_FAST_HEALTH 0x00AF5404
    #define ADR_FAST_AMMO 0x00AF5400
    #define ADR_FAST_FLAG 0x00AF5408
    #define ADR_FAST_REPAIR 0x00AF540C
    #define ADR_SPEED 0x0099ADA8
    #define ADR_SPAWN_1 0x00C48320
    #define ADR_SPAWN_2 0x00CACF2C
    #define ADR_BOUNDS_1 0x00C5DF9C
    #define ADR_BOUNDS_2 0x00C5DFA0
    #define ADR_SCOPE 0x00AF53F6
    #define ADR_Spread 0x00AF5458


    HANDLE Warrock;
    DWORD *ingame= (DWORD*)Playerpointer;
    DWORD *outgame= (DWORD*)Serverpointer;

    //Hack Codes Go Here
    //Fast All
    void Fastall()
    {
    *(float*) ADR_FAST_HEALTH = 5000000;
    *(float*) ADR_FAST_AMMO = 5000000;
    *(float*) ADR_FAST_FLAG = 50000;
    *(float*) ADR_FAST_REPAIR = 5000000;
    }
    //Speed
    void speed() // insert key, speed on
    {
    if(GetAsyncKeyState(VK_INSERT) &1)
    {
    *(float*) ADR_SPEED = 1500;
    }
    }
    void speedoff() // delete key, speed normal
    {
    if(GetAsyncKeyState(VK_DELETE) &1)
    {
    *(float*) ADR_SPEED = 100;
    }
    }
    //No Spawn Wait
    void nowait()
    {
    *(float*) ADR_SPAWN_1 = 0;
    *(float*) ADR_SPAWN_2 = 0;
    }
    //No Boundries
    void nobound()
    {
    //if (nobound)
    {
    long t=0;
    unsigned long Protection;
    VirtualProtect((void*)ADR_BOUNDS_1, sizeof(t), PAGE_READWRITE, &Protection);
    memcpy((void*)ADR_BOUNDS_1, &t , sizeof(t));
    VirtualProtect((void*)ADR_BOUNDS_1, sizeof(t), Protection, 0);
    VirtualProtect((void*)ADR_BOUNDS_2, sizeof(t), PAGE_READWRITE, &Protection);
    memcpy((void*)ADR_BOUNDS_2, &t , sizeof(t));
    VirtualProtect((void*)ADR_BOUNDS_2, sizeof(t), Protection, 0);
    }
    }
    //Scope
    void scope()
    {
    if(GetAsyncKeyState(VK_RBUTTON))
    {
    int t=1;
    unsigned long Protection;
    VirtualProtect((void*)ADR_SCOPE, sizeof(t), PAGE_READWRITE, &Protection);
    memcpy((void*)ADR_SCOPE, &t , sizeof(t));
    VirtualProtect((void*)ADR_SCOPE, sizeof(t), Protection, 0);
    }
    else
    {
    int t=0;
    unsigned long Protection;
    VirtualProtect((void*)ADR_SCOPE, sizeof(t), PAGE_READWRITE, &Protection);
    memcpy((void*)ADR_SCOPE, &t , sizeof(t));
    VirtualProtect((void*)ADR_SCOPE, sizeof(t), Protection, 0);
    }
    }
    //No Spread
    void Spread()
    {
    *(float*) ADR_Spread = 0;
    }

    //Any other hacks you decide to add go above here
    //Hack are put into the game here
    void snip()
    {
    for(;; )
    {
    if(*ingame) //check if we are ingame.. prevent crashs
    {
    Fastall();
    speed(); // player hacks go here
    speedoff();
    scope();
    }
    if(*outgame)
    {
    Spread();
    nowait(); //server hacks go here
    }
    Sleep(200); //prevent for overloading the cpu
    }
    }
    BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpReserved)
    {
    if(dwReason == DLL_PROCESS_ATTACH)
    {
    MessageBoxA(NULL, "YOUR NAME HERE", "Credits", MB_OK); // Put your
    //name where Your Name Here is but leave the ""
    MessageBoxA(NULL, "Sniper8ce's Base Code", "Credits", MB_OK); // Do not
    // edit this
    CreateThread(0, 0, (LPTHREAD_START_ROUTINE)snip, 0, 0, 0); //create
    // the hackthread
    }
    return TRUE;
    }


    Stop Copy Above Here!!!!!!!!!!!!
    Now you can goto Build-->Compile "?.cpp"
    If no errors then Build-->Build "?.dll"
    Then goto your project folder and click the debug folder. In there you should fine the DLL file. Copy and Paste it in the same folder as your injector. Make sure they have the same name.
    Exp- test.exe(injector) test.dll(DLL File)

    Look over the hacks and build off of them this will get you started but its a very simple hack. I will check this post every day and try to get back to your questions ASAP.

    Remember if you use my base code then you can atleast do 2 things for me.
    1. Give me Credit
    2. Press the Thanks Button

    Have fun with this and keep in touch with any updates to the hack you have added. Im interested to see how far you can get with it.
     
    Last edited: Aug 13, 2009
    1 person likes this.
  2. dvsone

    dvsone Registered User

    Messages:
    35
    Likes Received:
    0
    Joined:
    Oct 5, 2007
    nice post, i'm sure this will be very useful to alot of people here....bravo!
     
  3. fallenshadow5593

    fallenshadow5593 Registered User

    Messages:
    6
    Likes Received:
    0
    Joined:
    Apr 28, 2009
    Every time i click "compile" it finishes and says i have 2 errors 0 warnings, how can i fix this?
     
  4. kvdirect

    kvdirect Registered User

    Messages:
    83
    Likes Received:
    1
    Joined:
    Nov 15, 2008
    Sorry about that I fixed the code and its now error free
    I tested it and its ok now
    So copy it and paste it now.
     
  5. iBored1x1

    iBored1x1 Registered User

    Messages:
    67
    Likes Received:
    3
    Joined:
    Jul 29, 2008
    Still errors dude.
    1>------ Build started: Project: Warrock Test, Configuration: Debug Win32 ------
    1>Linking...
    1>dllmain.obj : error LNK2005: _DllMain@12 already defined in Warrock Test.obj
    1>C:\Users\iBored1x1\Documents\Visual Studio 2008\Projects\Warrock Test\Debug\Warrock Test.dll : fatal error LNK1169: one or more multiply defined symbols found
    1>Build log was saved at "file://c:\Users\iBored1x1\Documents\Visual Studio 2008\Projects\Warrock Test\Warrock Test\Debug\BuildLog.htm"
    1>Warrock Test - 2 error(s), 0 warning(s)
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
     
  6. hackpr013

    hackpr013 Registered User

    Messages:
    31
    Likes Received:
    0
    Joined:
    Aug 10, 2009
    how about in c ++ 2008 express edition?
     
  7. rainscapee

    rainscapee Registered User

    Messages:
    119
    Likes Received:
    0
    Joined:
    Jul 24, 2009
    ------ Build started: Project: sigh.dll, Configuration: Debug Win32 ------
    Compiling...
    sigh.dll.cpp
    c:\documents and settings\****\my documents\visual studio 2008\projects\project1\sigh.dll\sigh.dll\sigh.dll.cpp(4) : fatal error C1083: Cannot open precompiled header file: 'Debug\sigh.dll.pch': No such file or directory
    Build log was saved at "file://c:\Documents and Settings\****\My Documents\Visual Studio 2008\Projects\Project1\sigh.dll\sigh.dll\Debug\BuildLog.htm"
    sigh.dll - 1 error(s), 0 warning(s)
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
     
  8. RootX

    RootX Registered User

    Messages:
    38
    Likes Received:
    0
    Joined:
    Mar 28, 2009
    [quotec:\documents and settings\****\my documents\visual studio 2008\projects\project1\sigh.dll\sigh.dll\sigh.dll. cpp(4) : fatal error C1083: Cannot open precompiled header file: 'Debug\sigh.dll.pch': No such file or directory
    Build log was saved at "file://c:\Documents and Settings\****\My Documents\Visual Studio 2008\Projects\Project1\sigh.dll\sigh.dll\Debug\Bui ldLog.htm"
    sigh.dll - 1 error(s), 0 warning(s)
    ][/quote]
    Where is it ?
     
  9. skywalker1095

    skywalker1095 Registered User

    Messages:
    1
    Likes Received:
    0
    Joined:
    Jul 5, 2009
    rootx do you have direct x 2007 summer sdk?
    i think thats the problem
     
  10. asenkhan

    asenkhan Registered User

    Messages:
    13
    Likes Received:
    0
    Joined:
    Jul 26, 2009
    can you make me a dll hack CODE that is for speed hack and wallhack only?? please kvdirect..
     
  11. kvdirect

    kvdirect Registered User

    Messages:
    83
    Likes Received:
    1
    Joined:
    Nov 15, 2008
    asenkhan, speed and wallhack(glasswalls) or something else

    rootx, ibored1x1, and rainscapee- skywalker is right you do need SDK summer 2007 but I know I had alot of problems when I first started out with the newer compilers. Thats why I downloaded a free copy of Microsoft Visuail C++ 2006. Just google it and download it and SDK and I bet your hacking and coding days get a whole lot easier.
     
  12. fallenshadow5593

    fallenshadow5593 Registered User

    Messages:
    6
    Likes Received:
    0
    Joined:
    Apr 28, 2009
    For me there's no errors but when i try to inject it, it says "injection succeeded, now running" then theres no menu or anything.
    Any solutions?
     
  13. rainscapee

    rainscapee Registered User

    Messages:
    119
    Likes Received:
    0
    Joined:
    Jul 24, 2009
    ok i can compile it and it says sucess now....but when i build it it says failed....wtf?

    rainscapee added 0 Minutes and 46 Seconds later...< --- Please use the edit button in the future--- >

    also fallen theres hotkeys for it...no menu
     
    Last edited: Aug 13, 2009
  14. kvdirect

    kvdirect Registered User

    Messages:
    83
    Likes Received:
    1
    Joined:
    Nov 15, 2008
    what error are you getting
     
  15. rainscapee

    rainscapee Registered User

    Messages:
    119
    Likes Received:
    0
    Joined:
    Jul 24, 2009
    ------ Build started: Project: sigh.dll, Configuration: Debug Win32 ------
    Linking...
    sigh.dll.obj : error LNK2005: _DllMain@12 already defined in dllmain.obj
    C:\Documents and Settings\****\My Documents\Visual Studio 2008\Projects\Project1\sigh.dll\Debug\sigh.dll.dll : fatal error LNK1169: one or more multiply defined symbols found
    Build log was saved at "file://c:\Documents and Settings\****\My Documents\Visual Studio 2008\Projects\Project1\sigh.dll\sigh.dll\Debug\BuildLog.htm"
    sigh.dll - 2 error(s), 0 warning(s)
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
     
  16. kvdirect

    kvdirect Registered User

    Messages:
    83
    Likes Received:
    1
    Joined:
    Nov 15, 2008
    do you have sdk summer 2004 installed
     
  17. rainscapee

    rainscapee Registered User

    Messages:
    119
    Likes Received:
    0
    Joined:
    Jul 24, 2009
    no and i cant find it
     
  18. tally

    tally Registered User

    Messages:
    15
    Likes Received:
    0
    Joined:
    Jul 18, 2009
    Nice man,:highfive: but what are the hotkeys:puke:
     
  19. kvdirect

    kvdirect Registered User

    Messages:
    83
    Likes Received:
    1
    Joined:
    Nov 15, 2008
    The hot keys are as follows

    Speed On = Ins
    Speed Off = Del
    Scope = Right Mouse Button
    The Rest are always on


    I was wondering if you guys need some more code(functions) for the hack. I wrote this as a starter and didn't put a whole lot in it. But if any of you would like some more let me know. I have Gold Prem, No water, teleport, automedic, unlimited ammo, super jump, NFD, Glass walls, and more. Let me know what you guys are interested in.
    automedic and unlimited ammo both require bypass.

    kvdirect added 38 Minutes and 25 Seconds later...< --- Please use the edit button in the future--- >

    Here is download link for sdk summer 2007

    http://www.microsoft.com/downloads/...42-9912-42a3-9a9e-d857199f888e&displaylang=en
     
    Last edited: Aug 13, 2009
  20. benpaolo

    benpaolo Registered User

    Messages:
    21
    Likes Received:
    0
    Joined:
    Nov 29, 2005
    could you give me a copy of visual c++ 2006, can't find one on the first 20 pages of google >.> visual c++ 2008 is ****in me off. And more tutorials please :)
     

Share This Page