Results 1 to 7 of 7
  1. #1
    mojo007's Avatar
    Join Date
    Apr 2008
    Posts
    29
    Reputation
    9
    Thanks
    0

    making hack with c++

    Need:
    Visual C++ 6

    Stage:
    Code a Dll with our hack functions included:
    1. Stamina();
    2. Teleport(x, y, z);
    Create a new MFC project with features:
    1. Load our Dll
    2. Define & Export functions from the Dll
    3. Stamina Timer
    4. Teleport choosen location

    Get To Work(Dll) !


    Create a new Win32 Dynamic-Link Library Project, Call it ("LH1337DLL")
    Choose A simple DLL project
    Add 3 new file to the project: {Text File, "LH1337DLL.def"} {Source, "functions"} {Header, "functions"}

    Add this code into functions.cpp:
    Code:
    #include "stdafx.h"
    #include "functions.h"

    DWORD dfgiddfg;
    HANDLE dfgdsgdsg;

    void OpenMemory()
    {
    HWND frgss = FindWindow(0, "WarRock");
    GetWindowThreadProcessId(frgss, &dfgiddfg);
    dfgdsgdsg = OpenProcess(PROCESS_ALL_ACCESS|PROCESS_VM_OPERATIO N|PROCESS_VM_READ|PROCESS_VM_WRITE|PROCESS_QUERY_I NFORMATION, FALSE, dfgiddfg);
    }


    void Stamina()
    {
    int t=1120403456;
    OpenMemory();
    WriteProcessMemory(dfgdsgdsg,(LPVOID*)(DWORD)0x8B9 B04, &t , 4,NULL);
    }

    void Teleport(float x, float y, float z)
    {
    long raddyx, raddyy, raddyz; // Real address of coordinates
    long readxyz; // Read base address

    ReadProcessMemory(dfgdsgdsg,(LPVOID*)(DWORD)0x1279 280, &readxyz, 4,NULL);

    raddyx = readxyz + 0x174;
    raddyy = readxyz + 0x17C;
    raddyz = readxyz + 0x178;

    WriteProcessMemory(dfgdsgdsg,(LPVOID*)(DWORD)raddy x, &x , 4,NULL);
    WriteProcessMemory(dfgdsgdsg,(LPVOID*)(DWORD)raddy y, &y , 4,NULL);
    WriteProcessMemory(dfgdsgdsg,(LPVOID*)(DWORD)raddy z, &z , 4,NULL);
    }

    Add this code into functions.h:
    Code:
    #pragma once

    void Stamina();
    void Teleport(float x, float y, float z);Add this code into LH1337DLL.def:
    Code:
    LIBRARY LH1337DLL

    EXPORTS
    Stamina
    TeleportDLL Finished !!!

    Get To Work(Exe) !


    Create a MFC Project, call it ("LH1337EXE")
    Choose, Dialog based.
    Add 2 button {Refill Stamina, Teleport}
    Add 3 Edit Box. (X, Y, Z)
    Make 3 new member variable. {X->m_cox} {Y->m_coy} {Z->m_coz}

    Add this code in LH1337EXEDlg.cpp at top after all '#include':
    Code:
    HINSTANCE hDLL = NULL;


    // 1) Teleport
    typedef void (*STAMINA)();
    STAMINA Stamina;


    // 2) Teleport
    typedef void (*TELEPORT)(float x, float y, float z);
    TELEPORT Teleport;Go to the OnInitDialog() function and add this code:
    Code:
    hDLL = AfxLoadLibrary("LH1337DLL");

    if( hDLL == NULL )
    {
    MessageBox("Could not load LH1337DLL.dll");
    }
    else
    {
    Stamina = (STAMINA)GetProcAddress(hDLL, "Stamina");
    Teleport = (TELEPORT)GetProcAddress(hDLL, "Teleport");
    }

    Now, add a BN_CLICKED event the Refill Stamina button and add this code:
    Code:
    Stamina();Now, add a BN_CLICKED event the Teleport button and

    add this code:
    Code:
    UpdateData(1);
    Teleport(m_cox, m_coy, m_coz);

    you need the source code to build in it, for more detail contact

    Credits go to ***

  2. #2
    Oneirish's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    3Oh!3, Colorado
    Posts
    4,568
    Reputation
    876
    Thanks
    866
    My Mood
    Inspired
    you should put the codes in a code quote box thing. just put [quote.] and [/quote] around them. and should add colors i was lost kind of.... but i know c++

  3. #3
    iPants's Avatar
    Join Date
    Apr 2008
    Posts
    9
    Reputation
    10
    Thanks
    0
    he just copied and pasted this off another site

  4. #4
    mojo007's Avatar
    Join Date
    Apr 2008
    Posts
    29
    Reputation
    9
    Thanks
    0
    i typed the credits, but i got anonymois , i dont know why

  5. #5
    happyboy's Avatar
    Join Date
    Jun 2007
    Gender
    male
    Location
    The Netherlands (Nederland)
    Posts
    39
    Reputation
    10
    Thanks
    1
    My Mood
    Aggressive

    Hard to understand

    If you only used VB6 before, this is a REALLY hard tut...

    Should I thank you though?

  6. #6
    Alen's Avatar
    Join Date
    Oct 2007
    Gender
    male
    Location
    Liquid Generator
    Posts
    27,920
    Reputation
    2548
    Thanks
    4,224
    My Mood
    Fine
    Quote Originally Posted by happyboy View Post
    If you only used VB6 before, this is a REALLY hard tut...

    Should I thank you though?
    If he helped you, then you thank him.

  7. #7
    radnomguywfq3's Avatar
    Join Date
    Jan 2007
    Gender
    male
    Location
    J:\E\T\A\M\A\Y.exe
    Posts
    8,858
    Reputation
    381
    Thanks
    1,823
    My Mood
    Sad
    You don't have to use the openMemory() function, you only call it once, so why not put it at the start of your programs entry point.



    There are two types of tragedies in life. One is not getting what you want, the other is getting it.

    If you wake up at a different time in a different place, could you wake up as a different person?


Similar Threads

  1. Making hack with c++
    By MaraFaraCZ in forum Combat Arms Europe Hacks
    Replies: 15
    Last Post: 01-12-2009, 12:09 AM
  2. how u make hacks with Dev-C++
    By devilslayer in forum C++/C Programming
    Replies: 4
    Last Post: 05-04-2008, 10:50 PM
  3. [INFO] making hacks with vista
    By FreeToHack in forum WarRock - International Hacks
    Replies: 6
    Last Post: 08-02-2007, 06:41 PM
  4. How to make hacks with VB6!
    By ltkort213 in forum WarRock - International Hacks
    Replies: 16
    Last Post: 07-21-2007, 08:51 PM
  5. Qwestion , HOw to make hack with VB 6.0?
    By Jeffrey1993 in forum WarRock - International Hacks
    Replies: 2
    Last Post: 06-24-2007, 10:02 PM

Tags for this Thread