C++ Game Hacking Tutorial Ep.1 | Reading/Writing Memory

  Рет қаралды 616,684

Hex Murder

Hex Murder

Күн бұрын

The absolute basics of reading/writing memory in C++.
For those of you who want to make an aimbot, or walhack: This is the place to start. You need to learn to walk before you can run.
ALSO forgot to note: If you are having errors that you don't understand, make sure you go to project / properties / Configuration Properties / General / Character Set. Change it to multi byte.

Пікірлер: 925
@Frastio10
@Frastio10 3 жыл бұрын
its been 4 years and im still waiting for the Ep.2 ...
@myownthoughts969
@myownthoughts969 3 жыл бұрын
@@R00kTruth well anything really... I’m learning c++ and this is interesting but I would love to see some more tutorials on visual studio code and how to use it better or anything really that has to do with watching someone explain what there doing while writing c++... what about making your own game in c++... What about useing unreal engine to make stuff... unreal engine uses c++ and unity game engine uses C#... I basically just need someone to show me how the code works and how it links together... blender is a free tool that uses c++ and you can make anything you want.. I would like to see some new content..
@empty6088
@empty6088 3 жыл бұрын
He Disappeared Like Zer0 Mem0ry KZbin Channel
@shadowop-bgmi2202
@shadowop-bgmi2202 2 жыл бұрын
He has adhd , so he is procastinating
@MScienceCat2851
@MScienceCat2851 2 жыл бұрын
@@myownthoughts969 So hows going,its been almost year. Any progress?
@aeSain
@aeSain 2 жыл бұрын
Keep waiting 😂
@declan_youtube
@declan_youtube Жыл бұрын
This is genuinely great, as a beginner C++ coder (I've used C# before) this is very helpful. It isn't too late to recontinue this series
@zmspliffo7138
@zmspliffo7138 5 жыл бұрын
Hands down, the best tutorial ive watched and extremely beginner friendly, thank you.
@notanenglishperson9865
@notanenglishperson9865 2 жыл бұрын
OMG, your explanation was so chill and easy to understand, you showed me that this memory-stuff isn't that hard at all
@MrPhillips365
@MrPhillips365 7 жыл бұрын
Omg you explain c++ better than all of my comp sci professors. I would love to see more videos from you. Pls make more.
@RedDragonV09
@RedDragonV09 5 жыл бұрын
I was about to say the exact same thing! This is so easy to follow!
@godmakoto1041
@godmakoto1041 5 жыл бұрын
Well unless its mario 64 they cant help further hacking
@purpl3grape
@purpl3grape 5 жыл бұрын
So the less clearly you're able to explain C++, more universities are willing to hire you and give you tenure.
@manudelmarche
@manudelmarche 5 жыл бұрын
Sorry guys. As much as I love the video and the explanations provided. This is not a C++ tutorial. This could have been made using barebone C.
@zyxwvutsrqponmlkh
@zyxwvutsrqponmlkh 5 жыл бұрын
@@manudelmarche I'd just like to interject for a moment. What you’re referring to as C, is in fact, ISO/IEC 9899:2018, or as I’ve recently taken to calling it, ISO plus IEC. C is not a specified language unto itself, but rather a group of languages sharing similar syntactic structures and rough interoperability on various compilers. Many computer users run a modified version of the ISO system every day, without realizing it. Through a peculiar turn of events, the version of ISO which is widely used today is often called “C”, and many of its users are not aware that it is basically the ISO version, standardized by the International Standards Organization.
@firesk1461
@firesk1461 3 жыл бұрын
This is the first, literally the first tutorial I've seen so far that maybe doesn't straight explain everything but at least leaves *reference* to the stuff one should look into. *Impossible...*
@shreeshind8388
@shreeshind8388 3 жыл бұрын
Can it need to add readprocessmemory script please reply
@rperage9052
@rperage9052 7 жыл бұрын
please make an episode 2, i really loved the vid and learned alot from it. i would appreciate it if there would be a part 2 soon
@lolsucks3599
@lolsucks3599 7 жыл бұрын
Finally a real tutorial that shows the basics so you are able to understand it. Thanks for doing it =) Im subscribing to hopefully learn more from you
@sunnisun36
@sunnisun36 7 жыл бұрын
to be honest you are one of the few people who can explain it understandable in a short period of time. I understood it the first time i saw the video :) thumbs up !
@shreeshind8388
@shreeshind8388 3 жыл бұрын
Can it need to add readprocessmemory script please reply
@sunnisun36
@sunnisun36 3 жыл бұрын
@@shreeshind8388 what do you mean ?
@shreeshind8388
@shreeshind8388 3 жыл бұрын
@@sunnisun36 can u tell me that u just coded and the code is working know sorry for bad eng.
@sunnisun36
@sunnisun36 3 жыл бұрын
@@shreeshind8388 to be honest i can`t remember anymore but i am pretty sure. But keep in mind that the address will change every time you restart the game and if you want that it always works you have to find the base pointer with the offsets or just modify the function which is used in the game for counting up and down the gems in the memory.
@shreeshind8388
@shreeshind8388 3 жыл бұрын
@@sunnisun36 thank u very much for your comment.
@Engineer9736
@Engineer9736 5 жыл бұрын
After those if statements where you check for bad outcomes and exit the application, you don’t need to use “else” for the continuation of the program. If you ended the if block with exit() or return false, the code after that block will only be executed in the else situation. This will save you a lot of indents, makes the code look a lot neater.
@VoyivodaFTW1
@VoyivodaFTW1 2 жыл бұрын
that was awesome. I've been programming for over a decade and never realized how much you can do.
@LMleet06
@LMleet06 7 жыл бұрын
Great video, I spent all day trying to figure out simple way to read/write in C#, then your video easily explaining how to do it in c++ in a few lines.
@xatic1
@xatic1 8 жыл бұрын
Finally a guy who speaks good english, AND understand how everything works! Kudos for this bro! Didn't learn anything new, but leaving my fotprint here anyway. Good job, more tuts would be nice! Maybe looking for base addresses and pointers? seen so many people don't understanding what it is, and why dynamic is not static etc.
@oldfire3107
@oldfire3107 6 жыл бұрын
xabo True
@kylemartin6751
@kylemartin6751 6 жыл бұрын
Usually, people who speak jaded English are more intelligent because they know more than just one language. And this is coming from someone who only speaks one language, though I am trying to learn Japanese. So give them more benefit of the doubt.
@libummendaciumest3328
@libummendaciumest3328 6 жыл бұрын
Wait wut? "people who speak jaded English are more intelligent because they know more than just one language" ? Jaded as in: "Bored or lacking enthusiasm, typically after having had too much of something"? Or does it mean something I can't find a dictionary for? ...maybe "jagged English" or "broken English" is what you were looking for. I know some polyglots are smarter from personal experience, but being able to speak two languages badly isn't hard, and a lot of people do. Most people from around the world are passable in their own language and bad English. The only problem is when you're own language is bad English...
@kylemartin6751
@kylemartin6751 6 жыл бұрын
libumMendaciumEst most of the videos related to computer programming I have watched have from content creators from India or China. I wouldn't call it broken English, because they are fluent for the most part. Hence why I called it jaded English. Their content typically is hard to understand due to their delivery or it is very bland. But hey man, thanks for trying to take a Jab at me because you assumed that I am bad at English... "Wait wut" ;)
@libummendaciumest3328
@libummendaciumest3328 6 жыл бұрын
I'm not making any assumption about you being bad at English: "Jaded" doesn't have that definition in English, it's pretty solid proof :) Also "Wait wut" wasn't the jab, is was however the last line: "The only problem is when you're own language is bad English" ...upon which I which to pontificate: Fairest of beasts Kyle Martin, be you so damned by the coarseness of your tongue? Eloquence like mine, from which you are denied, comes freely to me. Don't covet what you have not, but rejoice in your own language: Bad English. I might be coming off as an arsehole, but I'm sobern't. Before I go, take this kzbin.info/www/bejne/epLQpnhuibJmrtE it will give you the knowledge of C++, with the power of brilliant English forged in a soothing tone. And this is to help you learn japanese: kzbin.info/www/bejne/hXe0gnSCmdqbsKM
@HTDBarsi
@HTDBarsi 4 жыл бұрын
Bro this tutorial IS SO GOOD 10/10, explaining everything perfectly
@shreeshind8388
@shreeshind8388 3 жыл бұрын
Can it need to add readprocessmemory script please reply
@MrIKicker
@MrIKicker 7 жыл бұрын
Nice, good video for helping people understand memory. I had taken a C++ class before 1 of 2 & I didn't quite understand memory handling but this video helped me understand it a little better. Thanks!
@refinery__
@refinery__ 7 жыл бұрын
That was one of the best tutorials ive seen so far on youtube, please upload more
@caharkness
@caharkness 6 жыл бұрын
At 11:20 - that's some of the realest sh*t I've heard all day. It drives me mad when people just start copying & pasting code and then throwing a fit in the comments section complaining that it doesn't work. Thank you for exercising the whole "write it yourself" thing, I agree 100%.
@HA7DN
@HA7DN 6 жыл бұрын
When I was learning C, I copy-pasted SECTIONS of code from others, then re-named variables, and modified some fine details, and I was learning a LOT. I also do it when I'm learning a new library, and it helps a lot to understand new concepts.
@elduderino7456
@elduderino7456 6 жыл бұрын
Can't stress this enough.
@deud1eskrub503
@deud1eskrub503 5 жыл бұрын
Amen, it's also poor practice, as just memorizing code doesn't help people learn 'why' or 'how' the code works.
@urlossL
@urlossL 4 жыл бұрын
No, thats exactly how you learn how and why...
@pythonhowto1185
@pythonhowto1185 4 жыл бұрын
i copy paste code all the time. I get bored easy so typing is boring. I'd rather cut right into the meat and break the code apart testing each line, & play around with the code -then wasting time typing it all out.
@SapphFire
@SapphFire 7 жыл бұрын
Wow.. Thank you. Finally a tutorial that explains everything well.
@diddyholz3290
@diddyholz3290 6 жыл бұрын
i watched so mny videos about reading writing memory and your video helped me out a lot :)
@zHqqrdz
@zHqqrdz 7 жыл бұрын
You're the first one who did something I could understand. From a clean coder POV, you could keep all that code on the same indentation block, helps reading and understanding. All those else were unnecessary since you exit in every ifs anyway :)
@VioletGiraffe
@VioletGiraffe 6 жыл бұрын
Triggered by that misspelled '==' :) Luckily, in this case it only affects the branch that shouldn't be taken.
@pyromen321
@pyromen321 6 жыл бұрын
VioletGiraffe that’s why I always compile with -Wall -Wextra -pedantic
@wutishappeninghere9780
@wutishappeninghere9780 4 жыл бұрын
Lol i saw that and thinked the same
@keplar7243
@keplar7243 7 жыл бұрын
Please can you upload more? I actually understand from you :o
@wertia391
@wertia391 6 жыл бұрын
Sn6 lol salty
@closedworld3258
@closedworld3258 5 жыл бұрын
@Snn lmao
@shreeshind8388
@shreeshind8388 3 жыл бұрын
Can it need to add readprocessmemory script please reply
@user-ri2ms2mm7w
@user-ri2ms2mm7w 3 жыл бұрын
My friends, please search for your life purpose, why are we here?? I advise you to watch this series 👇 as a beginning to know the purpose of your existence in this life.. kzbin.info/aero/PLPqH38Ki1fy3EB-8xmShVqpbQw99Do2B-
@Erionoir
@Erionoir 5 жыл бұрын
I learned a bit but this is more than enough for my coding journey, thanks a lot man
@cortesdeanimes1549
@cortesdeanimes1549 3 жыл бұрын
this is the best gamehacking tutorial, in the middle of 2021 and working normally congratulations for the effort
@moneymane426
@moneymane426 7 жыл бұрын
cmon dude wheres the part 2 :(
@n1ira
@n1ira 5 жыл бұрын
people that sound like they wanna die are my favourite type of people
@Javier-ov3hj
@Javier-ov3hj 7 жыл бұрын
Man, Please Do More Tutorials!!! I learn more from you in 15 minutes than 2 hours of trying to understand what pro coders write on forums
@DanielRamBeats
@DanielRamBeats 5 жыл бұрын
Wow thank you so much for taking the time to share this, amazing practical example of C++
@pthiago_s5075
@pthiago_s5075 5 жыл бұрын
Damm where are his videos Last ones 1 year ago
@coprice94
@coprice94 4 жыл бұрын
Hes dead
@mryup6100
@mryup6100 4 жыл бұрын
@@coprice94 don't be spreading false info man.
@coprice94
@coprice94 4 жыл бұрын
@@mryup6100 I'm not man
@SandwichMitGurke
@SandwichMitGurke 5 жыл бұрын
Awesome tutorial :D are these mx blue switches? I love their sound :D
@matthieundumbi3888
@matthieundumbi3888 5 жыл бұрын
Man you are great !!!! You explain better than all the books i read... Plz make more videos. Respect from Greece !
@naoops4091
@naoops4091 5 жыл бұрын
my love for c++ was ignited again , the hate is gone, love this video , tnx. I know it's from few years back but damn ... so well made.
@fredzhang7
@fredzhang7 4 жыл бұрын
THIS IS AMAZING!
@salih-khan
@salih-khan 4 жыл бұрын
THE GOVERNMENT would like to know your location
@coprice94
@coprice94 4 жыл бұрын
They already do
@pineapple3555
@pineapple3555 4 жыл бұрын
Alakazam ✨✨✨✨✨✨
@SmokelessMeme
@SmokelessMeme 5 жыл бұрын
Damn, you explained that shit well. I'm trying to get into C++, (currently learning javascript as a part of my computer science class in junior year of high school), and this tutorial was extremely easy to follow, especially given the fact that I had never even touch C++ before watching it.
@daltonm4790
@daltonm4790 6 жыл бұрын
thank you. i've been studying c++ for about 4 months now & wanted to get into game hacking, so thank you.
@frankgreen3295
@frankgreen3295 7 жыл бұрын
how would you do it if the address had an offset
@zsdanix
@zsdanix 6 жыл бұрын
You might as well just google the base address, see if someone already found it. Otherwise cheat engine can also help with that.
@xXDiablo7616Xx
@xXDiablo7616Xx 7 жыл бұрын
if (procID == NULL) with two = not one at line 24
@FabianKristoff
@FabianKristoff 3 жыл бұрын
My ocd was bangin on the door from that. How didn't he notice it ahahaha
@firesk1461
@firesk1461 3 жыл бұрын
@@FabianKristoff its stuff you most ironically start missing more often when you already have had some experience and you just sorta code 'less consciously' in a way
@Gottfried1983
@Gottfried1983 3 жыл бұрын
What weirds me out is that it seems to compile and run fine lol
@Goregreet
@Goregreet 5 жыл бұрын
Im trying to learn c++ and you are honestly very good at teaching thank you for this
@danielderwertvolle6354
@danielderwertvolle6354 5 жыл бұрын
great stuff. just a few hints: - unlike return values, exit codes are usually positive - there is no need for an "else" if your "if" exits the program anyways - sizeof int and float is usually the same (4 bytes). it has nothing to do with the actual types. you could actually just put 4 on most systems.
@RDY-ke4fn
@RDY-ke4fn 7 жыл бұрын
nice video, you have a small mistype where it says 'if (procID = NULL)' rather than ' if (procID == NULL)'
@BJJOORRNN1
@BJJOORRNN1 6 жыл бұрын
ya, wouldn't the compiler throw up an error at you for that?
@ShaunDreclin
@ShaunDreclin 6 жыл бұрын
It's not strictly a syntax error, more of a logic error. You can assign values in if statement conditions
@zayanwatchel8780
@zayanwatchel8780 6 жыл бұрын
BJJOORRNN1 no it would just assign the value
@souptenderpanini3106
@souptenderpanini3106 6 жыл бұрын
Shaun Dreclin hey I got a question, so if the value I got from cheat engine is a string, what type of code do I write?
@wdmeister
@wdmeister 6 жыл бұрын
That's why it's a good practice to have rvalue on the left side in "if" statements. For example "if (nullptr = procID)". In this case, you will get an error.
@shreyanshsingh2627
@shreyanshsingh2627 5 жыл бұрын
dude, when's ep 2 coming?
@NbaLoveTurkiye
@NbaLoveTurkiye 5 жыл бұрын
this video was uploaded in 2016 :) so there will be no ep.2
@shreyanshsingh2627
@shreyanshsingh2627 5 жыл бұрын
actually you're right. didn't see that.
@user-ri2ms2mm7w
@user-ri2ms2mm7w 3 жыл бұрын
My friends, please search for your life purpose, why are we here?? I advise you to watch this series 👇 as a beginning to know the purpose of your existence in this life. kzbin.info/aero/PLPqH38Ki1fy3EB-8xmShVqpbQw99Do2B-
@Vertixen
@Vertixen 6 жыл бұрын
Please make more, you explain it really well.. Make more c++ tutorials like this one, we beg you !!
@user-ri2ms2mm7w
@user-ri2ms2mm7w 3 жыл бұрын
My friends, please search for your life purpose, why are we here?? I advise you to watch this series 👇 as a beginning to know the purpose of your existence in this life.. kzbin.info/aero/PLPqH38Ki1fy3EB-8xmShVqpbQw99Do2B-
@dvdvideo1234
@dvdvideo1234 5 жыл бұрын
That's neat! I avoid hardcoding a pointer, but it works ;) Dude, you need more videos like this. Seriously!
@samaryan6960
@samaryan6960 6 жыл бұрын
I want to make a wallhack for dead by daylight but i dont have any clue where and how to start. Can you maybe help with tips etc?
@user-ri2ms2mm7w
@user-ri2ms2mm7w 3 жыл бұрын
My friends, please search for your life purpose, why are we here?? I advise you to watch this series 👇 as a beginning to know the purpose of your existence in this life. kzbin.info/aero/PLPqH38Ki1fy3EB-8xmShVqpbQw99Do2B-
@oylesine9834
@oylesine9834 7 жыл бұрын
if we open cheat engine with any mmorg f the game guard will detect it and close it, so how can we find any adress ? how can we bypass it ? nice vid dude and sry for my english
@EnduranceT
@EnduranceT 7 жыл бұрын
Write your own memory process scanner. Search "C memory scanner" on youtube and youll see what I mean.
@oylesine9834
@oylesine9834 7 жыл бұрын
EnduranceT thanks dude i will try it out
@shamanthkumar5017
@shamanthkumar5017 5 жыл бұрын
Maybe the memory you are trying to access in not in the stack or heap so you cannot directly change it using c++, however windows api allows you to access the game directly and all the memory its using(It's my opinion i don't know for sure, please do correct me if i'm wrong).
@erikprantare696
@erikprantare696 6 жыл бұрын
Nice video! You could omit the "else" clauses after the error checking, because you always return in the "if" before. That would make the code much more linear and easy to follow.
@ChristopherGray00
@ChristopherGray00 7 жыл бұрын
Thanks for making this video man, i'd love to see more from you,
@BassDropMonkey
@BassDropMonkey 8 жыл бұрын
More, more, more. Next == Pattern Scanning, Offsets, writing things like float, 4 byte, byte and string.
@michaelcook8498
@michaelcook8498 8 жыл бұрын
you forgot bitwise operators . But yes ( Pattern Scanning, Offsets, writing things like float, 4 byte, byte and string.)
@AbdurRahman-is8zx
@AbdurRahman-is8zx 5 жыл бұрын
*I like your C++ skills its worth it i know C++ too*
@user-ri2ms2mm7w
@user-ri2ms2mm7w 3 жыл бұрын
My friends, please search for your life purpose, why are we here?? I advise you to watch this series 👇 as a beginning to know the purpose of your existence in this life. kzbin.info/aero/PLPqH38Ki1fy3EB-8xmShVqpbQw99Do2B-
@hopemikaelson8839
@hopemikaelson8839 5 жыл бұрын
2 month ago i watched your vid and i really liked it even though i didn't understand anything in the code and i didn't think i would be able to do anything like it now i'm learning C++ i'm learning classes & and objects now and i understand your code (not all of it but i got the idea and that's amazing ) now i could do stuff like that and i was wondering if C++ had a sleep or a wait function or i would have to build one thanx to you I won't have to wait to learn about it really loved your video if you didn't get that form my crazy talk (btw i didn't start right a way to learn C++ it took me a long time to actually start ( and by a long time i mean 1 month give or take :D))
@rizz5228
@rizz5228 5 жыл бұрын
I’m new to computer science and watching what I’m eventually going to learn about makes me so excited
@mryup6100
@mryup6100 5 жыл бұрын
yeah 😃
@altf4magic332
@altf4magic332 5 жыл бұрын
How do i Find the adress?
@Sync-Edits
@Sync-Edits 5 жыл бұрын
¯\_(ツ)_/¯
@leonbass3275
@leonbass3275 5 жыл бұрын
scan for it in cheat engine, but i wouldn't recommend just writing to the address as if it's static - it's most likely dynamic, as soon as you close the game the address will change. Do a pointer scan for the address with a pointer depth of 1 so that the results are just (Module + offset1) + offset2. Then read the contents of (Module + offset1) which will be a pointer, then write to the pointer + offset2. This way you don't have to worry about updating the addresses every time.
@unh0lys0da16
@unh0lys0da16 6 жыл бұрын
Why use else after an if statement with exit() in it?
@MindlessTurtle
@MindlessTurtle 6 жыл бұрын
Thank you! That redundancy is a pet peeve of mine. Drives me nuts.
@shadowvampyrietv716
@shadowvampyrietv716 6 жыл бұрын
Coz need app. The exit buttom xD
@unh0lys0da16
@unh0lys0da16 6 жыл бұрын
wat
@zeyode
@zeyode 5 жыл бұрын
Because that if statement only exists to check for an error that is necessary to get out of the way for the rest of the program to work. If the window it needs isn't found, it quits. Otherwise, it does its job.
@Engineer9736
@Engineer9736 5 жыл бұрын
@Zeyo, you don’t understand his point. If an if block ends with exit(), all the code after this block will only run in the “else” situation anyway. If you skip the else statement, you don’t have to go 5 indents deep which makes the code complicated to read.
@904nighthawk
@904nighthawk 7 жыл бұрын
Dude, you're amazing. I love your video! If you do stuff like coding and stuff, totally subscribing!
@sankakucomplexor
@sankakucomplexor 4 жыл бұрын
i hate to bump this old vid but i sure would love a part 2 of everything
@avi12
@avi12 5 жыл бұрын
For C++ development, I recommend JetBrains CLion over Microsoft Visual Studio. Much better IDE in my opinion
@__3093
@__3093 3 жыл бұрын
VS is better
@technoo4891
@technoo4891 3 жыл бұрын
@@__3093 no its not
@SomeNussi
@SomeNussi 6 жыл бұрын
several things: > after exiting the program in the first if-statement you don't need the else-one. > GetWindowThreadProcessId(hwnd, &procID); is not passing the variable by reference but rather passing a copy of the address of "procID" > Initializing "handle" with an initializer list would be more efficient than initializing it as null and then assign the value of "OpenProcess(PROCESS_ALL_ACCESS, FALSE, procID)" to it > the else-branch after the above point is again unnecessary > again &newValue doesn't tell the compiler to pass in a reference, but rather passes in the address of "newValue" > all variables should be initialized with their value instead of initializing them and then assigning a value ("int readTest {0};" is superior to "int readTest = 0;") > exit(-1); is not good either. return EXIT_FAILURE; would be better.
@Invenciblemario
@Invenciblemario 5 жыл бұрын
But wouldn't all variables that are initialized and then immediately assigned a value in code actually just get initialized already with its value when compiled? That's one of (the many) optimizations that are standard on modern compilers.
@drmonty5495
@drmonty5495 5 жыл бұрын
wow such pedantry for someone who thinks that ahahah wtf
@dylansanderson3663
@dylansanderson3663 5 жыл бұрын
the industry expert over here
@BkzReaper
@BkzReaper 6 жыл бұрын
I must agree with the comment someone left about finally someone that speaks english with no terrible foreign accent. Good Job, keep up the work. I have a bunch off apps no my phone that intend to teach all kind of languages for pc / scripting but I hardly have the time at the moment to brush through them.
@jihedbouchnak
@jihedbouchnak 5 жыл бұрын
this is the tutorial i was looking for for a long time thanks a lot
@hazerjm
@hazerjm 6 жыл бұрын
You do this { } I do this { }
@Hikyu
@Hikyu 6 жыл бұрын
thats ma man
@bamberghh1691
@bamberghh1691 5 жыл бұрын
{ } is more readable
@Hikyu
@Hikyu 5 жыл бұрын
not if your code is more than 500 lines
@rashidisw
@rashidisw 5 жыл бұрын
yeah, i tend to make the } at the same column as the corresponding { . Its indeed more readable that way, especially if the { } are nested.
@pedja639
@pedja639 5 жыл бұрын
ma man
@le-1348
@le-1348 7 жыл бұрын
Hi man! Nice videos. Just what I needed, I am learning a lot from you!. BTW, as I studied this , one little classic typo I noticed on line 21. Namely, as I understand, procID from that moment will be NULL due single equation symbol witch becomes assignment instead of checking equality (as in line 9), and this if will be never true even if procID is NULL. Also, I think the handle should be set up after you make sure that procID is not NULL. Best of luck and thanks for your stuff!
@NewAgeSoldier
@NewAgeSoldier 5 жыл бұрын
I wouldn't detect if a game or program is running via it's program title. Some games or programs have window titles that are constantly changing, like DOSBox for example. Just detect if the process itself is running via its process name as that will never change. In the event the process is not available, you should do a loop and keep checking so that way we can run the game/program at another time and the trainer will pick it up whenever you decide to open the game/program.
@John_X_GR
@John_X_GR 7 жыл бұрын
2:42 Lol, no, that's actually ok xD i actually love it
@rngnodal9316
@rngnodal9316 4 жыл бұрын
Johnny_GR sweat 😂
@bmp45vx
@bmp45vx 7 жыл бұрын
THANK YOU!!! You make it so understandable, subbed!!
@vex3198
@vex3198 3 жыл бұрын
Very well explained video, great job!
@gopro2027
@gopro2027 6 жыл бұрын
This is very nice! I have experience on PS3 but none on windows and this definitely helped. I'd really want to know how to run a thread from inside the process though, not write from external, so I gotta find a video on that now.
@TimeoutMegagameplays
@TimeoutMegagameplays 6 жыл бұрын
Please continue the series, fuck, I need it. You explain everything so fucking well.
@user-ri2ms2mm7w
@user-ri2ms2mm7w 3 жыл бұрын
My friends, please search for your life purpose, why are we here?? I advise you to watch this series 👇 as a beginning to know the purpose of your existence in this life.. kzbin.info/aero/PLPqH38Ki1fy3EB-8xmShVqpbQw99Do2B-
@dongyoungkim962
@dongyoungkim962 Жыл бұрын
heymurder, you are not coming back? we need you back here. and this explanation of win32 and all was really good
@michaelidrys4976
@michaelidrys4976 7 жыл бұрын
Really nice tutorial, i like the way you explain the code. i hope you make more.
@hafbakh7460
@hafbakh7460 3 жыл бұрын
One Of The Best Videos I Have Ever Seen
@tonyd6853
@tonyd6853 6 жыл бұрын
Thanks! CPP is all I learned in College. Took the web class before even CSS existed!
@bernardobraga6799
@bernardobraga6799 5 жыл бұрын
Thanks a lot man, you have no idea how much you helped me
@SandwichMitGurke
@SandwichMitGurke 5 жыл бұрын
One question: the address you had was a fixed value. Doesn't this change with every program start? And is there something like an address offset that tells you how far the value (or coins or whatever) is away from the start of the program, or does that change too every time?
@AshleyTyagi
@AshleyTyagi 6 жыл бұрын
i like that keyboard sound its what every tutorial is missing
@maximo1590
@maximo1590 8 жыл бұрын
Absoulutely AMAZING Video. I Learned How To Make A Trainer In C++ JUST BECAUSE OF YOU! ☺ You Are Truly Amazing.
@waliddu62
@waliddu62 7 жыл бұрын
Thanks you very much for all your videos you can't imagine how these videos help me a lot just keep doing a very good job.
@user-ri2ms2mm7w
@user-ri2ms2mm7w 3 жыл бұрын
My friends, please search for your life purpose, why are we here?? I advise you to watch this series 👇 as a beginning to know the purpose of your existence in this life. kzbin.info/aero/PLPqH38Ki1fy3EB-8xmShVqpbQw99Do2B-
@FrateVideoMaker
@FrateVideoMaker 5 жыл бұрын
Great and simple tutorial! Thanks so much!
@krajdon3918
@krajdon3918 4 жыл бұрын
Awesome tutorial , i now know how to get process. Thank you !!
@Oofers
@Oofers 6 жыл бұрын
I learned so much from you here everyone else sucks
@marcus8619
@marcus8619 3 жыл бұрын
Thank you for this wonderful job !!! It's been very useful !!
@lardboi5712
@lardboi5712 6 жыл бұрын
So first of all this is a great beginner tutorial I don't need code just some explanation on how to go about changing certain offsets of a player object so like I run the c++ code and it changes the player object's base address of health ammo and so on. Do I need to make a variable that gets the player object and give the offsets and add to the object those offsets and then rewrite the newValue to those?
@GrenPara
@GrenPara 6 жыл бұрын
Hello, Found your video and its pretty cool, thanks for making it.
@CoreDreamStudios
@CoreDreamStudios Жыл бұрын
Fun fact, started CS50 with edX and this makes so much sense now.
@drewdrod
@drewdrod 7 жыл бұрын
Will there be an episode two? Really interested, good tutorial!
@DestinyCreates
@DestinyCreates 7 жыл бұрын
Great easy to understand video! Keep it up! :D
@scriptingtutorials4060
@scriptingtutorials4060 6 жыл бұрын
Awesome! i wish you would have continued the series
@wau-l9
@wau-l9 6 жыл бұрын
This is a bit more difficult to write in Linux by the way, but entirely possible. You can use the /proc filesystem to figure out process info instead of all that winapi stuff.
@briannielsbergh
@briannielsbergh 6 жыл бұрын
Cool video :) - However, shouldnd you check the procID before getting the handle for it? (put the handle getter below the procID check) :P
@kAi-nz8kf
@kAi-nz8kf 5 жыл бұрын
That's brilliant. Thanks for the tutorial.
@Beyluta
@Beyluta 7 жыл бұрын
While I don't like cheaters or people who use their knowledge for those kind of things, I do find your tutorial helpful for people getting into reading and writing memory.
@MatheusSouza-jo7eg
@MatheusSouza-jo7eg 8 жыл бұрын
Nice one and maybe you should do one talking about How to make it Vac Secure or explain more about Vac search pattern and stuff
@ChillzYouTube
@ChillzYouTube 7 жыл бұрын
Vac scans signatures. In order to make it Vac secure you need to create your own memory class. Go onto a website like guided hacking and they explain a lot of things and go further into detail then this video.
@kidpog3d101
@kidpog3d101 6 жыл бұрын
lol if you wrote it yourself and dont have it named "...cheat..." then you will be good.
@kuhlde1337
@kuhlde1337 6 жыл бұрын
Sorry for being late to the party, but how would you handle a game where your target value/s can change memory locations between game runs? It would not be practical to use cheat engine to find the address each time and hard-code it (especially for an online game), so how might you go about finding the address algorithmically?
@xmesaj2
@xmesaj2 5 жыл бұрын
12:34 this doesn't show an error because float is equal size as int (int32_t by default x86 spec), both are 4 bytes. it could though give an error on different/older compiler when int was 2bytes or sometimes 8bytes if built for x64 (int could default to int64_t but usually tries to use lower sized one when possible). 1 byte is 8bits, so 4 x 8bits = 32bit, both have the same size. It's easy to check using printf(sizeof(your_int_variable_name)); printf(sizeof(your_float_variable_name));
@Sarah-kx1pt
@Sarah-kx1pt 6 жыл бұрын
Understandable. Quite clear explanation.
@YourJoy
@YourJoy 6 жыл бұрын
What are your thoughts on Nick Cano's book? Love your stuff btw.
@MrWorshipMe
@MrWorshipMe 6 жыл бұрын
You've got a bug on your second if statement.. it'd never get into that if and it sets procId to null. Also, you want to have that check before using procId and not after. Also, the else statements are redundant since the ifs exit the program, so if you're after the if you're automatically in an else, you don't need to be explicit about it - it just makes the code less readable being inside so many scopes.
@Ryan1729
@Ryan1729 6 жыл бұрын
So many comments about the missing '=' but I didn't see a single one about sizeof(int) == sizeof(float). If you try sizeof(double) then you'll see two numbers in memory smashed together.
@2GooDProductions
@2GooDProductions 5 жыл бұрын
besides the missing =, the else branches are unnecessary, because if the if statement equates to false it carries on after the if block any way.
@Amber-le8ds
@Amber-le8ds Жыл бұрын
Holy fuk that was awesome.. I am learning c++ and had no idea you could do cool shyt like this.
Comparing C to machine language
10:02
Ben Eater
Рет қаралды 5 МЛН
Smart Sigma Kid #funny #sigma #comedy
00:40
CRAZY GREAPA
Рет қаралды 33 МЛН
Spot The Fake Animal For $10,000
00:40
MrBeast
Рет қаралды 196 МЛН
Jumping off balcony pulls her tooth! 🫣🦷
01:00
Justin Flom
Рет қаралды 28 МЛН
Идеально повторил? Хотите вторую часть?
00:13
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 10 МЛН
Look like a hacker (With this Trick) 🔥🔥
0:40
CodeWithHarry
Рет қаралды 2,3 МЛН
I Designed My Own 16-bit CPU
15:46
AstroSam
Рет қаралды 1,9 МЛН
Learn Reverse Engineering (for hacking games)
7:26
cazz
Рет қаралды 1 МЛН
I Tried C#
4:32
conaticus
Рет қаралды 233 М.
C++ Call Game Functions
12:44
TreckStrend
Рет қаралды 10 М.
15 Years Writing C++
4:04
SyncMain
Рет қаралды 1,1 МЛН
Pygame in 90 Minutes - For Beginners
1:35:22
Tech With Tim
Рет қаралды 1 МЛН
C++ Read and Write Process Memory for beginners
17:09
TukeCS
Рет қаралды 16 М.
Smart Sigma Kid #funny #sigma #comedy
00:40
CRAZY GREAPA
Рет қаралды 33 МЛН