Go Back   UnKnoWnCheaTs - Multiplayer Game Hacks and Cheats > Anti-Cheat Software & Programming > C and C++

- Sponsored Advertisement -
http://www.myfpscheats.com/

Welcome to the UnKnoWnCheaTs - Multiplayer Game Hacks and Cheats.
You have to register before you can post and see and access any of the advanced forum features, please click the register link to proceed to the registration form. To start viewing threads or posts, select a forum that you want to visit from the selection below.
C and C++
hacking programming reversing
You are Unregistered, please register to gain Full access.    
Reply
 
Thread Tools

Getting base adres from dll that changes
Old 09-05-2010, 05:48 PM   #1
n00bie

mojo3nt's Avatar

Join Date: Nov 2009
Location: Europe, the Netherlands
Posts: 21
Reputation: 95
Rep Power: 28
mojo3nt is about to stop their Leeching
Lunar Command Champion Marble Mayhem Champion
Getting base adres from dll that changes

Hello all, I am currently working on a alien swarm hack bud I am coming to a dead end.
Every time you start up the game, the base addresses change.

Lets say I want to write a value to the following address:
client.dll + 0x7F0F00

now take a look at the picture below…



see the dif betwean the 2 times I ran the game? client.dll base changes


I think im getting in the right direction by trying this piece of code I found on the forum:

Code:
void CAlienSwarmMojo3ntDlg::On_Button_Click() 
  {
          OpenProcessMemory();
   
          DWORD clientbase = NULL;
          clientbase = (DWORD)GetModuleHandle("client.dll");
   
          //clientbase to hex (getmodulehandle gives dec output)
   
          Writelong(clientbase + 0x7F0F00, 999);
  }
I wanted to test the piece of code, so I wrote a simple .dll that outputs the base to a message box and it worked! Yeah, another step closer.


Bud, keep in mind that I am NOT using .dll injection. I am trying to make a stand alone executable.




Hope that somebody can help me


greetzz mojo3nt
mojo3nt is offline

Reply With Quote


Old 09-05-2010, 07:03 PM   #2
Level 3

_GHOSTER_'s Avatar

Join Date: May 2006
Posts: 259
Reputation: 8076
Rep Power: 155
_GHOSTER_ DEFINES UNKNOWNCHEATS_GHOSTER_ DEFINES UNKNOWNCHEATS_GHOSTER_ DEFINES UNKNOWNCHEATS_GHOSTER_ DEFINES UNKNOWNCHEATS_GHOSTER_ DEFINES UNKNOWNCHEATS_GHOSTER_ DEFINES UNKNOWNCHEATS_GHOSTER_ DEFINES UNKNOWNCHEATS_GHOSTER_ DEFINES UNKNOWNCHEATS_GHOSTER_ DEFINES UNKNOWNCHEATS_GHOSTER_ DEFINES UNKNOWNCHEATS_GHOSTER_ DEFINES UNKNOWNCHEATS
One way is to use

CreateToolhelp32Snapshot

And loop through the modules.

I am sure you can find sample code all over the forum
_GHOSTER_ is offline

Reply With Quote

Old 09-05-2010, 07:40 PM   #3
Retired Admin

learn_more's Avatar

Join Date: Sep 2006
Posts: 5,249
Reputation: 93628
Rep Power: 1106
learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!learn_more has a huge epeen!
Recognitions:
Members who have contributed financial support towards UnKnoWnCheaTs. Donation (2)
sieg heil Nazi
Points: 70,490, Level: 39
Points: 70,490, Level: 39 Points: 70,490, Level: 39 Points: 70,490, Level: 39
Activity: 24.7%
Activity: 24.7% Activity: 24.7% Activity: 24.7%
Last Achievements
Award-Showcase
//clientbase to hex (getmodulehandle gives dec output)

hex is just a different representation of the number, there is no converting needed.
__________________
learn_more is offline

Reply With Quote

Old 09-06-2010, 02:05 PM   #4
n00bie

mojo3nt's Avatar

Threadstarter
Join Date: Nov 2009
Location: Europe, the Netherlands
Posts: 21
Reputation: 95
Rep Power: 28
mojo3nt is about to stop their Leeching
Lunar Command Champion Marble Mayhem Champion
Cool

Thank you GHOSTER, CreateToolhelp32Snapshot really helped me. i got it working right now

also thanks to learn_more, now i understand why i am putting 0x before a hexadecimal number. pretty simple
mojo3nt is offline

Reply With Quote
Reply  

  • Submit Thread to Digg
  • Submit Thread to del.icio.us
  • Submit Thread to StumbleUpon
  • Submit Thread to Google
  • Submit Thread to Facebook
  • Submit Thread to My Yahoo!
  • Submit Thread to MySpace
  • Submit Thread to Twitter
  • Submit Thread to Reddit



Tags
adres, alien, base, dll, modulehandle
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT +1. The time now is 10:24 AM.