Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Nostale > Nostale Hacks, Bots, Cheats & Exploits
You last visited: Today at 10:48

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Tut] Easy way to make DLL hack [C++]

Discussion on [Tut] Easy way to make DLL hack [C++] within the Nostale Hacks, Bots, Cheats & Exploits forum part of the Nostale category.

Reply
 
Old   #1
 
ernilos's Avatar
 
elite*gold: 20
Join Date: Jan 2012
Posts: 766
Received Thanks: 645
[Tut] Easy way to make DLL hack [C++]

Hi elitepvpers! I gonna show you all how make a simple Hack for NosTale.

Requeriments:
  1. Visual studio
  2. DLL Injector(Like Cheat Engine)
  3. brain.exe
Pointers:

Note: That are pointers in CE, look for good pointers
I will use noDelay hack.
Steps:
  1. Run Visual Studio, then click New Project
  2. C++ > Win32 > Win32 Project
  3. After Click Ok, in next windows Click in Next >
  4. Choose DLL, and check Empty Project. Click Finish
  5. Add 2 files: MainDLL.cpp , nosHack.cpp
  6. Now we need add some code.
    nosHack.cpp:
    Code:
    #include <Windows.h>
    //Pointers
    // [ES]noDelay
    #define delay_addr 0x007D1318
    #define delay_offset 0xC20
    
    //Function
    void NoDelay()
    {
    	*(DWORD*)(*(DWORD*) delay_addr + delay_offset) = 0; //In that line, i set 0 to pointer(base + offset)
    }
    //General Thread void
    void Start()
    {
    	while(true)//loop
    	{
    		NoDelay();//Do function no delay
    		Sleep(1);
    	}
    }
    MainDLL.cpp
    Code:
    #include <Windows.h>
    extern void Start(); //Adding reference To Start
    BOOL WINAPI DllMain ( HMODULE hModule, DWORD dwReason, LPVOID lpvReserved) //main code
    {
        switch ( dwReason ) { // reason of open dll
            case DLL_PROCESS_ATTACH: // inject
    		DisableThreadLibraryCalls(hModule); 
    	    CreateThread(0, 0, (LPTHREAD_START_ROUTINE)Start, 0, 0, 0); // Start Start() thread		
    	    MessageBoxA (NULL,"No delay Hack Active!","NoDelay | Spain Server ",MB_OK); // Message of dll injected
                break;            
            case DLL_PROCESS_DETACH:
    	         break;
            case DLL_THREAD_ATTACH:
                break;
            case DLL_THREAD_DETACH:
                break;
        }
        return TRUE;
    }
  7. Now Click or press F5
  8. Go to Folder of project, and search the DLL
  9. Inject your dll!

ernilos is offline  
Thanks
4 Users
Old 12/14/2012, 17:33   #2

 
Mr.Tr33's Avatar
 
elite*gold: 2778
Join Date: Feb 2012
Posts: 3,527
Received Thanks: 1,044
Thanks, but what does each line?
It's not a tutorial if you don't explain ech step
Mr.Tr33 is offline  
Old 12/14/2012, 18:14   #3
 
ernilos's Avatar
 
elite*gold: 20
Join Date: Jan 2012
Posts: 766
Received Thanks: 645
Quote:
Originally Posted by Mr.Tr33 View Post
Thanks, but what does each line?
It's not a tutorial if you don't explain ech step
MA.
Ok, i will edit and explain..
ernilos is offline  
Old 12/14/2012, 19:10   #4
 
elite*gold: 0
Join Date: Apr 2010
Posts: 2,832
Received Thanks: 4,152
Yeah WarRock style.
Copy n Paste, look at my i'm a Haxx0r!!1111
Elektrochemie is offline  
Thanks
6 Users
Old 12/14/2012, 22:13   #5
 
ernilos's Avatar
 
elite*gold: 20
Join Date: Jan 2012
Posts: 766
Received Thanks: 645
Quote:
Originally Posted by Elektrochemie View Post
Yeah WarRock style.
Copy n Paste, look at my i'm a Haxx0r!!1111
I don't know english well to make a post, i based on that post -.-
MA.
ernilos is offline  
Old 08/04/2014, 05:11   #6
 
elite*gold: 0
Join Date: Apr 2014
Posts: 1
Received Thanks: 0
wow i really didnt understand at all..how to mak design like vb..btw im new to c++
jinhakusho is offline  
Old 08/04/2014, 21:56   #7
 
MaxMilimeter's Avatar
 
