Memory Scanning & Resource Hacking with Cheat Engine [Game Hacking 101]

Sdílet
Vložit
  • čas přidán 27. 08. 2024
  • Learn to influence how Age of Empires works by directly finding and modifying data in the process memory by making use of Cheat Engine.
    If we can find a pointer to the base address of the player object in memory, we can then dereference and follow that pointer, then once we have the dynamic location, we can follow offsets from that dynamic base address to find and modify the player's resources - an infinite resource cheat.
    🎮 Game Hacking 101 Playlist ➝ • Game Hacking 101
    👮 Fair use of copyrighted material in the context of Age of Empires (video game); en.wikipedia.o... / en.wikipedia.o... and Counter Strike (video game); store.steampow...
    ⛔ Material presented for offline learning purposes only. No content regarding modern online games or detection bypass techniques will be discussed.
    🏆 The 247CTF channel is dedicated to teaching Capture The Flag fundamentals. If you want to improve your technical skills and succeed in Capture The Flag competitions, make sure to subscribe!
    🏁 The 247CTF is a free Capture The Flag learning environment where you can improve your technical skills by solving challenges and recovering flags. You can join now for free at 247CTF.com/.
    📺 Subscribe for more Capture The Flag videos!
    🏆 Solve CTF Challenges ➝ 247CTF.com/
    🐦Stay up to date ➝ / 247ctf
    🥰 Support the 247CTF ➝ / 247ctf
    💬 Discuss and learn ➝ / discord
    📌Free flag ➝ 247CTF{9719c5ddf317154473d334f47a77ac6a}
    📝 Icons made by Freepik & Monkik from Flaticon.com
    🚨 247CTF’s channel videos are intended for educational purposes only. Methods and techniques discussed are not to be used for illegal activities against unauthorised systems.

