Unity Game Hacking with dnSpy

  Рет қаралды 62,623

John Hammond

John Hammond

Күн бұрын

Пікірлер: 104
@Plagueheart
@Plagueheart 3 ай бұрын
As someone who has been reverse engineering since the 90s, I think this tutorial is okay for beginners, but I strongly advise against modifying assemblies physically using methods like hex editing or DnSpy. Not only does it increase risks to anti-cheat detection, but you'll also lose lots of progress when the game updates. A much safer and more effective approach is to create a .NET project that serves as a loader, utilizing HarmonyPatch and reflection to inject patches. This way, you can avoid detection by checksums on physical hard drives at least. Plus, having a repo for modifications allows for easy updating the source code if the game changes in the future.
@nordgaren2358
@nordgaren2358 3 ай бұрын
@@Plagueheart this is way too much to start with. The point of this game is to teach beginners.
@nordgaren2358
@nordgaren2358 3 ай бұрын
@@Plagueheart there is a challenge associated with this binary that isnbest done with harmony, though, so that's probably when that will be introduced.
@DarkForce2024
@DarkForce2024 3 ай бұрын
Would this still apply to offline, single player only games? That's what I'd be interested in.
@Plagueheart
@Plagueheart 3 ай бұрын
@@nordgaren2358 Yes, you are right about it being too much but still i did say it was okay for beginner level, but it could of atleast acknowledged for the end-user on bad practices and how this method is the wrong way of doing because of explained pitfalls
@Alfred-Neuman
@Alfred-Neuman 3 ай бұрын
I tried to do something similar with a single-player racing game by using ILSpy. I didn't even want to cheat, the game is pretty good but is a beta version and has many annoying things like hard coded keys so I wanted to fix a few things (ex. shifting gears with , and .) I don't have enough knowledge for injecting code so I used ILSpy and when I try to compile the reversed code I get one very annoying compiling error and I don't know how to fix it. I'll take a look at HarmonyPatch, seems very interresting.
@threeMetreJim
@threeMetreJim 3 ай бұрын
For the apple/fish, I would have tried changing an apple object into a fish object, by looking for the definitions of objects and how they are placed. Your method is much simpler. The ability to place any object anywhere, could have more 'fun' potential instead of just being a simple cheat. The 'you should play basketball' on the first flag seems to indicate the original authors envisioned people modifying the 'jump' to go much higher than usual.
@arjunprajapati7378
@arjunprajapati7378 3 ай бұрын
🤓🤔🤔🤔🤔😐😑😐😑🤔🙂🙂6 0:48 0:48 0:48 0:48 0:48 😅😅😊😅😮 0:48 0:48
@Californ1a
@Californ1a 3 ай бұрын
Hopefully this series expands to a game compiled with il2cpp instead of mono. Mono modding is super easy, but il2cpp is a huge pain.
@penewoldahh
@penewoldahh 3 ай бұрын
i really wanna see this too
@washi_dev
@washi_dev 3 ай бұрын
I would highly suggest not to rely on the C# editor when editing .NET binaries. ILSpy's engine is great, but decompilation remains an imperfect process. In this case you were lucky the decompiler produced 100% correct syntax and semantically equivalent code. This is not generalizable however for larger, more complex methods, especially for binaries with obfuscation applied. Better is to get familiar with CIL, the underlying bytecode of .NET, and edit methods that way. Not only does this prevent incorrect decompiler artifacts, you will also lay a good foundation on making tools that solely operate on this bytecode, which **will** be required for more complicated cases (e.g., for deobfuscation).
@nordgaren2358
@nordgaren2358 3 ай бұрын
Hey Washi! We aren't really staying on .net for long, anyways. This is just the first game in the defcon challenge. I still think these tools can be good for a first pass, but it's not like Ghidra where I can also see the assembly that the de-compiler is basing it's pseudo code on, which is a bummer. I had a few times during this challenge where I would have much rather been able to look at actual instructions, rather than trusting dnspy, but, he hasn't gotten to those levels, yet.
@person-yq8di
@person-yq8di 3 ай бұрын
@@nordgaren2358 dnSpy has an IL Editor, and IL view option that can view/edit the raw CIL bytecode. Washi is referring to the C# Editor used here (9:28 for example). ILSpy also has an IL view option, but no editing capability.
@hahhaahh7767
@hahhaahh7767 3 ай бұрын
Finally waiting for this topic i used this in mobile. Games its so fun changing models inside the. Game
@johndeaux8815
@johndeaux8815 3 ай бұрын
This is what got me reinterested in programming and cybersecurity. I downloaded a game mod, realised it was just replacing one file with another similarly sized one, and thought it must just be a slightly modified version of the original, which must be decompileable. So I went looking for a DLL decompiler, found DnSpy, and was surprised to find an extra module called "Discord" floating around 😅 Glad I didn't run the original mod and just found the parts I wanted to change in the original DLL, my Discord token is safe for another day.
@Alveneb
@Alveneb 3 ай бұрын
with what game did u experience this, please? I'm trying to think of examples to study later
@Mrcool12able
@Mrcool12able 3 ай бұрын
I would love seeing this, and then do a comparison between this and say unreal engine. What differs. Can you use the same methods as shown here? Great video!
@trevorayala7368
@trevorayala7368 3 ай бұрын
I'm enjoying this series, keep em coming!
@fadiallo1
@fadiallo1 3 ай бұрын
You Getting Better Keep Going.
@oliver-nation4377
@oliver-nation4377 3 ай бұрын
Love this, pls keep it coming.
@masterneme
@masterneme 3 ай бұрын
I've tried this method with actual released games but never got the { } so I guess it doesn't work with IL2CPP games, right?
@Heckatomba
@Heckatomba 3 ай бұрын
1:33 A platypus?
@fr34k09
@fr34k09 3 ай бұрын
I love how I used cheat engine looking like Harry Potter giving himself a wedgie to fly across the hole and not know which file to modify with dnspy, thx for the vid XD
@ThisIsJustADrillBit
@ThisIsJustADrillBit 3 ай бұрын
Perpetual POGGERS 😮❤
@MyRandomness987
@MyRandomness987 3 ай бұрын
This looks like so much fun!!! Can anyone do this? I did not know this was a thing!
@Kamerzystanasyt
@Kamerzystanasyt 3 ай бұрын
what about unreal engine games
@wermair
@wermair 3 ай бұрын
Childish stuff for beginners. Unity games with Mono backend kinda rare this days. Usually I am facing il2cpp and hooking it using Frida. So maybe John will teach us this method in next video 🤔
@Net-Guru
@Net-Guru 3 ай бұрын
You sir is amazing
@GodzillaJawz
@GodzillaJawz 3 ай бұрын
Wassup dr John Hammond
@maxime_vhw
@maxime_vhw 3 ай бұрын
My first thought would have been to increase jumpheight. Also the "you should play basketball" makes me think that was their solution. But yea doesnt matter how you hack the system if you get the same result :p
@彼らは無生物です
@彼らは無生物です 3 ай бұрын
hahahaahhaaha now i repeat this in cs2.
@DopeyDopesta
@DopeyDopesta 3 ай бұрын
I know this is a troll. But DNSpy typically only works with C#. This isn't the case for CS2.
@KillianTwew
@KillianTwew 3 ай бұрын
Plus they won't have a file that is basically called "modify for hacks"
@Josh-dm5sx
@Josh-dm5sx 3 ай бұрын
🤦‍♂️
@depsep
@depsep 2 ай бұрын
CS2 is made in the Source 2 engine, not the Unity engine. And it’s made with C++.
@BedirSama
@BedirSama Ай бұрын
I ended up learning all of Unity just to change values in hentai games, ong 😭😭
@givowo
@givowo 3 ай бұрын
Dnspy my beloved
@juiciestlemonadeofyoutube
@juiciestlemonadeofyoutube 3 ай бұрын
hows the park bro
@RuthJones-k8v
@RuthJones-k8v 3 ай бұрын
Irving Knoll
@FlazhyVR
@FlazhyVR 3 ай бұрын
1st before it goes viral
@Tobi14762
@Tobi14762 3 ай бұрын
I've never been this early
@NicolLauren-q4w
@NicolLauren-q4w 3 ай бұрын
Christine Unions
@MemoriesInsideMe
@MemoriesInsideMe 3 ай бұрын
john u dont need to act as the authority in categories you barely know of
@0xgodson119
@0xgodson119 3 ай бұрын
Nice
@MagnaP
@MagnaP 3 ай бұрын
I thought cheat engine was deemed unsafe beyond 7.2? Between adwares in the installer and the weird antics of the dev in the code itself.
@anispinner
@anispinner 3 ай бұрын
What is the point of the "-modified" file?.. Just keep patching the original file avoiding this redundancy.
@TrebleWing
@TrebleWing 3 ай бұрын
If the game updates it can erase all your work.
@anispinner
@anispinner 3 ай бұрын
Then save it *after* you done with it, not each of your 99 iterations.
@riashadibnekaiser8629
@riashadibnekaiser8629 3 ай бұрын
Let's hack (or crack) denuvo DRM🤩
@thecooldudes69420
@thecooldudes69420 3 ай бұрын
Interesting.
@ModernityX
@ModernityX 3 ай бұрын
meow
@RhizGh037
@RhizGh037 3 ай бұрын
Not first
@CookieGamesHD
@CookieGamesHD 3 ай бұрын
:-)
@trxsyn
@trxsyn 3 ай бұрын
im so early bro
@nig3ldoug1as63
@nig3ldoug1as63 3 ай бұрын
I'm glad to hear, bro.
@pankoza3
@pankoza3 3 ай бұрын
Copyright
@LukeAvedon
@LukeAvedon 3 ай бұрын
I love dnSpyEx so very much.
@WhiteGroyper
@WhiteGroyper 3 ай бұрын
desktop icons not large enough, pass
@WolverineMKD
@WolverineMKD 3 ай бұрын
Cheaters/Hackers ruin gaming, as educational this is its more damaging than anything else. Edit: i take it back it might make more good than bad after some good explanation below in this comments comments.
@dedkeny
@dedkeny 3 ай бұрын
Salty people like you ruined the internet
@ThisIsJustADrillBit
@ThisIsJustADrillBit 3 ай бұрын
People understanding reverse engineering is more important for society than games having cheaters. I think the intention is that reversing games is a great way to attract smart people towards these kinds of skills more broadly.
@npc_tom
@npc_tom 3 ай бұрын
It also lets (beginner) game devs understand how a cheater/hacker might go about breaking their game, so I'd argue the educational benefits outweigh the potential damage.
@delofj
@delofj 3 ай бұрын
I cannot disagree more on that topic I think, things like this, is the reason why modding in games exists, and the modding community can be really huge for a game And it can even keep some games alive because its servers are done and the publisher no longer cares about it
@stage6fan475
@stage6fan475 3 ай бұрын
The cheaters/hackers are light years beyond this already, so don't worry.
@DrivingStubby
@DrivingStubby 3 ай бұрын
44119 Emmanuel Key
Intro to Game Hacking: DEFCON 32
30:14
John Hammond
Рет қаралды 95 М.
Hacking Windows TrustedInstaller (GOD MODE)
31:07
John Hammond
Рет қаралды 798 М.
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН
СИНИЙ ИНЕЙ УЖЕ ВЫШЕЛ!❄️
01:01
DO$HIK
Рет қаралды 3,3 МЛН
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19
HACKING UNITY GAMES (FOR NOOBS)
16:11
cazz
Рет қаралды 100 М.
Hacking ALL Levels in this Game!
43:36
John Hammond
Рет қаралды 47 М.
Why My Summer Game Dev Project Didn’t Go as Planned
5:26
How to Hack il2cpp Games - MelonLoader Tutorial
8:35
Guided Hacking
Рет қаралды 105 М.
How to Crack Software (Reverse Engineering)
16:16
Eric Parker
Рет қаралды 776 М.
how is this hacking tool legal?
11:42
Low Level
Рет қаралды 431 М.
Learn Reverse Engineering (for hacking games)
7:26
cazz
Рет қаралды 1,1 МЛН
The Insane World Of North Korean Hackers
19:19
Cipher
Рет қаралды 1 МЛН
How to Use dnSpy to Reverse Engineer Unity Games [ TUNIC ]
31:11
Stephen Chapman
Рет қаралды 64 М.
Permission to Hack You: Illicit Consent Grant Attack
26:32
John Hammond
Рет қаралды 58 М.
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН