CabConModding
Facebook
Twitter
youtube
Discord
Contact us
RSS
Menu
CabConModding
Home
New
Top
Premium
Rules
FAQ - Frequently Asked Questions
Games
Fornite
Call of Duty: Black Ops 3
Clash of Clans
Grand Theft Auto 5
Apex Legends
Assassin’s Creed Origins
Forums
Premium
Latest posts
What's new
Latest posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Log in
Register
What's new
Premium
Latest posts
Menu
Log in
Register
Navigation
Install the app
Install
More options
Dark Theme
Contact us
Close Menu
Forums
Gaming
Call of Duty Classics
Call of Duty: Black Ops 2
Call of Duty: Black Ops 2 Mods and Scripts
Call of Duty: Black Ops 2 Scripts
How to make a DLL hack for BO2
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Hue" data-source="post: 2149" data-attributes="member: 925"><p><strong>This is a tutorial on how to make a dll hack for BO2 or it could be transfered to any other PC game but you need the offsets.</strong></p><p><strong></strong></p><p>Step 1:</p><p>Image</p><p>[spoiler]</p><p><img src="http://i.imgur.com/YZPfOpc.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /> </p><p>[/spoiler]</p><p>Create a new project in Visual Studio (You Can Use Any Visual Studio)</p><p>"File" > "New" > "Project" </p><p></p><p>Step 2:</p><p>Image</p><p>[spoiler]</p><p><img src="http://i.imgur.com/tzOf5ET.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /> </p><p>[/spoiler]</p><p>Click Visual C++ Then click Win32 Project and click "OK" </p><p></p><p>Step 3:</p><p>Image</p><p>[spoiler]</p><p><img src="http://i.imgur.com/SyqfSop.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /> </p><p>[/spoiler]</p><p>Click "DLL" > "Empty Project" > "Finish"</p><p></p><p>Step 4:</p><p>Image</p><p>[spoiler]</p><p><img src="http://i.imgur.com/go0e8X7.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /> </p><p>[/spoiler]</p><p>Right click "Source Files" > "Add" > "New Item"</p><p></p><p>Step 5:</p><p>Image</p><p>[spoiler]</p><p><img src="http://i.imgur.com/NU0zuUU.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /> </p><p>[/spoiler]</p><p>Then click C++ File and name it "main"</p><p></p><p>Step 6:</p><p>At the top put this</p><p>[spoiler]</p><p><span style="font-size: 12px">#include <windows.h></span></p><p><span style="font-size: 12px">#include <stdio.h></span></p><p><span style="font-size: 12px">#include <iostream></span></p><p><span style="font-size: 12px">#include <conio.h></span></p><p><span style="font-size: 12px">#include <string></span></p><p><span style="font-size: 12px">#include <fstream></span></p><p><span style="font-size: 12px">#include <float.h></span></p><p><span style="font-size: 12px">using namespace std;</span></p><p>[/spoiler]</p><p></p><p>Step 7:</p><p>Hit enter and add this</p><p>[spoiler]</p><p><span style="font-size: 12px">DWORD WINAPI LoopFunction( LPVOID lpParam )</span></p><p><span style="font-size: 12px">{</span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"> HANDLE Daddy = GetCurrentProcess();</span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"> cout << "<Hues BO2 Dll Hack>" << endl;</span></p><p><span style="font-size: 12px"> cout << endl;</span></p><p><span style="font-size: 12px"> cout << "F1 = Cycle Camos" << endl;</span></p><p><span style="font-size: 12px"> cout << "F2 = Toggle Recoil" << endl;</span></p><p><span style="font-size: 12px"> cout << "F3 = Toggle FPS" << endl;</span></p><p><span style="font-size: 12px"> cout << "F11 = Close Console" << endl;</span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"> while(1)</span></p><p><span style="font-size: 12px"> {</span></p><p><span style="font-size: 12px"> if(GetAsyncKeyState(VK_F11))</span></p><p><span style="font-size: 12px"> {</span></p><p><span style="font-size: 12px"> FreeConsole();</span></p><p><span style="font-size: 12px"> }</span></p><p><span style="font-size: 12px"> Sleep(1000);</span></p><p><span style="font-size: 12px"> return 0;</span></p><p><span style="font-size: 12px">}</span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px">For the "if(GetAsyncKeyState(VK_F11))" you can change the "VK_F11" to any key</span></p><p>[/spoiler]</p><p></p><p>Step 8:</p><p>At the bottom put this</p><p>[spoiler]</p><p><span style="font-size: 12px">BOOL WINAPI DllMain (HINSTANCE hModule, DWORD dwAttached, LPVOID lpvReserved)</span></p><p><span style="font-size: 12px">{</span></p><p><span style="font-size: 12px"> if (dwAttached == DLL_PROCESS_ATTACH)</span></p><p><span style="font-size: 12px"> {</span></p><p><span style="font-size: 12px"> CreateThread(NULL,0,&LoopFunction,NULL,0,NULL);</span></p><p><span style="font-size: 12px"> AllocConsole();</span></p><p><span style="font-size: 12px"> AttachConsole(ATTACH_PARENT_PROCESS);</span></p><p><span style="font-size: 12px"> system("Color A");</span></p><p><span style="font-size: 12px"> }</span></p><p><span style="font-size: 12px"> return 1;</span></p><p><span style="font-size: 12px">}</span></p><p>[/spoiler]</p><p></p><p>Step 9:</p><p>Heres how to add a mod</p><p>[spoiler]</p><p><img src="http://i.imgur.com/qOmNDxE.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /> </p><p></p><p><span style="font-size: 12px">bool Recxil = false;</span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px">BYTE RecoilOn[] = {0x75};</span></p><p><span style="font-size: 12px">BYTE RecoilOff[] = {0x74};</span></p><p></p><p><img src="http://i.imgur.com/Or8wIUo.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /> </p><p><span style="font-size: 12px">if(GetAsyncKeyState(VK_F2))</span></p><p><span style="font-size: 12px"> {</span></p><p><span style="font-size: 12px"> if(Recxil == false)</span></p><p><span style="font-size: 12px"> {</span></p><p><span style="font-size: 12px"> Recxil = true;</span></p><p><span style="font-size: 12px"> WriteProcessMemory(Daddy,(void*)(0x5C6219), &RecoilOff, 1, 0);</span></p><p><span style="font-size: 12px"> }</span></p><p><span style="font-size: 12px"> else</span></p><p><span style="font-size: 12px"> {</span></p><p><span style="font-size: 12px"> WriteProcessMemory(Daddy,(void*)(0x5c6219), &RecoilOn, 1, 0);</span></p><p><span style="font-size: 12px"> Recxil = false;</span></p><p><span style="font-size: 12px"> }</span></p><p><span style="font-size: 12px"> }</span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 15px">Again you can change the "VK_F2" to your liking</span></p><p>[/spoiler]</p><p> </p><p>Step 10:</p><p>Image</p><p>[spoiler]</p><p><img src="http://i.imgur.com/mtnune3.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /> </p><p>[/spoiler]</p><p>For this step all you do is click "Build" then "Rebuild Solution"</p><p></p><p>Step 11:</p><p>Image</p><p>[spoiler]</p><p><img src="http://i.imgur.com/rTkWNRj.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /> </p><p>[/spoiler]</p><p>The DLL should appear in the "Debug" folder, Now you just inject the dll while BO2 is running</p><p></p><p>How to inject the dll:</p><p>[spoiler]</p><p><img src="http://i.imgur.com/q9fZVFv.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /> </p><p>[/spoiler]</p><p>Lastly you click "Memory View" > "Tools" > "Inject DLL" and select the DLL</p><p></p><p></p><p style="text-align: center"><span style="font-size: 22px"><span style="color: #ff0000"><strong>Hope you enjoyed this tutorial!</strong></span></span></p> <p style="text-align: center"><span style="font-size: 18px"><span style="color: #ff0000"><strong>Download Cheat Engine: <a href="http://www.cheatengine.org" target="_blank">http://www.cheatengine.org</a></strong></span></span></p></blockquote><p></p>
[QUOTE="Hue, post: 2149, member: 925"] [B]This is a tutorial on how to make a dll hack for BO2 or it could be transfered to any other PC game but you need the offsets. [/B] Step 1: Image [spoiler] [IMG]http://i.imgur.com/YZPfOpc.png[/IMG] [/spoiler] Create a new project in Visual Studio (You Can Use Any Visual Studio) "File" > "New" > "Project" Step 2: Image [spoiler] [IMG]http://i.imgur.com/tzOf5ET.png[/IMG] [/spoiler] Click Visual C++ Then click Win32 Project and click "OK" Step 3: Image [spoiler] [IMG]http://i.imgur.com/SyqfSop.png[/IMG] [/spoiler] Click "DLL" > "Empty Project" > "Finish" Step 4: Image [spoiler] [IMG]http://i.imgur.com/go0e8X7.png[/IMG] [/spoiler] Right click "Source Files" > "Add" > "New Item" Step 5: Image [spoiler] [IMG]http://i.imgur.com/NU0zuUU.png[/IMG] [/spoiler] Then click C++ File and name it "main" Step 6: At the top put this [spoiler] [SIZE=3]#include <windows.h> #include <stdio.h> #include <iostream> #include <conio.h> #include <string> #include <fstream> #include <float.h> using namespace std;[/SIZE] [/spoiler] Step 7: Hit enter and add this [spoiler] [SIZE=3]DWORD WINAPI LoopFunction( LPVOID lpParam ) { HANDLE Daddy = GetCurrentProcess(); cout << "<Hues BO2 Dll Hack>" << endl; cout << endl; cout << "F1 = Cycle Camos" << endl; cout << "F2 = Toggle Recoil" << endl; cout << "F3 = Toggle FPS" << endl; cout << "F11 = Close Console" << endl; while(1) { if(GetAsyncKeyState(VK_F11)) { FreeConsole(); } Sleep(1000); return 0; } For the "if(GetAsyncKeyState(VK_F11))" you can change the "VK_F11" to any key[/SIZE] [/spoiler] Step 8: At the bottom put this [spoiler] [SIZE=3]BOOL WINAPI DllMain (HINSTANCE hModule, DWORD dwAttached, LPVOID lpvReserved) { if (dwAttached == DLL_PROCESS_ATTACH) { CreateThread(NULL,0,&LoopFunction,NULL,0,NULL); AllocConsole(); AttachConsole(ATTACH_PARENT_PROCESS); system("Color A"); } return 1; }[/SIZE] [/spoiler] Step 9: Heres how to add a mod [spoiler] [IMG]http://i.imgur.com/qOmNDxE.png[/IMG] [SIZE=3]bool Recxil = false; BYTE RecoilOn[] = {0x75}; BYTE RecoilOff[] = {0x74};[/SIZE] [IMG]http://i.imgur.com/Or8wIUo.png[/IMG] [SIZE=3]if(GetAsyncKeyState(VK_F2)) { if(Recxil == false) { Recxil = true; WriteProcessMemory(Daddy,(void*)(0x5C6219), &RecoilOff, 1, 0); } else { WriteProcessMemory(Daddy,(void*)(0x5c6219), &RecoilOn, 1, 0); Recxil = false; } } [/SIZE] [SIZE=4]Again you can change the "VK_F2" to your liking[/SIZE] [/spoiler] Step 10: Image [spoiler] [IMG]http://i.imgur.com/mtnune3.png[/IMG] [/spoiler] For this step all you do is click "Build" then "Rebuild Solution" Step 11: Image [spoiler] [IMG]http://i.imgur.com/rTkWNRj.png[/IMG] [/spoiler] The DLL should appear in the "Debug" folder, Now you just inject the dll while BO2 is running How to inject the dll: [spoiler] [IMG]http://i.imgur.com/q9fZVFv.png[/IMG] [/spoiler] Lastly you click "Memory View" > "Tools" > "Inject DLL" and select the DLL [CENTER][SIZE=6][COLOR=#ff0000][B]Hope you enjoyed this tutorial![/B][/COLOR][/SIZE] [SIZE=5][COLOR=#ff0000][B]Download Cheat Engine: [URL]http://www.cheatengine.org[/URL][/B][/COLOR][/SIZE][/CENTER] [/QUOTE]
Verification
Post reply
Forums
Gaming
Call of Duty Classics
Call of Duty: Black Ops 2
Call of Duty: Black Ops 2 Mods and Scripts
Call of Duty: Black Ops 2 Scripts
How to make a DLL hack for BO2
CabConModding is now on facebook! Check the latest Updates, the Site Status and much more now!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top