Komentáře • 44

  • @247CTF
    @247CTF  Před 3 lety +12

    💰💰💰 The infinite wololololo army cannot be stopped 💰💰💰

  • @surrenderfleet
    @surrenderfleet Před 3 lety +5

    Reminds me of the old action replay cards - you'd use a "trainer" program to find all the memory locations that had changed between two known values (i.e. starting ammo and final ammo) then use the card to manipulate those memory locations (e.g. lock the value in so that you'd have infinite ammo)

    • @247CTF
      @247CTF  Před 3 lety +4

      Very cool, TIL. But yes exactly the same idea. Cheat Engine also has that capability to lock the value if you press the 'X' in the far left of your cheat table.

    • @surrenderfleet
      @surrenderfleet Před 3 lety +1

      @@247CTF very cool video series btw - keep it up!

    • @247CTF
      @247CTF  Před 3 lety +1

      Will do!

  • @jeffreyburnwood8084
    @jeffreyburnwood8084 Před rokem +1

    Thank you for this video.
    It worked for Conquest Frontier Wars, in a different way though, it showed me the .DLL that were being edited :D
    Thank you for this tutorial :)

  • @irwys
    @irwys Před 26 dny

    thanks for ur tutorial i learnt how to get the pointers and stuff but. i have pointerscan results and they all point to ammo. even when the game resets and the pointer changes the ponterscans are still valid.
    i created a program to read and write value to a memory address but the memory address needs to be manually corrected every time. idk how to automatically get the correct addresses and i’m stuck on it

  • @rebmetpes36
    @rebmetpes36 Před 3 lety +5

    This is awesome!

  • @DoctorMGL
    @DoctorMGL Před rokem +1

    every time i enter one of your videos you start it by saying "in the previous video we did this..."
    how many previous video i need to watch to grasp this 🤣

    • @247CTF
      @247CTF  Před rokem +1

      Fyi the game hacking playlist is ordered

  • @Luca-pd6bq
    @Luca-pd6bq Před 2 lety

    May I ask how you installed CE? I tried versions 7.3 and 7.2 and both made Windows Defender react to them. I'm kind of afraid since one one side people say it should react (which makes kind of sense) but others say it shouldn't. So did your AntiVirus go off.
    Great video by the way!

    • @247CTF
      @247CTF  Před 2 lety

      If you download the binaries from the official source you *should* be fine. Defender probably classifies it as a hacking tool, which it is 😎

  • @irwys
    @irwys Před měsícem

    what if i change the type from 4 bytes to float and it turns into weird numbers and letters , do i change it back?

    • @247CTF
      @247CTF  Před měsícem

      If it's the wrong type, you might need to have a few guesses or do some reverse engineering

  • @doctorpropain8902
    @doctorpropain8902 Před 3 lety +1

    It's a little counter-intuitive to me that the food value is stored as a float. In game, it's displayed as an integer. How did you know to set the data type to float and not some integral type?

    • @247CTF
      @247CTF  Před 3 lety +2

      Good question, I agree and I'm not sure! When I can't find the value I am looking for in Cheat Engine, I usually just brute force the type until I do!

    • @redcloak5230
      @redcloak5230 Před 3 lety

      cs420 serious has a video on it I recommend you watch cs420 lol

    • @jassimsalam
      @jassimsalam Před 2 lety +1

      Resource values are actually float type. But when displayed, they're rounded down to the nearest integer value, for better readability.

  • @chichkoliobopitko894
    @chichkoliobopitko894 Před 2 lety

    Great vid. I hope I can find one for finding team flags in these games. Some are really hard to find in assembly.

    • @247CTF
      @247CTF  Před 2 lety

      What do you mean by team flags?

    • @chichkoliobopitko894
      @chichkoliobopitko894 Před 2 lety +1

      ​ @247CTF I mean the flag that tells the game if you're the player or an enemy. I doubt that it would be worth a whole video, but there are some games like "Realpolitiks" 2, "8-bit armies" or I think even "Age of empires" 3, where that flag is really though to find.
      It's not obfuscated. It's just that, since every player uses the same functions in the same way, the devs decide to drop that check, so if you want to distinguish e.g. does a player deal damage to the AI or an AI to the player, you can't, because the teams flag is not included in the dealDamage call as parameter.
      If you read that far, thanks. It might be a cool idea to make a video of how you find the function that tells them apart, but it will be a bit more advanced than this one. I'm using cheat engine every day for the last year and I'm still not sure how to go about it, but if you can, I'd be happy to see it in a video. I can even donate $25 for the effort. Let me know if you're interested. Thanks again.

  • @tommyjefferson2955
    @tommyjefferson2955 Před 4 měsíci

    Age of mythology resources doesnt work the same with resources. Can you explain why? For example, if i have 250 and change to 200, it wont show up.

    • @247CTF
      @247CTF  Před 2 měsíci

      They might be using a different representation for the value, or it could be being masked / obfuscated (to prevent exactly what you are trying to do).

  • @johnkeo358
    @johnkeo358 Před 7 měsíci

    I'm having issues trying to find the value for a timer. For example, I'm playing the combat mission series. I want to find the timer for how long it takes for artillery shells to fire. I can easily find the address to modify the amount of ammunition I have but I'm having issues finding the address that relates to how long it takes for the ammunition to fire. It has a 9 minute timer but I'd like to change it to 1. I've tried searching for 9 and trying to find it while it's counting down but no luck. How would you approach this scenario?

    • @247CTF
      @247CTF  Před 5 měsíci

      Trial and error - especially on the data type used to store the timer data. It might be stored in seconds for example, not minutes.

  • @haloxz2
    @haloxz2 Před rokem +1

    great job and expliccation bro, something for reveal map ?

    • @247CTF
      @247CTF  Před rokem +2

      It's in the game hacking playlist

  • @ChiChi-li3xn
    @ChiChi-li3xn Před 2 měsíci

    Thankyou for this video, very interested! Can you show me step by step when get Address of resources ingame to value base address 0x001830F4 of memory_ptr resource_hack_ptr param in code, and the offsets. In video you talk and action to fast, i can't follow. I'm newbie for this technology, and i want to practice with this game, I want get some info ingame some thing like player's civil, total gold corrected, kill/losses, win/lose ... can you give some advice?
    thank in advance, and sorry for my poor English!

  • @ucanh8173
    @ucanh8173 Před rokem

    I have a question : Why after the first pointermap scan , you cant locate the dynamic address and its value until the second one

    • @247CTF
      @247CTF  Před 5 měsíci

      It's probably there, but harder to see - since lots of places have the same value we are after. The more you can refine and perform more scans, the more likely to find the real value you care about.

  • @maximustheminer
    @maximustheminer Před 3 lety +3

    Memory hacking in next level baddass

    • @247CTF
      @247CTF  Před 3 lety +1

      Multilevel->badass

    • @deepdivedelight
      @deepdivedelight Před 8 měsíci

      dud, we were doing this on Atari back in 1987!!

  • @realdotty5356
    @realdotty5356 Před rokem

    How can I get this game? I’d like to follow along

    • @247CTF
      @247CTF  Před 5 měsíci

      This same version, I don't know.. You could try assuaultcube and apply similar techniques

    • @realdotty5356
      @realdotty5356 Před 5 měsíci

      @@247CTF do you plan on making more game hacking videos?

  • @NotXboxiie
    @NotXboxiie Před 3 lety +1

    u lost me at 8:00 but all good!

    • @247CTF
      @247CTF  Před 3 lety +1

      Start from the beginning of the series for context!

    • @RealisticVoiceRecapped
      @RealisticVoiceRecapped Před 3 lety

      @@247CTF no addresses and Values show up HELP!!

  • @dragosmini3931
    @dragosmini3931 Před 2 lety

    Try governor of poker please 🙏

  • @AbdulHannanAbdulMatheen

    👏🙂