Results 1 to 9 of 9
  1. #1
    shryder's Avatar
    Join Date
    Jul 2015
    Gender
    male
    Location
    Nuketown
    Posts
    29
    Reputation
    10
    Thanks
    21
    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 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 *******!!!

    Thank You :)
    <b>Downloadable Files</b> Downloadable Files
    Last edited by Ahlwong; 10-05-2019 at 04:59 PM.

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

    brown199620050 (11-04-2017),DLStuffAccountXD (09-16-2016),dredy (02-15-2018),dredyk (01-20-2019),dredyk3 (11-15-2019),Error4 (07-31-2017),freshmonkey2000 (04-30-2016),gtboss12 (09-17-2016),gult (11-15-2020),hbg (04-05-2016),hoogste1 (03-03-2016),iimfugazii (09-07-2017),lewia227654321 (09-03-2016),Martoma1 (11-15-2016),ole021 (08-03-2019),quwhbkdwhbji (03-18-2016),Randompube (03-05-2019),trmpt4him (04-11-2016),VerZus1337 (04-26-2016),zaey_d (07-27-2022)

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

  4. #3
    gerherhtherherdhher's Avatar
    Join Date
    Dec 2015
    Gender
    male
    Posts
    171
    Reputation
    26
    Thanks
    900
    My Mood
    Sad
    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
    29
    Reputation
    10
    Thanks
    21
    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 07:02 AM.

  6. #5
    gerherhtherherdhher's Avatar
    Join Date
    Dec 2015
    Gender
    male
    Posts
    171
    Reputation
    26
    Thanks
    900
    My Mood
    Sad
    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
    29
    Reputation
    10
    Thanks
    21
    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.....

  8. #7
    gerherhtherherdhher's Avatar
    Join Date
    Dec 2015
    Gender
    male
    Posts
    171
    Reputation
    26
    Thanks
    900
    My Mood
    Sad
    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 gerherhtherherdhher; 03-06-2016 at 03:28 AM.

  9. The Following User Says Thank You to gerherhtherherdhher For This Useful Post:

    shryder (03-06-2016)

  10. #8
    shryder's Avatar
    Join Date
    Jul 2015
    Gender
    male
    Location
    Nuketown
    Posts
    29
    Reputation
    10
    Thanks
    21
    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

  11. #9
    significance's Avatar
    Join Date
    Aug 2017
    Gender
    male
    Posts
    3
    Reputation
    10
    Thanks
    0
    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
    umm, i'm sorry if i'm resurrecting this thread but is there any chance i can add you on d1scord,steam or something. I have a few questions about dvar changing and all that stuff.

Similar Threads

  1. [Release] Simple Prestige Hack (With Source Code)
    By bballchamp99 in forum Call of Duty 8 - Modern Warfare 3 (MW3) Hacks & Cheats
    Replies: 11
    Last Post: 12-17-2012, 11:56 AM
  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, 01: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, 09:06 PM
  4. Replies: 1
    Last Post: 06-28-2009, 07:36 AM
  5. Stamina Hack and source code ?
    By Teh Sasuke in forum C++/C Programming
    Replies: 0
    Last Post: 12-31-2007, 05:08 PM

Tags for this Thread