1. Welcome to PHCorner Forums. Take a moment to Sign up and gain unlimited access and extra privileges that guests are not entitled to, such as:

    All that and more! Registration is quick, simple and absolutely free. Join our community today!

C and C++ Wallhack Tutorial

Discussion in 'Coding, Programming' started by Jeanh, Apr 25, 2016.

  1. Wallhack Tutorial for those who wants to learn:

    Credit to: kuyagENk

    Guide Contents:

    • How to Compile a Wallhack
    • Making Hacks Undetected
    • Tutorial on DirectX (Must know C++)
    • C++ Language Tutorial
    • Where to learn ASM (also required to make wallhack)
    • How to make GG Bypass

    ****How to Compile a Wallhack

    1. Download and Install Visual C++ here is a link Please or Register to view links.
    2. Download Direct SDK DirectX SDK - (Summer 2004).
    3. Open Visual C++ 2008 Express Edition and Click Create Projects.
    4. In Project types Click on Win32 then on the Right side click Win32 Project then Name Your Project and Click Ok.
    5. Click Application Settings , Click on dll option and Click Finish.
    6. Copy the source and Paste it on your Blank page of your project name (.cpp)


       Sorry you need to Register / Login to see this Codes!    

    7.Delete dllmain.cpp You don't Need it.
    8. Include stdafx.h should be on top of Other Includes.
    9. Click on Projects on top, Click Add New Item.
    10.Click on Header file (.h), Name it log and Click Add.
    11. Copy and Paste the source on the Header file you Created.

    log.h (a header file)

       Sorry you need to Register / Login to see this Codes!    

    12. Go to tools>>option-projects and solution-VC++directories and add direct sdk Summer 2004 includes and library .
    13. Click on Project And then Click Properties.
    14. Click on Configuration Properties , On the Right side on Character set, Change "Use Unicode Character set" to "Use Multi-Byte Character set" and Click Ok.
    15. Download the files i attached in this thread and place the detours.h in your Include folder C:\Program Files\Microsoft Visual Studio 9.0\VC\include and Detours.lib in your Library folder C:\Program Files\Microsoft Visual Studio 9.0\VC\lib.
    16. Click Build and Build your Project.
    17. You will find your DLL file in C:\Documents and Settings\TheIFear\My Documents\Visual Studio 2008\Projects\(name of your dll)\Debug, and you will find your dll.

    ******Making Hacks Undetected

    This one is D3D-sided codes

    Ok all your D3D hooks go through to be formed into the device. Once this is done and D3D is hooked you can release create device so that it wont be detected.
    I do so in my base with this code in my CreateDevice Reclass


       Sorry you need to Register / Login to see this Codes!    

    Then you will need to initialise your device

       Sorry you need to Register / Login to see this Codes!    

    Its also a good idea to log this to see if it worked
    to do that just say
    else{ add_log("D3D create device error...\n"); }
    Then return to your device.

    Now lets look at another method
    2)another way **** it hack GG.
    4)code cave the hook int3->Jmp then in the code cave->Jmp(detour)d3d functions ->jmp back to original flow ;Hook hopin

    Now i thought Number 2 looked hansom but then i thought that i could adapt that view point to number 4 which basicly bypasses GG.
    now I am not going to go through ASM debugging to detour your d3d hook
    but were not really going to be caving like 4) says. Due to the fact that were dropping the Cave early - we can just Jmp to a nice clean bit of space (0900001C) looks pretty nice place to settle.
    Then in our C++ for this we __asm for the jmp. Now fatboy88 says to detour our d3d functions, thats all good fun but more univsersaly we could Jmp the GG check. Therefore placing more memory crazy hacks and also you would be bypassing a clean reg for debugger logging and looting.

    *****Tutorial on DirectX and C++ Basics

    1. Download The latest Direct X SDK Which can be found here Please or Register to view links
    2. Then Install - duh?!
    3. click START
    ALL programs
    Direct X SDK
    Then Click on
    Direct X sample browser.
    4. then you will see lots of TUTs

    then go down
    and you will see the "Create device" tut
    there is more stuff like pixel shredder, textures .etc
    5. then click on the documentation and READ.

    TO Understand this tut please learn C++


    Enjoy.Happy coding everyone

    ***C++ Language Tutorial

    For those who has the guts to learn everything about the C++ from basics to professional coding structure, here's the link Please or Register to view links

    ******Where to learn ASM (also required to make wallhack)

    ASM stands for Automatic Storage Management

    is a feature provided by Oracle Corporation within the Oracle Database from release Oracle 10g (revision 1) onwards. ASM aims to simplify the management of database files. To do so, it provides tools to manage file systems and volumes directly inside the database, allowing database administrators (DBAs) to control volumes and disks with familiar SQL statements in standard Oracle environments. Thus DBAs do not need extra skills in specific file systems or volume managers (which usually operate at the level of the operating system).

    With ASM:

    • IO channels can take advantage of data striping and software mirroring
    • DBAs can automate online redistribution of data, along with the addition and removal of disks/storage
    • the system maintains redundant copies and provides 3rd-party[citation needed] RAID functionality
    • Oracle supports third-party multipathing IO technologies (such as failover or load balancing to SAN access)
    • the need for hot spares diminishes

    *****How to make GG Bypass

    You need to know how to:
    Make a Wallhack *posted on forum
    JMP functions *I posted in a tutorial
    Open Soldierfront in OllyDBG - download OllyDBG goto soldierfront.exe and open
    Unpack Soldierfront *I found that its packed with ASProtect
    Copy the memory to a txt file *BAsic computer skills & logic
    Now to bypass Gameguard we just need to know where it interupts
    Search for "GameHack Detcted" (or whatever it says in that dialog box)
    Now look through the ASM in memory before it, you will see where it loads gameguard then releases it. Now you need to let it load gameguard else it will crash you, but you need to stop everything after that and before the final Push command. now this is really easy. Just find the Address before GameGuard kicks you, and look at the address after. JMP to empty memory, its as simple as JMP 910000 (Asuming 9100000 is in open memory) then all you have to do is return to the address that you found after the check.
    Its so damn simple compared to most bypass coding. Yet so effective.
    Please just have a go - you would be suprised as to how damn simple this is. Everyone just gives up when they see an ASM command like JMP.

    Last edited by a moderator: May 6, 2016
  2. yun lang ang di ko alam :hilarious::hilarious:
  3. iLoonie

    iLoonie Eternal Poster Established

    try mo sa less secure na FPS game boss, yung madali lang ma injected.

    YOVICPAW Addict Established

    Thanks for sharing boss
  5. sa left 4 dead to :) ..... pwede din sa sf2 pero need mo yung unmount bypass para kumagat :)
  6. di ko alam yan..hahaha
  7. kunti lang din alam ko diyan nung kasagsagan pa ng sf :D
  8. hmm..hahaha wala pa din akong alam diyan
Tags / Keywords: