How to Read/Write Memory For any Game | C++ | IN DEPTH

Поделиться
HTML-код
  • Опубликовано: 1 дек 2024

Комментарии • 113

  • @itzkxhu
    @itzkxhu Год назад +11

    Appreciate it, even 5 years later. Other tutorials just couldnt read/write the memory value, but this one actually did it.

  • @JCR4990
    @JCR4990 2 года назад +25

    This is the easy part in my experience. The difficult part is actually finding the correct memory addresses for what you want to do (which you can't always just google) AND getting around any potential anticheat systems in place for whichever game you're trying to do this with

    • @Alsexaren
      @Alsexaren Год назад +1

      In gta san andreas you can find the money address on a wiki

  • @jaakob1128
    @jaakob1128 4 года назад +24

    my guy in windows 7, playing css. He is a decade behind

  • @jojeperplex5926
    @jojeperplex5926 6 лет назад +16

    Yo man really nice in depth tutorial ;) Been into memory hacking lately with C++ and into understanding the absolute basics, this helped me soo much ;) THANKS!

    • @marr-x2s
      @marr-x2s 2 года назад

      do you have any good resource to learn from memory hacking in general? i like this vid too

  • @SkiNNyPoNNy
    @SkiNNyPoNNy 6 лет назад +64

    do you call this in depth? You didn't explain what anything means ffs

    • @AbdulazizAlmawash
      @AbdulazizAlmawash 5 лет назад +4

      true.

    • @kuhicop
      @kuhicop 5 лет назад +3

      Check channel Cheat the Game
      That guy is amazing

    • @linuxterm7622
      @linuxterm7622 5 лет назад +8

      You should have a solid understanding of c++ before you try this.

    • @linuxterm7622
      @linuxterm7622 5 лет назад +4

      It is not his fault

    • @cometh
      @cometh 5 лет назад +8

      @@linuxterm7622 Are you stupid, I know c++ by heart, but this kid should've explained how the code works since he's using WINDOWS LIBRARIES, how the fuck does having a good c++ understanding can help you understand a library, a library is literally a whole new language that you need to learn...

  • @spooky-kokomann8023
    @spooky-kokomann8023 9 месяцев назад

    Thx just made my first assult cube cheat with your Read and Write tutorial.

  • @freeman9092
    @freeman9092 Год назад +3

    Can I ask a question?
    How jump adresses or landing addresses are being the same addresses, i mean every time you start a game they have to be changed, how is that possible? (Im learning C++)

    • @freeman9092
      @freeman9092 Год назад

      I hope you will enlight us :)

    • @xmar6522
      @xmar6522 11 месяцев назад

      @@freeman9092 Learn offsett and pointer

    • @DionysusWines
      @DionysusWines 10 месяцев назад

      You need to find a pointer, they never change unless you update your game or download a dlc

    • @DionysusWines
      @DionysusWines 10 месяцев назад

      ​​​@@freeman9092Stephen Chapman has a series of videos that teach you how to use cheat engine, episode 7 teach you how to scan a pointer address

    • @cu_psy
      @cu_psy 6 месяцев назад

      @@DionysusWines How to find a pointer

  • @mnixx101forger5
    @mnixx101forger5 3 года назад +2

    well done my friend from 2021.

  • @nevozia3613
    @nevozia3613 4 месяца назад

    Nice video !

  • @x64_exploit0r
    @x64_exploit0r 5 месяцев назад

    Very good my friend

  • @ilemt0923
    @ilemt0923 4 года назад +7

    how do read protected memory?

    • @AlexOxygen
      @AlexOxygen 3 года назад

      VirtualProtectEx()

    • @senteyhitashi6584
      @senteyhitashi6584 3 года назад

      @@AlexOxygen to do that you already need the permissions that you obviously don't have. Which is PROCESS_VM_OPERATION permission.

    • @AlexOxygen
      @AlexOxygen 3 года назад

      @@senteyhitashi6584 I'm sorry?

  • @Fd4Raf
    @Fd4Raf 3 года назад +3

    How do you even find these values? Like 4 and 5 for jump? That's actually the only thing I'd need to know ^^

    • @-Plube-
      @-Plube- 3 года назад +1

      wdym? how to looked for it in cheat engine or how he knew the values would be 4 and 5?

    • @Fd4Raf
      @Fd4Raf 3 года назад

      @@-Plube- how he knew the value would be 4 and 5?

    • @-Plube-
      @-Plube- 3 года назад

      Animam He most likely found it off google since csgo is popular. He also said in source games the jump values are known to be 4 an 5 or 256-257.

    • @Fd4Raf
      @Fd4Raf 3 года назад

      @@-Plube- ok I see, thanks for the answer.

    • @匿名-x5m
      @匿名-x5m Год назад

      ​@-Plube- Even if he found on Google, there was still someone who found the values, right? One way is you can do changed and unchanged value. Then, you will find the right value. Take note of the value, so next time you can directly search for them.

  • @З29
    @З29 2 года назад

    Ok seems good tutorial. Will try it soon.

  • @bezlant
    @bezlant 6 лет назад +4

    script won't be as good because it's not as good => in depth

    • @linuxterm7622
      @linuxterm7622 5 лет назад

      ?

    • @Torixn
      @Torixn 3 года назад +2

      Scripts are simulating input while hacks are straight up forcing it by changing the values. When you regular bhop there’s always a chance that it will or won’t work(even when you do it right) and scripting simulated regular bhopping and no values are changed manually, the game acts as if you are bhopping normally. but when you hack you are forcing your player to jump every time and you and changing values instead of letting them changing automatically

  • @jojeperplex5926
    @jojeperplex5926 6 лет назад +2

    But yeah one question, so as you know the addresses for all of the forcejumps and shit change everytime i restart CS:GO and i would want to code it again everytime when i restart CS:GO so how could i make it so that it gets the addresses everytime like the big hacks do

    • @tacowithgiantbeansallover
      @tacowithgiantbeansallover  6 лет назад +3

      Joje Perplex at unknown cheats there are all the addresses, they change every update. So would have to update your cheat every other csgo update. To have an auto updating cheat you would have to make an internal cheat. The one I demonstrated in this video is an external.

    • @sencerkaraduman959
      @sencerkaraduman959 4 года назад +1

      It is just too late to reply but it might still help some other people. To make a cheat that works everytime you restart the game you must find the pointers for the adresses which are indicated in the video.

  • @umutkayabal7087
    @umutkayabal7087 7 месяцев назад

    Good tutorial sir

  • @Howiforex
    @Howiforex Год назад

    nah this is very basic
    better to take the processes snapshot, locate the process id and sue it to retrieve the module base address and with the offset
    you will get the static player base address, from which you can dereference the other addresses , and use them to read and write the memory

    • @匿名-x5m
      @匿名-x5m Год назад

      Why was it better to take the snapshot instead of directly search for the window name using FindWindow function?

  • @soldawn121
    @soldawn121 3 года назад

    bro please increase you sound. I WAS ABOUT TO GO CRAZY

  • @beooly8855
    @beooly8855 7 лет назад +6

    nice video m8

  • @Boxing0715
    @Boxing0715 4 года назад +1

    good tut :)

  • @W3Bches3
    @W3Bches3 Год назад

    Hello, I did as you showed thanks, but when I restarted, it stopped working for me. Please tell me what to do?

  • @MadpolygonDEV
    @MadpolygonDEV 3 года назад +3

    How do you actually find the addresses in memory that represent jump or health or whatever?

    • @osufwiffo
      @osufwiffo 2 года назад +1

      in this example, he's using Cheat engine to find values that he already knew, you won't know them. That's 256 & 257, he didn't explain how he found them, probably lots of testing, or a forum. So in short, you won't be able to do that w/o a lot of trying, most newer, top end games have Cheat protection, so this is worthless.
      For something like health, if using the same tool, it's much more straight forward. If you download cheatEngine and do the Tutorial it'll be explained in pretty good detail.
      In a nutshell, check for current health, and check again once it changes to narrow down which part of memory is storing that value and was value 1 and later was value 2, or value 3. In just about any game these days it's around 3 locations in memory for things like health, (because protected values of how compilers write it). That's similar to what he did w/ the 2nd one and found a single value in memory.
      Cheat engine can actually do a lot of it for you since this is old.

    • @kensunjaya
      @kensunjaya 2 года назад +1

      @@osufwiffo I have a problem where the address keeps changing when I restarted the game. Is it possible to specify the exact memory address of player's health for example? So I don't have to scan the change of value to find the address every time I opened the game

    • @kensunjaya
      @kensunjaya 2 года назад +1

      @lord I've found the offset. thx anyways

  • @YoungJayFlow
    @YoungJayFlow 7 месяцев назад +1

    my value is always 0

  • @wheelmanfull
    @wheelmanfull 4 года назад

    Good video, maybe some tutorial for cs 1.6?

  • @xxxdydujdjd1718
    @xxxdydujdjd1718 4 года назад +1

    does this work everytime? or do we have to code it every time with a new address. i heard that you need to have a static address but when i did it. it didnt work

    • @chaos9790
      @chaos9790 3 года назад

      you need to find the offsets for the address

  • @sambatt6612
    @sambatt6612 6 месяцев назад

    What’s about with offset

  • @kuhicop
    @kuhicop 5 лет назад +1

    what happens if game is protected and cheat engine doesn't detect any value? :)

  • @test2514
    @test2514 4 года назад

    how can i read this long adress? DWORD geldadr = 0x204E8E43CB4; it doent return the right value back:(

    • @notchshibellie167
      @notchshibellie167 4 года назад

      was the value a double or float?

    • @test2514
      @test2514 4 года назад

      should be a int, tryed to implement one for witcher3 (money)

    • @naimcool36
      @naimcool36 4 года назад +1

      @@test2514 change DWORD to uinptr_t. also cwitcher 3 is a 64bit game. check if u compiled in 64 bit

  • @austro_gamez1445
    @austro_gamez1445 5 лет назад +2

    thank you

  • @VORP125
    @VORP125 2 года назад

    How to do this with double value?

  • @richardtoth6649
    @richardtoth6649 Год назад

    Köszi! Pont most tanulom tanár űrtől
    anyád
    ja

  • @livvydoodlez
    @livvydoodlez 5 лет назад +1

    Anyway this can be converted into Python?

    • @tacowithgiantbeansallover
      @tacowithgiantbeansallover  5 лет назад

      I dont know Python, so Im not too sure.

    • @linuxterm7622
      @linuxterm7622 5 лет назад

      It can but you would have to use other librarys to replicate this overall i recommend c++ for this

    • @yourownazog8069
      @yourownazog8069 5 лет назад +3

      @@tacowithgiantbeansallover if you answer like that you don't know programming at all

    • @tacowithgiantbeansallover
      @tacowithgiantbeansallover  5 лет назад +2

      @@yourownazog8069 ha what?

    • @teslyai
      @teslyai 5 лет назад

      You can do it with ctypes I believe

  • @ahmedgames9335
    @ahmedgames9335 Год назад

    How Can Inject Asm Code ??

    • @ahmedgames9335
      @ahmedgames9335 Год назад

      @offset-hunter no pro it can happend.

    • @Howiforex
      @Howiforex Год назад +1

      create a .asm file with the required code
      link it with the cpp file like this
      external "C" Asm_Function(parameters here);
      in the ASM file you have to declare it with
      --------------------------------
      .386
      .model flat,c
      .code
      Asm_Function proc
      /// asm code here///
      Asm_Function endp
      end

  • @huyvole9724
    @huyvole9724 6 лет назад +3

    Hi sir, what is 257 ? what is 5? what is 4?

    • @maak8524
      @maak8524 6 лет назад +8

      He explained in the video
      257: The value returned when the player is on the ground
      256: The value returned when the player is in the air
      5: The value for the "+jump" command which causes the player to enter the jump state
      4: The value for the "-jump" command which causes the player to leave the jump state

    • @huyvole9724
      @huyvole9724 6 лет назад +1

      Thank you

  • @northiboi9707
    @northiboi9707 6 лет назад +2

    Does Vac detect?

    • @tiem217
      @tiem217 5 лет назад +3

      Yes. It does.

    • @PlanetComputer
      @PlanetComputer 5 лет назад

      @Frank M. Powell its counter strike source

    • @MotherBroker
      @MotherBroker 4 года назад

      @@tiem217 no it doesn't vac is so trash these days ...

  • @Nilrem8
    @Nilrem8 5 лет назад +3

    wtf even is that???

  • @r0x304
    @r0x304 5 лет назад +1

    I thought you actually knew how to write code lol.

  • @ikeepstrumming5161
    @ikeepstrumming5161 6 лет назад +2

    booooooooooooooy i didnt understand a thing xD too hard

    • @caozicoaching
      @caozicoaching 5 лет назад +1

      @nn I mean this is basically almost the same like an assault cube trainer right? Just with different values (addresses) (correct me if I am wrong with that)) and that you would change different things like ammo or health etc. Or even bhop idk if it works in assault cube. I just started codIng like 2 - 3 weeks ago but as far as I know it's the same principal just with different values as I said

  • @tarektito3078
    @tarektito3078 4 года назад

    I want app for reading memory on android