You Should Learn C++ (for hacking games)

Sdílet
Vložit
  • čas přidán 19. 06. 2024
  • A simple overview of C++ in the world of Game Hacking. To try everything Brilliant has to offer-free-for a full 30 days, visit brilliant.org/cazz/. The first 200 of you will get 20% off Brilliant’s annual premium subscription.
    💎 Source code is available for my Patrons!
    / cazzwastaken
    💎 Join our community over on Discord!
    / discord
    → GitHub: github.com/cazzwastaken
    → Instagram: / cazzwastaken
    → Twitter: / cazzwastaken
    → Email: cazzwastaken@gmail.com
    → PayPal: www.paypal.com/donate/?hosted...
    📝Resources 📝
    → LearnCPP: www.learncpp.com
    → The Cherno: • Welcome to C++
    → thenewboston: • Buckys C++ Programming...
    ⚡See More ⚡
    → Glow: • INTERNAL CS:GO GLOW ES...
    → Chams: • REAL CSGO CHAMS - DRAW...
    → CreateMove: • Hook CreateMove From S...
    → Internal Menu: • IMGUI INTERNAL DIRECTX...
    → Aimbot: • MAKE AIMBOT IN 10 MINUTES
    🌌 Disclaimer 🌌
    This video was sponsored by Brilliant.

