Results 1 to 10 of 10
  1. #1
    shryder's Avatar
    Join Date
    Jul 2015
    Gender
    male
    Location
    Nuketown
    Posts
    28
    Reputation
    10
    Thanks
    11
    My Mood
    Cool

    Wink Force DVAR Change Hack with Source code

    Hey everybody ,
    after i saw that so many people need some help in learning hacking and stuff ...
    i wanted to share my little source code which Forces DVAR to change ... this will work fine on other CoD series if you just change the offsets and addresses.
    alright , this is the code where i explained EVERYTHING in the comments

    Some of you may don't know how to get the code running , its just easy as ABC , follow these steps:
    1. Make a new Win32 Project and select DLL when you see a BOX ...
    2. open dllmain.cpp and past the code inside it

    Easy eh?

    after all , you can still download the attachements and run the VS Solution on your PC if it just doesn't work for some reason... feel free to contact me on our Discord Channel : https://discord.gg/0o2Lq31KpIQKrFNF
    or just PM me through MPGH.NET ...

    note that i used VS 2012 to make this.
     

    Code:
    // dllmain.cpp : Defines the entry point for the DLL application.
    #include "stdafx.h"
    //MADE WITH <3 by ShRyDeR.
    
    #include <Windows.h>
    #include <iostream>
    using namespace std;
    
    
    //Special Thanks for Kenshin13 which helped me to do this ^^ <3 
    
    template <class Value>
    //function that writes into the Pointer.
    void WritePointer(DWORD pointer, DWORD pointerofs, Value value)
    {
    	DWORD dwPointer = *(DWORD*)pointer;
    	*(Value*)(dwPointer + pointerofs) = value;
    }
    //function that writes into the memory 
    void Writing()
    {
    	//use it at your own risk , u don't need to credit me if you want to use it ^^ Have fun 
    
    	//Some other addresses, if you want more then contact me ... and i will show you how to get addresses easily :) ;) ... Note : i used IDA to get the addresses so easily , not Cheat engine.
    	// cg_gun_x 9FD42C
    	// cg_gun_y 9FD404
    	// cg_fun_z = 9FD414
    	// Draw Gun 7ED384
    
    	//now let's write to the Addresses 
    
    	//note that the offset is always 0x10 ... 
    
    	//Structure ==> WritePointer<FLOATorINT>(ADDRESS,OFFSET,VALUE);
    
    	//if you don't know the difference between float & int then just try both of them , lel... 
    
    			//FOG , address 69F1050
    	WritePointer<float>(0x69F1050, 0x10, 0);
    			//cg_fov , address 9FBE24
    	WritePointer<float>(0x9FBE24, 0x10, 140.f);
    			//r_fullbright, address 69F0EB0
    	WritePointer<int>(0x69F0EB0, 0x10, 1);
    			//laserForceOn , address 7DBA50
    	WritePointer<int>(0x7DBA50, 0x10, 1);
    	
    	//Have Fun ;) 
    }
    /*Create a thread which loops and writes to the memory over and over ... */
    LRESULT CALLBACK Thread( LPVOID arg ){
         while( true )
         {
               Writing();
               Sleep ( 100 );
         }
    }
    // Entry Point
    BOOL APIENTRY DllMain( HANDLE, DWORD d, LPVOID ){
      if( d == DLL_PROCESS_ATTACH )
    	
        CreateThread( NULL, NULL, LPTHREAD_START_ROUTINE( Thread ), NULL, NULL, NULL );
      return TRUE;
    }

    CREDITS:Kenshin13 because he helped me in almost every problem i got, until the end where i got the code working <3 <3 :D

    AGAAIN: IF YOU NEED ANY HELP JUST PM ME OR MESSAGE ME ON DISCORD!!!

    Thank You :)
    <b>Downloadable Files</b> Downloadable Files

  2. The Following 10 Users Say Thank You to shryder For This Useful Post:

    DLStuffAccountXD (09-16-2016),freshmonkey2000 (04-30-2016),gtboss12 (09-17-2016),hbg (04-05-2016),hoogste1 (03-03-2016),lewia227654321 (09-03-2016),Martoma1 (3 Weeks Ago),quwhbkdwhbji (03-18-2016),trmpt4him (04-11-2016),VerZus1337 (04-26-2016)

  3. #2
    Democritus's Avatar
    Join Date
    Dec 2013
    Gender
    male
    Location
    Dyrus will be missed.
    Posts
    2,232
    Reputation
    294
    Thanks
    649
    My Mood
    Aggressive
    //Approved, nice code.

  4. #3
    __Xen0's Avatar
    Join Date
    Dec 2015
    Gender
    male
    Posts
    116
    Reputation
    14
    Thanks
    324
    My Mood
    Sneaky
    I got a few suggestions for you:

    - none of the addresses work. Since I don't think you uploaded it without testing, you might have found some wrong ones that only work for you
    - the struct offset for the current dvar value you are using is wrong, try xrefing some dvars and you will immediately see what the right one is
    - I would suggest using the dvar struct and Dvar_FindVar, since you are using a dll. If you want to use addresses though, just search for the dvars name in IDA, xref it, find the correct cross reference in one of the dvar registering functions and then you can immediatly see the correct address. (The one where the result of Dvar_RegisterXXX is stored). Note that that would be a double pointer

    Greetings

  5. #4
    shryder's Avatar
    Join Date
    Jul 2015
    Gender
    male
    Location
    Nuketown
    Posts
    28
    Reputation
    10
    Thanks
    11
    My Mood
    Cool

    Red face

    Quote Originally Posted by __Xen0 View Post
    I got a few suggestions for you:

    - none of the addresses work. Since I don't think you uploaded it without testing, you might have found some wrong ones that only work for you
    - the struct offset for the current dvar value you are using is wrong, try xrefing some dvars and you will immediately see what the right one is
    - I would suggest using the dvar struct and Dvar_FindVar, since you are using a dll. If you want to use addresses though, just search for the dvars name in IDA, xref it, find the correct cross reference in one of the dvar registering functions and then you can immediatly see the correct address. (The one where the result of Dvar_RegisterXXX is stored). Note that that would be a double pointer

    Greetings
    Hey ,
    thanks for your suggestions.

    i used IDA to find the addresses and the code is perfectly working for me , the reason why its not working should be probably because you are using a different version of iw4mp.exe , because afaik the addresses change every time they compile the code (I'm not sure about it tho)...
    for the Dvar_FindVar function , i don't know how to use it , i would like to know how it works.
    Note that this is the first hack i ever made and i'm trying to learn how to make a wallhack now.
    Thank you again , @__Xen0. ^^
    Last edited by shryder; 03-04-2016 at 08:02 AM.

  6. #5
    __Xen0's Avatar
    Join Date
    Dec 2015
    Gender
    male
    Posts
    116
    Reputation
    14
    Thanks
    324
    My Mood
    Sneaky
    I will write some code for you later today! Fyi, I am using the newest iw4mp.exe which is 1.2.211! Is your code maybe for one of the iw4 projects?

  7. #6
    shryder's Avatar
    Join Date
    Jul 2015
    Gender
    male
    Location
    Nuketown
    Posts
    28
    Reputation
    10
    Thanks
    11
    My Mood
    Cool
    Quote Originally Posted by __Xen0 View Post
    I will write some code for you later today! Fyi, I am using the newest iw4mp.exe which is 1.2.211! Is your code maybe for one of the iw4 projects?
    Thank you , mate.
    and Yeah , my Code is for an IW4 Project which is www.UnionMod.net

  8. #7
    __Xen0's Avatar
    Join Date
    Dec 2015
    Gender
    male
    Posts
    116
    Reputation
    14
    Thanks
    324
    My Mood
    Sneaky
    Quote Originally Posted by shryder View Post
    Thank you , mate.
    and Yeah , my Code is for an IW4 Project which is www.UnionMod.net
    Aren't you admin there? Although this tool is rather harmless, why would you make hacks for your own client?

  9. #8
    shryder's Avatar
    Join Date
    Jul 2015
    Gender
    male
    Location
    Nuketown
    Posts
    28
    Reputation
    10
    Thanks
    11
    My Mood
    Cool
    Quote Originally Posted by __Xen0 View Post
    Aren't you admin there? Although this tool is rather harmless, why would you make hacks for your own client?
    Yes i am admin there , and nop i won't use it online ... I'm just learning game hacking and some reverse engineering.....

  10. #9
    __Xen0's Avatar
    Join Date
    Dec 2015
    Gender
    male
    Posts
    116
    Reputation
    14
    Thanks
    324
    My Mood
    Sneaky
    Code:
    Dvar* (__cdecl* Dvar_FindVar)(const char* dvarName) { reinterpret_cast<decltype(Dvar_FindVar)>(0x004D5390) };
    
    Dvar* cg_fov { Dvar_FindVar("cg_fov") };
    cg_fov->current.value = 90.0f;
    I couldn't test this code because I don't have V2 or Union installed. If you don't know the dvar struct, just look into the Union source code, I am sure it's there.

    Also please leave a thanks, my post-thanks ratio suffers under the discussions I have
    Last edited by __Xen0; 03-06-2016 at 04:28 AM.

  11. The Following User Says Thank You to __Xen0 For This Useful Post:

    shryder (03-06-2016)

  12. #10
    shryder's Avatar
    Join Date
    Jul 2015
    Gender
    male
    Location
    Nuketown
    Posts
    28
    Reputation
    10
    Thanks
    11
    My Mood
    Cool
    Quote Originally Posted by __Xen0 View Post
    Code:
    Dvar* (__cdecl* Dvar_FindVar)(const char* dvarName) { reinterpret_cast<decltype(Dvar_FindVar)>(0x004D5390) };
    
    Dvar* cg_fov { Dvar_FindVar("cg_fov") };
    cg_fov->current.value = 90.0f;
    I couldn't test this code because I don't have V2 or Union installed. If you don't know the dvar struct, just look into the Union source code, I am sure it's there.

    Also please leave a thanks, my post-thanks ratio suffers under the discussions I have
    Thank you so much mate, i appreciate that... and yep i just did a thanks for your post and already +rep you

Similar Threads

  1. [Release] Simple Prestige Hack (With Source Code)
    By bballchamp99 in forum Call of Duty - Modern Warfare 3 (MW3) Hacks & Cheats
    Replies: 11
    Last Post: 12-17-2012, 12:56 PM
  2. [Request] PLz help noobs with source code of hacking plz READ ADMINS
    By gul in forum All Points Bulletin Reloaded Hacks
    Replies: 5
    Last Post: 10-19-2011, 02:53 PM
  3. Help with source code! Easy fast scope bot!
    By Zoom in forum C++/C Programming
    Replies: 22
    Last Post: 08-21-2009, 10:06 PM
  4. Replies: 1
    Last Post: 06-28-2009, 08:36 AM
  5. Stamina Hack and source code ?
    By Teh Sasuke in forum C++/C Programming
    Replies: 0
    Last Post: 12-31-2007, 06:08 PM

Tags for this Thread