elite*gold: 0
Join Date: Jul 2010
Posts: 422
Received Thanks: 164
Don't fckn use Visual Studio.
Get Embarcaderos c++ Xe6
MaxMilimeter is offline  
Old 08/05/2014, 04:43   #8



 
IceTrailer's Avatar
 
elite*gold: 150
Join Date: Sep 2010
Posts: 2,070
Received Thanks: 820
How to open an added form?


C++/CLI is not mine ..
IceTrailer is offline  
Old 08/10/2014, 13:26   #9
 
elite*gold: 0
Join Date: Dec 2011
Posts: 367
Received Thanks: 199
Start up your VC++, Go to File > New Project > Win32 > Win32 Project
Give it a name "MyDLL" for this tutorial, Click Next. For Application Type
set it to DLL and Additional Options: Check "Empty Project"

Now you should See 3 folders in your solution explorer.

Right Click on "Source Files" and Add > New Item > Code > C++ File (.cpp)
give it a name "MainDLL".

inside "MainDLL.cpp" copy and paste this code in

Code:
#include <windows.h>
extern int Main(); //tells compiler that function Main is located somewhere else.

void WINAPI MainThread( )
{
    //This function will run when we attach the DLL to the Game//
    Main(); //located in Form1.cpp, This will load the form and display it
   //We will Create our Main() function later. 

}

BOOL WINAPI DllMain ( HMODULE hModule, DWORD dwReason, LPVOID lpvReserved )
{
    switch ( dwReason ) {
        case DLL_PROCESS_ATTACH:

            DisableThreadLibraryCalls(hModule);

            if ( CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)MainThread, NULL, 0, NULL) == NULL ) {
                return FALSE;
            }
            break;
            
        case DLL_PROCESS_DETACH:
            break;

        case DLL_THREAD_ATTACH:
            break;

        case DLL_THREAD_DETACH:
            break;
    }
    return TRUE;
}
Now that you have the code in your MainDLL time to make a form.
Right Click on "Header Files" and Add > New Item > UI > Windows Form
Give it a name "Form1"

You should get an Alert, Click Yes and wait few sec untill the code is created for the form

Now we Create our Main() Function which is being called when DLL is injected in the game

copy and paste this code in Form1.cpp after your #include's

Code:
//MyDLL is the name of your Project. If your Project is called 
//MapleHaxV1 you'll need to change MyDLL to using namespace MapleHaxV1

using namespace MyDLL; 

[STAThreadAttribute]

int Main()
{
    // Enabling Windows XP visual effects before any controls are created
    Application::EnableVisualStyles();
    Application::SetCompatibleTextRenderingDefault(false); 

    // Create the main window and run it
    Application::Run(gcnew Form1()); //Form1 is the name of the form created. 
    //if named different replace Form1 With the right form name.
    return 0;
}
If you go back to your "MainDLL.cpp" and look at the code,
after DLL_PROCESS_ATTACH we are creating a thread that will call the "Main" function. and that function is located in Form1.cpp.

After all of that go to
Build > Build Solution (F7 shortcut)

Go to My Documents > Visual Studio 2008 > Projects > MyDLL > Debug
and you'll have your MyDLL.dll there.

Use an Injector and inject it into maplestory.
If you see a window popup then tap your self on the sholder. because you just made your 1st real DLL!

Q & A
Why not just include Form1.cpp in MainDLL.cpp?
Well that has to do with managed and unmanaged code.
in Managed code you can use all functions from the managed framework.
.NET
your form and form1.cpp are being compiled with the /clr which have full access to the .NET framework, but MainDLL doesnt.

There might be a way to make it work but heck this is much easier IMO

Tutorial by:
Kingrap is offline  
Old 08/10/2014, 20:43   #10
 
ernilos's Avatar
 
elite*gold: 20
Join Date: Jan 2012
Posts: 766
Received Thanks: 645
I'm getting embarrassing of this thread...
ernilos is offline  
Old 08/13/2014, 14:08   #11
 
elite*gold: 0
Join Date: Dec 2011
Posts: 367
Received Thanks: 199
you have broken a door already open xD
Kingrap is offline  
Reply


Similar Threads Similar Threads
Hott.. !! Make Easy Ninja Saga Trainer [Hack Tool]
09/25/2012 - Facebook - 21 Replies
Don't belive me if something wrong in this thread, If you Belive me, Come On : -Removed- Tutorial Make Trainerz All Gamez Like Ninja Saga or Etc - YouTube Enjoy !
[REQUEST] Fragment (make it easy or hack)
02/18/2010 - Grand Chase Philippines - 27 Replies
Can you make or post here your easy fragment (scimitar for lass) or fragment hack.



All times are GMT +2. The time now is 10:48.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.