Komentáře • 746

  • @kelvinchin5942
    @kelvinchin5942 Před rokem +3505

    It is interesting when the creator have the following quote:
    “C makes it easy to shoot yourself in the foot;
    C++ makes it harder, but when you do it blows your whole leg off.”
    ― Bjarne Stroustrup

    • @maddsua
      @maddsua Před rokem +134

      From my experience, it's all templates that actually aim you at the foot

    • @irisaacsni
      @irisaacsni Před rokem +74

      ​@@maddsua Templates are a big part of it, but it's the worst when mixed with half assed OOP.

    • @HDeDeDe
      @HDeDeDe Před rokem +15

      @@maddsua I haven’t written any C++ in a bit (thanks unity) but when I did I couldn’t wrap my head around templates at all.

    • @HDeDeDe
      @HDeDeDe Před rokem

      @@UCgx7OseCrundqkE8oEVeobg I already don’t like C#, I ain’t touching no generics.

    • @veto_5762
      @veto_5762 Před rokem +28

      So c is a pistol and c++ a shotgun?

  • @ilicktrains8304
    @ilicktrains8304 Před rokem +781

    I'm generally not a fan of cheating due to competitive integrity, but I'm huge into modding, so these tutorials are pretty appealing, especially as I'm also learning c++ rn

    • @niklas3128
      @niklas3128 Před rokem +34

      In this context the difference between modding and hacking mostly relies on wether you have a publicly exposed modding api which abstracts some of the game functions for you or you pattern scan in memory to hook certain game functions first before implementing any mods.

    • @wilddemur9796
      @wilddemur9796 Před rokem +40

      hacking in this context can mean modding, its not necessarily referring to cheating

    • @JimCarrey2005
      @JimCarrey2005 Před rokem +14

      Creating cheats isn’t a form of cheating, some of us just enjoy toying with these things. It’s the same as creating malware

    • @jenkathefridge3933
      @jenkathefridge3933 Před rokem +11

      @@JimCarrey2005 It's fine to create those things as long as it doesn't harm anyone in my opinion.

    • @JimCarrey2005
      @JimCarrey2005 Před rokem +11

      @@jenkathefridge3933 building cheats is fun, but cheating is the most mind numbing shit in the world. Like you're playing a video game, you might as well have fun. People who take games so seriously that they have to ruin others fun to have fun themselves should just get a life, because that is something they are completely devoid of.

  • @Evercreeper
    @Evercreeper Před rokem +1422

    As a kid I had the same curiosity of how injectors accessed memory when I couldn't with my code, but then it made sense

    • @b3at1
      @b3at1 Před rokem +258

      As a kid I thought sausages were cow udders...

    • @QmVuamFtaW4
      @QmVuamFtaW4 Před rokem +76

      @@b3at1 as i kid i thought they were weaners of dead men

    • @mnnglss_xstnc
      @mnnglss_xstnc Před rokem +54

      As a kid i played spider man games and need for speed

    • @elijahknox4421
      @elijahknox4421 Před rokem +9

      @@QmVuamFtaW4 did you eat them? 😟

    • @Masuteri_
      @Masuteri_ Před rokem +6

      I'm still wondering how a speedhack works. Speeding up and slowing down an application.

  • @nngnnadas
    @nngnnadas Před rokem +177

    It's misleading to say cpython translate python (the language) to C. Python is translated to bytecode that is executed on a virtual machine stack-machine. This machine was originally written in C, but is obviously already compiled to native binary code by the time it's running.

    • @fr5229
      @fr5229 Před rokem +7

      It’s misleading to say that CPython was _originally_ written in C.

    • @Scotty-vs4lf
      @Scotty-vs4lf Před rokem

      @@fr5229 yeah it is

    • @veto_5762
      @veto_5762 Před rokem +3

      @@Scotty-vs4lf it's misleading saying that python is tranlated to c, when it's actually translated to machine code that originally was compiled from c (thus you technically never natively run c code, you compile it to binary first)
      Don't mind correcting me if i got something wrong

    • @easypezy2155
      @easypezy2155 Před rokem +3

      It is misleading to state that 'the machine is created in C' without elaborating on the technical nuances of CPython's implementation. The primary components implemented in C are those necessary to efficiently execute Python bytecode, not to wholly recreate the Python abstract machine in C. The Python abstract machine is defined by the bytecode instruction set and semantics, which are handled by the bytecode compilation phase preceding and separate from C-level execution. While the C virtual machine components are instrumental to CPython's performance, they do not subsume or reimplement the core abstract machine as defined by the bytecode and its execution model. By conflating C implementation of performance-critical execution logic with definition of the language's abstract machine, the statement obscures the distinction between translation of source to bytecode and bytecode execution via C. A more technically precise phrasing would clarify the separation of compilation and execution phases in CPython's translation pipeline.
      CPython's implementation of the Python language entails an intricate translation pipeline comprising multiple phases, rather than a simplistic translation to C code as the misleading statement suggests. Source code is first parsed into an abstract syntax tree (AST), representing code structure. The AST is then compiled into stack-based bytecode instructions, which serve as the principal intermediate representation retaining the dynamism and higher-order characteristics of Python, including first-class functions and dynamic type resolution, using a Python-specific instruction set. The bytecode is executed by a virtual machine implemented in C, but the primary role of its C components is efficient bytecode execution, not recoding Python semantics into C abstractions. By eliding the distinction between the parsing, AST, compilation, bytecode, and virtual machine execution phases, and implying a more straightforward translation to C than occurs, the statement obscures the engineering complexity of CPython's implementation and the conceptual distance between the bytecode intermediate representation and C code. The bytecode is central to preserving Python language semantics in the implementation, not an ancillary artifact of translating Python to C.

    • @easypezy2155
      @easypezy2155 Před rokem +5

      Python code (P) is compiled into bytecode (B) by the CPython implementation. The bytecode is executed by the Python virtual machine (V), which is implemented in C. The bytecode is then compiled into machine code (M) by a just-in-time compiler (JIT), which uses various optimization techniques (O) to generate highly efficient and platform-specific code:
      P → B → V → JIT(O) → M
      The optimization techniques used by the JIT include loop unrolling, instruction scheduling, register allocation, and constant folding, which are designed to eliminate redundant instructions, minimize memory access, and maximize instruction-level parallelism. The resulting machine code (M) is highly optimized, and can execute the Python program with maximum efficiency.

  • @sergeykolesnik1171
    @sergeykolesnik1171 Před rokem +529

    You have stated zero to none benefits of using C++ over C for doing operations on memory, though. C++ conteptually is very different from C, since it is compiled for "abstract machine" and relies on heavy optimizations, often removing a lot of operations on raw memory that are deemed UB by the Standard. C on the other hand allows a larger variety of operations on raw memory.
    Also, when you inject or modify app's memory, you don't use "C or C++ code" (or even assembly), you use *binary machine code*. There's no difference whatsovere between an optimized compiled machine code of an application compiled from C/C++/Rust or even CPython.
    So, again, yoh have stated absolutelly no reasons "why one should prefer C++ for hacking".

    • @fortender
      @fortender Před rokem +83

      I feel the same way about the video. I am a bit confused about the part where he states that you gain from using C++ when writing hacks if the OS is written in C and the game is written in C++. This makes no sense to me as in the end every application whether the used language is interpreted or compiled (ahead of time/just in time), it is translated into platform and os-specific machine code. When i want to write a hack it all comes down to understanding how the game works, how it's structured, how it accesses memory and stuff. Things like - buzzword bingo incoming - calling conventions, bitwise operations, memory allocation, polymorphism and stuff are interesting, but not the programming language you used to write your hack in. Use the programming language that suits you well and that's capable of making syscalls and that let's you manipulate memory. Almost any programming language i touched let you do that.

    • @ar-l
      @ar-l Před rokem +19

      C is compiled for an abstract machine as well, actually

    • @sergeykolesnik1171
      @sergeykolesnik1171 Před rokem +44

      ​@@ar-l but C is more forgiving and less strict in terms of operations on raw data. Type punning via Unions is UB in C++ but is perfectly legal in C. In C++ you have to jump through hoops when working with raw bytes. Prior to `std::start_lifetime_as` you have to PRAY to some compiler god that your `std::copy` will be optimized to no copy of received byte array.
      I am myself a C++ engineer and would prefer it for developing over C because of its idioms and fetures (RAII, Pay for what you use, compile-time polymorhism and function overloading). But advising someone to learn a VERY COMPLICATED and TIME CONSUMING language just to use a very limited subset of functions is totally insane. C would be perfect for memory manipulations, also Winapi is pure C.

    • @j4viersitox7
      @j4viersitox7 Před rokem +8

      @@sergeykolesnik1171 What about using std::bit_cast (C++20) for type punning? Btw I agree that using C++ over C makes no sense in this case, in general you should learn very low level stuff for hacking/modifying app's memory.

    • @sergeykolesnik1171
      @sergeykolesnik1171 Před rokem +3

      @@j4viersitox7 idk why CZcams doesn't show my reply. std::bit_cast copies bits to a new value, thus you would have to copy those back if you want to modify the original memory. (Original reply contained a link to Stack Overflow answer)

  • @tjgdddfcn
    @tjgdddfcn Před rokem +232

    The windows api is just an abstraction over system calls, which can only be written in asssembly/machine code and are only available in C because it allows you to use functions defined in assembly

    • @tjgdddfcn
      @tjgdddfcn Před rokem +8

      @xrag yes , those are system calls

    • @whawiz
      @whawiz Před rokem +1

      fellow wizard!

    • @fexty8776
      @fexty8776 Před rokem +7

      ???? You can call functions you defined in assembly from C++ as well, what you said makes 0 sense

    • @tjgdddfcn
      @tjgdddfcn Před rokem +1

      @@fexty8776 Yeah, i shouldn’t say „only”

    • @ayyleeuz4892
      @ayyleeuz4892 Před rokem +1

      ​@xrag 'but soon you will encounter the RET instruction...' unless for example ROP chain exploit or adequate kernel driver hooks and adequately hidden ones at that

  • @Duck.Sensei
    @Duck.Sensei Před 6 měsíci +7

    Am I the only person who wants to learn C++ just because it's complex and interesting to look at?

    • @devinpaulsen3658
      @devinpaulsen3658 Před 2 měsíci

      that's why I'm learning it. started in JavaScript for Web dev but c++ is much more valuable.

  • @Local_Shower_Shitter
    @Local_Shower_Shitter Před rokem +465

    id rather put my leg in a meat grinder then touch C++ again

    • @hezuikn
      @hezuikn Před rokem +48

      thats fine, not touching c++ i mean

    • @TheWorldWideWebTheSqueakuel2
      @TheWorldWideWebTheSqueakuel2 Před rokem

      Or putting your leg in a meat grinder, that's fine in my book.

    • @kneesnap1041
      @kneesnap1041 Před rokem +18

      Yeah I kinda find C++ to be in a weird spot. If I wanted an OOP language, C# is almost always a better pick, but if I wanted something low level, C is a better pick. The only real benefit is the industry wide support in the gaming industry

    • @kneesnap1041
      @kneesnap1041 Před rokem +7

      Yeah I kinda find C++ to be in a weird spot. If I wanted an OOP language, C# is almost always a better pick, but if I wanted something low level, C is a better pick. The only real benefit is the industry wide support in the gaming industry

    • @jaspa99
      @jaspa99 Před rokem +16

      @@kneesnap1041 you can write a very C flavored C++ and still get the benefits of the standard library

  • @uwirl4338
    @uwirl4338 Před rokem +92

    Watching this video was like spending 6 minutes in the mind of someone that first heard of C, C++, and programming in general 6 minutes ago

    • @oneawesomealbanian2354
      @oneawesomealbanian2354 Před rokem +19

      thank you for validating that im not insane and that this is indeed a bad video

    • @fullmetaltheorist
      @fullmetaltheorist Před rokem +1

      C++ is also as hates as java in these comments. There is a clear correlation between how verbose a language is an ho many people hate It.

    • @noobynoob1
      @noobynoob1 Před rokem +1

      Why do you say that?

    • @Avighna
      @Avighna Před rokem +2

      Exactly, thank you so much! I love C++ but this video was bad.

  • @drunkpixel568
    @drunkpixel568 Před rokem +27

    I am leaning c/c++ for about a 2 years at this point and i found other languages so easy such as python and sql.

    • @ayyleeuz4892
      @ayyleeuz4892 Před rokem +7

      well done. you should always have this attitude, that languages are trivial

    • @Proferk
      @Proferk Před rokem +7

      sql isn't a fucking language

    • @drunkpixel568
      @drunkpixel568 Před rokem

      @@Proferk what ever that is database language or some shii

    • @dfsfsdfd
      @dfsfsdfd Před rokem +1

      @@ayyleeuz4892 This, once you know the logic the rest is just syntax and specific functions/features of that language.

    • @SoggyBagelz
      @SoggyBagelz Před rokem

      @@Proferk yes it is It is the most in-depth language in use today.

  • @chrisolo2001
    @chrisolo2001 Před rokem +14

    Thank you for the resources, Cherno was like the best teacher for getting more advanced c++ aspects to stick. I was wondering if you have Java resources because I’m trying to learn mobile development. Thank you again ❤

  • @mathgeniuszach
    @mathgeniuszach Před rokem +8

    This video should be titled "What is C++?" and not "You Should Learn C++ (for hacking games)", because you literally cover *nothing* about why you even should learn C++ for hacking games, you only talk about the difference between it and other languages without linking it back to the topic.
    This video also feels very uninformed about game modding in general. Many games use interpreted languages (Java, C#, Python, Lua, ...) and require *NO* understanding of compiled languages whatsoever to mod them; they are also much simpler to change. Not to mention, games built with compiled code require a knowledge of *assembly* to mod them, not C++. Knowing C++ will not help you interpret machine instructions. This video is in a format that makes it seem like you didn't put a lot of research into this, and are just spewing forth some random observations you found out recently.

  • @dfsfsdfd
    @dfsfsdfd Před rokem +7

    If you're afraid of pointers you're not a programmer, just throwing that out there. Manage your memory, not that hard.

  • @yuck871
    @yuck871 Před rokem +2

    What about languages like C# or Rust, that you can compile too? Do they compile to C code first or how do they work with the OS?

  • @gameman4666
    @gameman4666 Před rokem +6

    I would really suggest using C as an alternative or at least trying both of them out before choosing one over another. I personally don't like C++'s syntax and it feels too restrictive for editing memory. As Bjarne Stroustrup said "C++ makes it harder to shoot yourself in the foot" - he could really be talking about type safety, etc. That's exactly what I don't need when unprotecting memory, overwriting values, hooking functions... On the other hand it indeed makes a lot of stuff easier to do - especially in this case, where speed is not critical / algorithms running in the background are no cause for concern. Altough you could just as well write some python script which would miraculously get injected into a running process and hook functions - those are likely only just a few challenges of what to overcome, but that's super high level and everything (except switch cases lol) is at your fingertips.

  • @MacWonk
    @MacWonk Před rokem +22

    I don’t think that Python code gets converted to C code as you said at 5:20. Sure, maybe the Python interpretar was written in C, but once it was compiled it became machine code that when executed interprets Python.

    • @sagarroy1125
      @sagarroy1125 Před rokem +1

      Nowadays I think it's interpretted to Python bytecode

    • @ziul123
      @ziul123 Před rokem +4

      @@sagarroy1125 no, it's compiled to bytecode, the bytecode is what's interpreted

  • @bubasargamer
    @bubasargamer Před rokem +41

    Dude I just binge watched like 10 of your videos cause I find them so entertaining even if I dont know C++ and you post this. LFG

  • @aybusiness19
    @aybusiness19 Před rokem +11

    hit the nail on the head with the freedom point, the ability to do anything to a stupid level is what makes me love cpp tbh. nice way to just fuck around and experiment, good outlet for creativity in that way imo

    • @cazz
      @cazz  Před rokem +2

      Yeah man. Sometimes I get bored of C++ and look for something to replace it with but it's difficult. Once you know your way around C++, thee isn't really anything to replace it 1:1 in this field.

    • @RinLovesYou
      @RinLovesYou Před rokem +5

      @@cazz you could just use rust ;)

    • @switchblade6226
      @switchblade6226 Před 11 měsíci +1

      @@RinLovesYou or you could become a Jehovah's witness instead. jokes aside, personally I prefer cpp for stuff I do

  • @joe_morris
    @joe_morris Před rokem +1

    I only really have experience in C# and I’ve spent most of my coding time with Unity. Given unreal is largely C++, I’m really curious how it compares to C#.

  • @hassansyed5661
    @hassansyed5661 Před rokem +1

    Even after years, I still write and read code in C/C++ and Assembly Language

  • @cheetahsflame1279
    @cheetahsflame1279 Před rokem

    my thinking to choose what i was gonna use for coding was python is very easy to learn and its easier to learn coding after you already know how to code another language so i choose python for optimal speed

  • @mdjd.8893
    @mdjd.8893 Před rokem +32

    You should do a proper walkthrough of your WT crashed code, it is interesting, and is something new to the channel.

    • @cazz
      @cazz  Před rokem +2

      I was thinking about explaining some reverse engineering stuff with WT but I'm not sure it's a good idea. Might put me on Gaijin's radar. None the less, good idea and thanks for the suggestion

    • @sparrow243
      @sparrow243 Před rokem

      @@cazz Or you can make paid course on your website if v

  • @Valgar1437
    @Valgar1437 Před rokem +41

    It will be cool a video introducing the basic concepts of a driver, and how to code your first driver

  • @shiggy8157
    @shiggy8157 Před rokem +23

    Really love your video style, find these pretty enjoyable to watch.

    • @cazz
      @cazz  Před rokem +2

      Thank you very much!

  • @parthdeshwal4419
    @parthdeshwal4419 Před měsícem +1

    you can say c++ is quite complex as compared to very abstract languages like python but definitely it's not massively complex

  • @terioskrim82
    @terioskrim82 Před rokem

    I do want to learn c++ so I can get into hacking mortal kombat deception but from what I have been told it's definitely a learning curve and I don't know where to start learning c++

  • @boonluenoppkun5510
    @boonluenoppkun5510 Před 3 měsíci

    Thx bro that answer my question when I was young.

  • @TheUKNutter
    @TheUKNutter Před rokem +2

    Oh trust me, I know. I’ve had to deal with annoying bots on TF2 Casual for the past 3 years

  • @RomeoVP
    @RomeoVP Před 10 měsíci

    for creating esp items for dayz or scum steam game, you need to learn c++ ?

  • @nitsanbh
    @nitsanbh Před rokem +6

    5:38 saying that Python is so slow because it’s interpreted, (and saying it applies to node.js) - is wrong.
    Python is so slow because:
    1. expressions like "x+y" cause a search at runtime to determine which overload of + to invoke (ints addition? floats? strings? maybe cast one? maybe raise error?)
    These checks run on almost every command you write, and add up to a lot of overhead.
    2. The lack of JIT optimizations.
    V8 (node.js) has spectacular runtime spells that solve many cases of problem 1.
    For example, in node.js if you call a function 500 times with objects of the same shape, the JIT will write a function that operates over struct memory offsets like in C- instead of a regular “hash map” object.
    Some of those JIT optimizations will (finally!) come in Python3.11
    3. The infamous GIL which was a mistake decision made in the 90’s when they mis-predicted multicore CPUs. Now it’s too late to reimplement CPyhton differently.

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

    If i want to unlock itmes in game(codm) by programming which language should i learn... ??

  • @AskAKill99
    @AskAKill99 Před 6 měsíci

    Im glad i seen this,seeing as how C++ was the first language decided to learn

  • @ricencheeser
    @ricencheeser Před rokem +7

    Congrats on your first sponsorship cazz :)

    • @cazz
      @cazz  Před rokem +2

      Thank you!! 😁

  • @Raul-ef6ct
    @Raul-ef6ct Před měsícem

    I didn't realize I'm more experienced than you in C++ until you said that you have 3 years of experience in that programming language! To me that's crazy! I have 6 years of experience in C++, bro! Well, that's because I graduated Computer Science in high school and now I study Artificial Intelligence.

  • @QmVuamFtaW4
    @QmVuamFtaW4 Před rokem +1

    your thoughts on Rust programming language?

  • @projetoeclipse
    @projetoeclipse Před rokem

    All that you said in the video, the free pascal language also does it, right? (I'm using the translator)

  • @estetikz
    @estetikz Před rokem +4

    Damn, you’re at 22k subscribers already. Back when I watched you were under 1k. Time flies.

  • @user-xk7de1jw8g
    @user-xk7de1jw8g Před 8 měsíci

    Bro, I have a question for you. Look, I did implement the minimax algorithm in Python and create an AI Tic Tac Toe player that is invincible. However, in C++ it's a daunting task for me. Can you help me implement the minimax algorithm in C++?

  • @ouew3872
    @ouew3872 Před rokem

    could you do a video about saving multiple configs in a imgui menu

  • @polariandev
    @polariandev Před rokem +4

    It is funny how much factual inaccuracies could be packed into a single video, lets go through some of them:
    - C++ still remains memory unsafe, saying it is "safer" is misleading as you still get a ton of memory issues
    - C++ is not "C but better", it is a completely different paradigm, it is mainly designed around object orientated programming while C sticks to procedural programming.
    - C++ tends to be a lot slower than C, the added memory allocations, and abstraction cause less performance than a typical C program (especially if you use object orientated programming).
    - Python's interpreter and some of its core libraries are written in C, but python has nothing to do with C, it never compiles to C, it is interpreted at runtime is compiled to bytecode, why would an interpreter compile python code into C code? just to then pass it through a C compiler? its illogical.
    - You never actually explained your accusation that "C++ stands out the most", it was the language of choice for a lot of game engines, but game engines such as unreal engine are so monolithic, C++ is used more as a scripting language (just like how software use lua, python and easier languages for scripting) while the majority of the game is driven by the game engine, all you got to do is know how to press a few buttons and drag objects and entities to the screen.
    - You say that C is designed to be a system programming language, but that was exactly what C++ is used for, a large amount of windows is C++, until they moved towards dotnet a lot more.
    - Also you keep referencing "operating system" as a general term, there are many different components to an operating system. The windows kernel, the very basis, is written in C, but a lot of the userspace and also libraries are written in C++ and C#, but I guess we will never actually know because the entire OS is proprietary (and therefore, sucks!)

    • @dfsfsdfd
      @dfsfsdfd Před rokem

      You get a ton of memory issues if you can't keep track of your shit.

    • @polariandev
      @polariandev Před rokem

      @@dfsfsdfd Exactly, that is the point, yet "C++ is safe unlike C"

    • @dfsfsdfd
      @dfsfsdfd Před rokem

      @@polariandev Fair, though I hate the usage of the term "safety" in this context, like you need to be protected from memory or something.

    • @polariandev
      @polariandev Před rokem

      @@dfsfsdfd Well, it is a misleading term, people often hear memory safety and think "OMG is my memory unsafe, am I getting hacked?", no you just aren't freeing your heap allocations!

    • @dfsfsdfd
      @dfsfsdfd Před rokem

      @@polariandev That and I've run into people who seem to legit think pointers should be avoided for "safety". Exactly, if you make it with new, undo with delete!

  • @MadpolygonDEV
    @MadpolygonDEV Před rokem

    I think the language itself is fine, however the stuff and frameworks and overloading etc people build with the language is very complex and sometimes unneccessarily so.

  • @tru2thastyle
    @tru2thastyle Před rokem

    Excellent video!

  • @vixguy
    @vixguy Před rokem +16

    I’m a big fan of python. It makes things so much easier in so many ways

    • @dfsfsdfd
      @dfsfsdfd Před rokem +3

      It's the fisher price of programming. Riding with training wheels is easy too.

    • @vixguy
      @vixguy Před rokem +1

      @@dfsfsdfd Yeah for sure it is training wheels, but I don't get why anyone would want to move away from these set of training wheels.
      For example, I'm really into ML, and python is top-dog for anything ML related. Libraries are made in C++ and used in python so it's fast and easy to use.

    • @dfsfsdfd
      @dfsfsdfd Před rokem +2

      @@vixguy Because many of us aren't ok with just using something someone else built? What if you wanted to write your own machine learning engine? Or anything that isn't just a wrapper someone else made around their work?

    • @marshallsweatherhiking1820
      @marshallsweatherhiking1820 Před rokem +2

      @@dfsfsdfd Python is easy to learn because its forgiving compared to c++ in terms of syntax errors, and you don’t have to worry a lot about type matching or memory management, but it isn’t simple to master.

    • @dfsfsdfd
      @dfsfsdfd Před rokem +1

      @@marshallsweatherhiking1820 Syntax is syntax, you could argue it's more intuitive, however, neither language is forgiving in that aspect. One yells at you during compile, the other just crashes at runtime when you get to it. Memory management isn't hard, use new then delete. Typematching imo is easier, you know what the variable is and leads to less accidental data mismatches. To be fair it isn't simple to master any programming language, but python scripting is relatively easy in my experience relatively speaking.

  • @EternalNetzah
    @EternalNetzah Před rokem +2

    I see a lot of people using C++, but C# seems to accomplish the same just as much. Hearing supporters of both C++ and C#, I start to believe that nothing really matters - both provide you with the necessary freedom you need, if you decide to go deeper, and the necessary tools to keep you safe by default.

    • @cazz
      @cazz  Před rokem +2

      You're completely right. For 90% of situations C++ and/or C# will work perfectly. In-fact, C# would be less complicated and take less time than C++.
      Ultimately though, it is my opinion that C++ comes out on top in those 10% of situations thanks to it being fully compiled, speedy and having all the memory access in the world.

    • @EternalNetzah
      @EternalNetzah Před rokem +2

      @@cazz Can you give me some sort of an example where C++ accomplishes it better? I don't quite understand how it's more compiled or has more memory access.

  • @salimal-badi7063
    @salimal-badi7063 Před rokem

    Can you make introduction into mobile game hacking? Like how to implement same concept of injection or modified into mobile.

  • @Rvdyy.7
    @Rvdyy.7 Před rokem +1

    Hello. Nice video but I have one question. whats the name of the game in this video 3:35 ?

  • @nngnnadas
    @nngnnadas Před rokem +2

    It's hard to argue whether C or Algol are more influential, since C itself is influenced for Algol, and you have to decide for how much this should count.

  • @sreejishnair5922
    @sreejishnair5922 Před rokem +3

    Bro your videos are very interactive do you have any courses in udemy to learn malware development using C or C++ and the prerequisites for it. Appreciate if you can get back to this query

  • @matthias916
    @matthias916 Před rokem +2

    Memory editing can be done with pretty much any language, dont get discouraged if you dont know C++ or simply dont like it

  • @rodgomesc
    @rodgomesc Před 2 měsíci

    python is not translated into C code, it's compiled to bytecode by cython which is then interpreted by the cython vmachine

  • @irisaacsni
    @irisaacsni Před rokem +2

    So this six minutes long video explains what are some few uses of any half decent system programming language, which includes manipulating memory manually. AFAICT this can be done in Rust, C, C++, Go and probably many others. There's a lot of tutorials written in some dialect of C++ so it is a good reason to have some knowledge of it. Personally, I would stick to C for game hacking as manual memory management is where it excels, and you would end up written C in C++ anyways (well try writting game hacks with only "modern C++").

    • @marshallsweatherhiking1820
      @marshallsweatherhiking1820 Před rokem +1

      I don't know why anyone would need OO or templates to write a hack. That stuff is for developing projects that get large and complicated. Almost any c++ compiler will compile straight c as well, but the low level memory manipulation libraries you'd probably want to use are not actually part of the c++ standard, even if compliant equivalents can be included.

  • @rares2665
    @rares2665 Před rokem

    Man keep up. I won t even say anything else, ur just good

  • @thecircusb0y1
    @thecircusb0y1 Před rokem +3

    I appreciate your videos and your work. Not sure why I got kicked from your discord by Maxim , but I'll keep enjoying your content.

    • @cazz
      @cazz  Před rokem

      Maxim isn't a mod or anything so he doesn't have the power to do that. Let me know your discord name so that I can look into it if you like.

  • @d3r1n
    @d3r1n Před rokem +5

    You should try rust!

  • @ricanteja
    @ricanteja Před rokem +18

    I'm actually of the opposite opinion. I've done some game hacking in my time and some game programming as well and there isn't anything you can do in C++ that you can't do better in C. C++ doesn't improve your ability to not shoot your foot off, in fact it becomes easier because of OOP and clusterfuck STL. I'd recommend avoiding it and sticking to C. In the end if you do go with C++ you are just going to be using a subset of C++ that makes it almost identical to writing straight C code. Professional, high end C++ looks almost exactly like C.

    • @Zex-4729
      @Zex-4729 Před rokem +1

      Not if you are complying with new C++ standards, and keeping up with updates, but yeah a lot of people do use orthodox C++ even today.

    • @ayyleeuz4892
      @ayyleeuz4892 Před rokem +1

      windows API is c++ and within c++ you can write c code

    • @ricanteja
      @ricanteja Před rokem

      @@ayyleeuz4892 This just isn't true. It's all C and maybe some ASM.

    • @ayyleeuz4892
      @ayyleeuz4892 Před rokem

      @@ricanteja windows API winapi is implemented in c++

    • @ayyleeuz4892
      @ayyleeuz4892 Před rokem

      GitHub windows driver samples to see for yourself which language is used when dealing with windows API.

  • @harry8912
    @harry8912 Před rokem +1

    I used to like CPP with basic stuff, then classes and pointers came and I hated it. I wasn’t bad but too much stuff especially pointers that I kind of gave up. I’d rather do Python any day than CPP.

  • @SantoLucasST
    @SantoLucasST Před rokem +2

    Cool, but something more concrete would be nice, like 2 examples one in C++ and the other in another language showing why it's easier

  • @jay22alco
    @jay22alco Před rokem +3

    when you finish learning c++ and found out that you need to learn assembly language to hack games 😂

  • @MemeMatorMemeMator
    @MemeMatorMemeMator Před rokem +1

    I think you meant "Blowing" your foot up there 3:09

  • @-.a
    @-.a Před rokem +1

    what is the game at 3:45

  • @ChrisM541
    @ChrisM541 Před 11 měsíci

    In the end, you're changing game machine code in memory. Expertise in Assembly language is a must if you want to prove what you're changing is correct...of course, unless you are using 'tools'.

  • @user-mv4vc9bx6p
    @user-mv4vc9bx6p Před rokem

    0:07 s what's the program name???

  • @WedgeDev1
    @WedgeDev1 Před 11 měsíci +1

    Ad ends at 1:48 btw

  • @edwardseverinsen5598
    @edwardseverinsen5598 Před rokem

    0:35 I was watching from the CZcams home page (you can hover over a video and it will play in the thumbnail without opening it in a new tab). Probably the best strat for getting someone to click in that scenario is having a sponsor. I was just intrigued enough and my fiery hatred of ads so strong that I clicked.

  • @stevencowmeat
    @stevencowmeat Před rokem +2

    Awesome video was very well explained and the visuals/editing was quite nice good job👍

  • @ratsiu9443
    @ratsiu9443 Před rokem

    Currently Im learning Python, but after that I will learn C++ because it is very powerful and also faster

  • @quacksly509
    @quacksly509 Před rokem +4

    What are your thoughts on using rust instead of c++ for hacking games. While you lose the advantage of writing in the same language as the game and operating system, do you think the additional memory safety is worth it?

    • @cazz
      @cazz  Před rokem +6

      The problem is that, writing cheats is an inherently memory-unsafe activity. Most cheating is memory exploiting. The result of this is… 70% of your rust code base is going to be in between “unsafe” tags, so what’s the point.
      C++ will let you shoot yourself in the foot and that’s extremely powerful in the right hands, that edge of danger is what makes C++ so powerful.
      There are certainly use cases for rust though, it really depends on your goals.

    • @StealerSlain
      @StealerSlain Před rokem +4

      cazz is correct. Rust will get in your way literally on every step. C++ is the only sane option imo

    • @FaZekiller-qe3uf
      @FaZekiller-qe3uf Před rokem

      @@cazzRust isn’t only about memory safety, it provides much more (it’s just that’s what many people advertise about it). The syntax, dependency manager and build system, the traits, macros, etc.

    • @FaZekiller-qe3uf
      @FaZekiller-qe3uf Před rokem +1

      @@StealerSlainC is more sane using your logic, c++ gets more in the the way than C.

    • @StealerSlain
      @StealerSlain Před rokem

      @@FaZekiller-qe3uf well I'd argue with that if we're talking hacking or reverse engineering in general. C++'s RE ecosystem is richer and since most games are written using OOP anyways, the class/struct mapping will be very convenient

  • @pabloqp7929
    @pabloqp7929 Před rokem +3

    First-time viewer. Vid felt too short!! Looking forward for more in-depth Games Hacking stuff ⚡

    • @cazz
      @cazz  Před rokem +4

      Noted!

    • @pabloqp7929
      @pabloqp7929 Před rokem +1

      @@cazz Omg seen your .dll vid. Eye-opening and awe-inspiring. Thank you sir!

  • @muha0644
    @muha0644 Před rokem +2

    Well, while Linux was written almost entirely using C, windows actually uses C++
    (i know, same difference, but I thought I should mention it)

    • @konstantinrebrov675
      @konstantinrebrov675 Před rokem

      The Linux kernel is written in C, but many of the overlay programs such as the GNU command line tools and especially the UI elements (using Qt framework) are written in C++.

  • @creepynutsrl
    @creepynutsrl Před rokem

    i use zig and its really good

  • @micah2936
    @micah2936 Před rokem

    I’m second most familiar with Cpp, first familiar with lisp

  • @Juss_Chillin
    @Juss_Chillin Před rokem

    Nice video about my favourite language!

  • @333ruka
    @333ruka Před rokem

    now I can understand behind JS technology

  • @nullchecker9985
    @nullchecker9985 Před rokem

    Thanks for this amazing videos but we want more stuff on imgui bro

  • @CraftingTheGame
    @CraftingTheGame Před rokem

    I was wondering if u could make an aim bot by making the game realize enemy as a certain entity and making it to aim on it for gta V role play servers. Can you please help me to code an aimbot for RAGE MP GTA V RP servers

  • @TheRealMangoDev
    @TheRealMangoDev Před 10 měsíci +1

    "C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do it blows your whole leg off." - Bjarne Stroustrup

  • @Kusaji
    @Kusaji Před rokem +1

    Just going to say, this video barely goes over why one should learn C++ for hacking games, but instead goes over a neat little history of the C language.

  • @Ruin3.14
    @Ruin3.14 Před rokem

    I'm currently taking a software dev class with c++. Java and Python were my seasoned languages, but learning a lower-level, more fundamental language has been challenging and rewarding. I have to think about memory management, memory allocation, which I find adds another level of complexity and interest. I also have been a avid FPS /competitive gamer. I would never try and make a game hack to distribute since I am against cheating, but would do a modding or hacking on a private LAN server with only myself and no anticheat!. As a child, people that 'hacked' in games made me feel like they were some darknet hacker or something, but they just downloaded it off a site. Now I am in a position where I have the ability to actually MAKE the cheat, but in a ethical sandbox sense!

    • @ayyleeuz4892
      @ayyleeuz4892 Před rokem

      you are still very far away from creating a cheat which will successful while playing online

    • @dfsfsdfd
      @dfsfsdfd Před rokem +2

      @@ayyleeuz4892 You are still very far away from creating a sentence which will successful while reading online

    • @dfsfsdfd
      @dfsfsdfd Před rokem

      Don't let them scare you away from pointers. They are insanely powerful, don't fall into the "just wrap everything in a vector bro"

    • @ayyleeuz4892
      @ayyleeuz4892 Před rokem

      @@dfsfsdfd he is already scared of this because he sees that it's unethical

  • @timothy_liu
    @timothy_liu Před rokem

    What is the game at 3:12

  • @ezekielekek6058
    @ezekielekek6058 Před rokem +1

    Great content. Tried out Brilliant thanks to you. Best purchase of the year by far :)

  • @futuristic-
    @futuristic- Před rokem +29

    Once you learn C++ all other programming languages will seem really easy to learn and use

    • @jdsaravaiya6468
      @jdsaravaiya6468 Před rokem +3

      Not python.

    • @LeaoMartelo
      @LeaoMartelo Před rokem +1

      @@jdsaravaiya6468 going to python from c++ its so weird, it contradicts everything you know

    • @ThatOpinionIsWrong
      @ThatOpinionIsWrong Před rokem +6

      Replace "C++" with "C" and that's correct

    • @memes_gbc674
      @memes_gbc674 Před rokem

      i mean this was true for me when i was learning C, once i learned that i could get a hold of other easier languages pretty fast despite me only having a basic background of python

    • @charliebitmyfinger7124
      @charliebitmyfinger7124 Před rokem +5

      @@ThatOpinionIsWrong Nah man, I know both and C++ is way harder. Also, classes and first-class functions don’t really exist in C, which makes it not really compatable with modern programming paradies such as OO and FP.

  • @itzzzsumon384
    @itzzzsumon384 Před rokem

    If you've to pick one language, which one you would pick for anything??

    • @cazz
      @cazz  Před rokem

      For anything? Probably C#

  • @ilburrito0059
    @ilburrito0059 Před rokem +1

    Nice name cazz!

  • @gavintantleff
    @gavintantleff Před rokem +1

    I am not a fan of the rhetoric that c is a systems language, and therefore can’t have any memory access rules. Is Rust not proof that a systems language can add a bunch of protections without compromising speed most of the time?

    • @kneesnap1041
      @kneesnap1041 Před rokem

      The way I interpreted "systems language" was that it meant giving the most degree of power of the underlying hardware, which is directly not what Rust is. (for better or worse)

  • @vicshcher
    @vicshcher Před rokem +1

    "C++ was coded in C"
    Yeah, that was true when first C++ compilers were released, but today even GCC (including C compiler) is mainly written in C++. Some C enthusiasts are mad of that fact;)

    • @v01d_r34l1ty
      @v01d_r34l1ty Před rokem

      You can actually use C++ within C projects (and this boils the blood of many other programmers). Just compile the C files with a C compiler and the C++ files with a C++ compiler (into object files) and then you can link them together with a C++ compiler.

    • @vicshcher
      @vicshcher Před rokem +2

      @@v01d_r34l1ty not only C++ then, many compiled-to-native programming languages implement FFI that allows to communicate with binary files compiled from other langs

    • @v01d_r34l1ty
      @v01d_r34l1ty Před rokem

      @@vicshcher Yup! Rust is a prime example! A Rust file, C file, Zig file, and C++ file can all be compiled into the same binary!
      Edit: I didn’t want to mention FFIs just because I’m not all too familiar with them as I mainly use C++ and C. I know my place and I try to stick to it lol

    • @vicshcher
      @vicshcher Před rokem

      @@v01d_r34l1ty same. I'm pretty comfortable with paradigm that C++ provides. Tried Rust once, I kinda understand fact that memory safety requires some effort, both from language designer and end user, but those imposed restrictions are too strict for me. Anyway, that would be useful to learn some new programming and design techniques, including Rust's ones

    • @v01d_r34l1ty
      @v01d_r34l1ty Před rokem

      @@vicshcher Rust is dirty until you get into building with it, kinda like with JavaScript. I found I had to use a different learning approach than with C++. Overall, it has more restrictions but more or less comparable compatibility and interoperability and capability as C++ with some of the bargaining chips of C.

  • @JustSmileyFace...
    @JustSmileyFace... Před rokem

    Me who learn C/C++ at school: Jokes on me, I want to learn this sh*t

  • @tasdikurrahman1821
    @tasdikurrahman1821 Před rokem +1

    I love how well put this video is, and in the end when you linked down @thenewboston and @TheCherno is where you earned my respect because these two are abosolute legends in terms of teaching people new language and how it works!

  • @TheRojo387
    @TheRojo387 Před rokem +1

    When you said that the entire Windows operating system was written in C, that was a lie; the bootloader still had to be written in machine language, as did the portion of the kernel allowing for a C runtime environment.

    • @cazz
      @cazz  Před rokem

      You got me! Sorry boss.

  • @nBlackyHVH
    @nBlackyHVH Před rokem

    a Cazz video is just like birthday but like a good one

  • @irkdidkd6486
    @irkdidkd6486 Před 3 měsíci

    Is Python also good for game hacking?

  • @user-xu3so2ug1f
    @user-xu3so2ug1f Před 11 měsíci +1

    isnt it the same with rust?

  • @D34TH-C0D3
    @D34TH-C0D3 Před rokem

    I would love to learn c++. Unfortunately I'm broke so I'm stuck with python. Couldn't even install a gcc compiler on my laptop because I ran out of data for it.

    • @avirel5584
      @avirel5584 Před rokem +2

      How, c++ is way more efficient than python, if you can run pythom, you can surely run c++

    • @PonelyPonely
      @PonelyPonely Před rokem

      watch chernos videos he has a playlist of 101 videos for c++

  • @-Angelo-116
    @-Angelo-116 Před rokem

    Can u make a hack for Stronghold kingdoms ?

  • @ayussensie
    @ayussensie Před rokem

    Hey, does anyone have a tutorial on hacking games with py/c++

  • @andresolbach
    @andresolbach Před rokem +1

    Can you make a video about how to bypass anticheats and making the cheat safer in general to avoid getting banned?

  • @eslof
    @eslof Před rokem +6

    The decade I spent in my scene group, we mostly just messed with the assembly..
    For the trainers/cracks or keygens themselves one dude made a template and we mostly just add a button and put in the ASM instructions. Today I'd probably use C#, but it's really whatever, most languages can do this.
    These are not many lines of code, and no one cares how long it takes to run your kb sized executable.

  • @netanelkomm5636
    @netanelkomm5636 Před rokem +1

    Hey cazz, I was wondering if you could about a video that features suggestions on what games to move on to after hacking csgo? I've been hacking csgo for quite a bit and i'm pretty satisfied with what I did. It would be cool to hack other games, but i dont know which.

    • @ayyleeuz4892
      @ayyleeuz4892 Před rokem +2

      you can prove that you have learned some things and go write a cheat in another source game. then maybe you can attempt ue4 game so you can similarly hack any ue4 game, or cryengine? if you are confident you have mastered reversing and writing a cheat, move onto methods of injection, learn winapi, learn windows drivers, learn windows kernel mode drivers, learn anti cheat such as battleye by reversing it, successfully subvert an anti cheat

    • @ayyleeuz4892
      @ayyleeuz4892 Před rokem +1

      subverting vac is the easiest way to learn how to subvert anti cheat

    • @netanelkomm5636
      @netanelkomm5636 Před rokem

      oh i see. I guess im far from mastering it then. I've only wrote cheats with tutorials (although i added some stuff myself). You got any suggestions on where I can start learning reversing? Maybe a video?
      I mean, I wanna learn for example, how to dump the offsets myself. I am quite familiar with reversing tools such as IDA, windbg etc...

    • @ayyleeuz4892
      @ayyleeuz4892 Před rokem

      @@netanelkomm5636 it seems like you just need a simple project to come to understand the process, try the UC forums and remember to use an old offline game which has public infos and discussions online you can learn from.

    • @ayyleeuz4892
      @ayyleeuz4892 Před rokem

      the UC forum is your friend. you need to have something like a single player game in a well understood engine, from here you can most clearly come to understand the process. for decades many people seeking the knowledge you seek learned with the classic Assault Cube. try the UC forum, try such as "assault cube reversing" to find the necessary infos, tools, and discussions-'assault cube reversing' in CZcams. good luck

  • @et_matrix
    @et_matrix Před rokem

    I have tried to write my own toy programming language after learning compiler design and automaton theory. At the end i said fuck interpreting languages.

  • @bgp1211
    @bgp1211 Před rokem +3

    python isnt a c program only cpython, there is other implementations of the language such as pypy which is python written in python

  • @TagetesAlkesta
    @TagetesAlkesta Před rokem

    0:00 ah yes jQuery, the ultimate game hacking tool