How to hook functions (MinHook, x86 and x64)

  Рет қаралды 46,187

CasualGamer

CasualGamer

Күн бұрын

Пікірлер
@jeffylikespugs
@jeffylikespugs 3 жыл бұрын
This channel is a gem. Keep up the videos
@FirstName-nf4fx
@FirstName-nf4fx Жыл бұрын
@10:14 did you ever make a video explaining how to reverse functions?
@zyzzfh
@zyzzfh 3 жыл бұрын
sheesh u just keep uploading tysm I love these vids u explain well
@zataritamods7499
@zataritamods7499 2 жыл бұрын
Question: when hooking the function from a memory address, I don't see you get the modules base address. Does min hook handle this for you when it hooked the function? Should I use the relative address?
@Pro_Lab
@Pro_Lab Жыл бұрын
nope. because its an internal c++ hack, the dll is in the process itself means we're the processor we can just use the address without a problem. he made a video about that self loading dll: kzbin.info/www/bejne/q6awmGp5mq95Z80
@brianneish1769
@brianneish1769 3 жыл бұрын
Can you create a vid on how to reverse and call functions. I am having a hard time understanding a few things. Btw great vid.
@casualgamer1791
@casualgamer1791 3 жыл бұрын
will do
@_ntds
@_ntds 3 жыл бұрын
That's what i was waiting for! Great job, m8! Keep it up!
@freezieundso5135
@freezieundso5135 2 жыл бұрын
__asm doesn't work for x64 sadly. Does someone know an alternative? Edit: look up rtlcapturecontext
@Squirrelies1
@Squirrelies1 11 ай бұрын
Afaik it works if you use gcc/g++ instead of MSVC.
@crapyguy1234
@crapyguy1234 3 жыл бұрын
woo hoo, another video! Keep the great work up!!!
@casualgamer1791
@casualgamer1791 3 жыл бұрын
ty :) I'll try to not slack for too long before the next one
@Bruiserjoe
@Bruiserjoe 3 жыл бұрын
You always drop banger videos
@casualgamer1791
@casualgamer1791 3 жыл бұрын
thanks m8
@ruinenlust_
@ruinenlust_ Жыл бұрын
This doesn't work - first I found out I couldn't call AllocConsole from my dll, my debug prints showed that, but after removing that the code says everything is fine even though _nothing_ hints at the function being hooked.
@chxnt4202
@chxnt4202 2 жыл бұрын
Hello great video as always could you please explain what the last parameter of create hook does?
@Gamer-xk8bk
@Gamer-xk8bk Жыл бұрын
can you also add new character in the game and add code to it using hooking
@hyjarion6972
@hyjarion6972 2 жыл бұрын
Hi! Thank you for this video! Does this library supports Trampoline method of hooking functions?
@casualgamer1791
@casualgamer1791 2 жыл бұрын
Thats the one and only thing this lib supports ;)
@hyjarion6972
@hyjarion6972 2 жыл бұрын
@@casualgamer1791 Ah very good thanks :D
@SyntexKavindu
@SyntexKavindu 2 жыл бұрын
Bro How to fix Linker Tools Error LNK1181 can’t open file libminhook.lib
@idk--7443
@idk--7443 3 жыл бұрын
Glad your back!
@casualgamer1791
@casualgamer1791 3 жыл бұрын
was I gone? ^^ one month since the last legit video.. not too bad for me :P
@idk--7443
@idk--7443 3 жыл бұрын
@@casualgamer1791 Glad your posting regularly again =)
@joelbloxx3647
@joelbloxx3647 3 жыл бұрын
Ahh finally fresh video
@ProxyTvr
@ProxyTvr 2 жыл бұрын
can i hook a function which not window function ?
@casualgamer1791
@casualgamer1791 2 жыл бұрын
certainly, "just" gotta figure out the location and calling convention
@ProxyTvr
@ProxyTvr 2 жыл бұрын
@@casualgamer1791 MinHook can hooking internal functions in C# ?
@topeque6993
@topeque6993 3 жыл бұрын
Keep going i love your videos :3
@SpartaVandros
@SpartaVandros 3 жыл бұрын
Hey, not sure if your still active. Could you please provide some insight on hooking and return values from registers on a 32-Bit game. I'd really appreciate it.
@casualgamer1791
@casualgamer1791 3 жыл бұрын
I am and I will. Just very buissy atm ;(
@SpartaVandros
@SpartaVandros 3 жыл бұрын
@@casualgamer1791 Hopefully it's soon. I'm trying to finish a cheat I'm creating but have no idea how to go about hooking externally. For me the entity is in the register EDX when I debug. Anyways though I been researching and going through open source code but, It's just not clicking in my brain at the moment. Hopefully it will come to me very soon.
@casualgamer1791
@casualgamer1791 3 жыл бұрын
Gl m8. You can always ask for help on the discord server :)
@samansamani4477
@samansamani4477 2 жыл бұрын
Hey, thank you for great tutorials, love em. but can you please consider to create one that teach us how to find certain function that we want to hook? thank you.
@coldblackice
@coldblackice 2 жыл бұрын
Great idea!
@casualgamer1791
@casualgamer1791 2 жыл бұрын
I'll make at least an introduction into that. But be warned a lot of practice goes into reversing which realy can not be replaced by watching tutorials ^^
@samansamani4477
@samansamani4477 2 жыл бұрын
@@casualgamer1791 thank you, yes I know, but we at least need to know what to practice... 😅 so giving us an starting point would be awsome.
@mateokladaric
@mateokladaric 3 жыл бұрын
What about mid function hooks.. can Minhook do that too?
@casualgamer1791
@casualgamer1791 3 жыл бұрын
I do not think it is intended for that purpose no but you could try it just passing the pointer to the location inside the function instead of the beginning
@mateokladaric
@mateokladaric 3 жыл бұрын
@@casualgamer1791 That is exactly my plan, the only problem is the calling convention, do I make it the same as the start of the func or because it is the middle it should change maybe??
@mateokladaric
@mateokladaric 3 жыл бұрын
@darwin because calling arguments on the start of the hook of a func, set registries to be X Y Z... through the func the registry changes and now you are telling me that I can pull a fast call with arguments in the middle of no where
@mateokladaric
@mateokladaric 3 жыл бұрын
@darwin i didnt ask if the impossible was possible in my question i just asked for a possible way
@chxnt4202
@chxnt4202 Жыл бұрын
@@mateokladaric i know this comment is a year old but you can do a midfunction hook by doing everything in this video except your detour function must be a declspec naked with no paramateres and the type def for the function should be a void return type with no pararmetres one final reaquirment is inside the detour function you must use inline assembly and do a jump(jmp) to the orignal function pointer
@Frag.
@Frag. 3 жыл бұрын
Thank you very much man ! You are the best
@casualgamer1791
@casualgamer1791 3 жыл бұрын
:)
@_____666______
@_____666______ 2 жыл бұрын
make full hooking tutorial for beginners. thanks in advance
@richsosa5045
@richsosa5045 3 жыл бұрын
Ngl your pretty good at teaching when I’m done with learning cpp I might have to make videos like you
@casualgamer1791
@casualgamer1791 3 жыл бұрын
tyvm :) both my parents are teachers guess I learned a bit from them
@RandomRepository1024
@RandomRepository1024 Жыл бұрын
dllinject failed. "MinHook.x86.dll", the system cannot find the specific file. ç.ç
@Pro_Lab
@Pro_Lab Жыл бұрын
don't make the same mistake as I did; instead of putting the lib and include folder in \source epos\TestDll I put them in \source epos\TestDll\TestDll
@Antonizz
@Antonizz 3 жыл бұрын
can you make one for directx 11 pls ?
@casualgamer1791
@casualgamer1791 3 жыл бұрын
Will do. Probably my next video
@vaka984
@vaka984 3 жыл бұрын
Thank you for your interesting videos. Could you record a video about how to use opencv to write a program that can be manually trained to recognize characters (letters). Let's say the symbol J is on the screen(it can be of different colors or sizes), you need to save it and at the next similar symbol, the program will recognize this symbol J and pressed the corresponding key?(for mini-games) (If, of course, I have clearly translated my thought through a translator, and this topic may be interesting to you and the audience).
@vaka984
@vaka984 3 жыл бұрын
(Example, not advertising) kzbin.info/www/bejne/p5OWhqiHp62gmLs
@casualgamer1791
@casualgamer1791 3 жыл бұрын
Interesting idea but i am not sure if opencv is the best library for that. Maybe tesseract?
@vaka984
@vaka984 3 жыл бұрын
Here I found: kzbin.info/www/bejne/eXyTgHabeLNssMk But this is designed for a ready-made database, and not training it in real time
@68fk
@68fk 3 жыл бұрын
Bro i have esp andlua can crack ?
@StefanoMerinoDeRui
@StefanoMerinoDeRui Ай бұрын
why visual studio? WHY. i was coding in vscode and now i have to code in visual studio? why do they make it like this. If someone knows how to do it in vscode would be apreciated. I was able to compile the .lib files, but because they need another libraries that vs include idk how to import them in vscode.
@emailgames1508
@emailgames1508 2 жыл бұрын
Still waiting for the how to reverse functions video :D
@casualgamer1791
@casualgamer1791 2 жыл бұрын
Still learning myself. Most of it is practice. The general theroy aint that deep
@IntoTechMods
@IntoTechMods 3 жыл бұрын
♥️Great Dude ;)
@papst5
@papst5 3 жыл бұрын
nicely explained ty
@Ambroxan
@Ambroxan 3 жыл бұрын
Discord link expired
@casualgamer1791
@casualgamer1791 3 жыл бұрын
fixed
@VirtualMatterTails
@VirtualMatterTails 3 жыл бұрын
thanks easy to explanation
@cuongpt5556
@cuongpt5556 3 жыл бұрын
Make tutorial Edit Packets Game Online please Bro. Thank you
@aname0
@aname0 2 жыл бұрын
10:24 memo
@andris1337
@andris1337 3 жыл бұрын
another banger
@yousafkhan481
@yousafkhan481 3 жыл бұрын
Bro make a video in gameloop emulator hooking
@boredduck231
@boredduck231 3 жыл бұрын
;-; you were to late i learned minhook like 2 days ago it was a pain
@casualgamer1791
@casualgamer1791 3 жыл бұрын
unfortunate timing ^^
@boredduck231
@boredduck231 3 жыл бұрын
ikr
@unperson37
@unperson37 3 жыл бұрын
Please make bot for clash of clans to android
@bbcbshdbeijxhs50
@bbcbshdbeijxhs50 3 жыл бұрын
Will this allow me to inject into warzone?
@alieeeeennnnnn
@alieeeeennnnnn 3 жыл бұрын
epic stuff
Learn Reverse Engineering (for hacking games)
7:26
cazz
Рет қаралды 1,1 МЛН
C++ Internal Trampoline Hook Tutorial - OpenGL Hook
26:58
Guided Hacking
Рет қаралды 57 М.
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 19 МЛН
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 700 М.
Dear Game Developers, Stop Messing This Up!
22:19
Jonas Tyroller
Рет қаралды 761 М.
How GitHub's Database Self-Destructed in 43 Seconds
12:04
Kevin Fang
Рет қаралды 1 МЛН
Why Are Open Source Alternatives So Bad?
13:06
Eric Murphy
Рет қаралды 710 М.
I Scraped the Entire Steam Catalog, Here’s the Data
11:29
Newbie Indie Game Dev
Рет қаралды 515 М.
You Should Learn C++ (for hacking games)
6:11
cazz
Рет қаралды 466 М.
Python laid waste to my C++!
17:18
Sheafification of G
Рет қаралды 135 М.
Unity Game Hacking with dnSpy
14:15
John Hammond
Рет қаралды 62 М.
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 19 МЛН