Join VipMods site Today!

"Its' free and it takes less than 1 minute!"

Announcement

Collapse
No announcement yet.

[Source] PrimeDLL 2.1

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • [Source] PrimeDLL 2.1

    Changes done, automatically checks that the PC is able to use this
    Using TargetVer of C++
    Added a better API Handle.
    Supports exported functions for the DLL application.

    Code:
    #pragma once
    
    // The following macros define the minimum required platform.  The minimum required platform
    // is the earliest version of Windows, Internet Explorer etc. that has the necessary features to run 
    // your application.  The macros work by enabling all features available on platform versions up to and 
    // including the version specified.
    
    // Modify the following defines if you have to target a platform prior to the ones specified below.
    // Refer to MSDN for the latest info on corresponding values for different platforms.
    #ifndef WINVER                          // Specifies that the minimum required platform is Windows Vista.
    #define WINVER 0x0600           // Change this to the appropriate value to target other versions of Windows.
    #endif
    
    #ifndef _WIN32_WINNT            // Specifies that the minimum required platform is Windows Vista.
    #define _WIN32_WINNT 0x0600     // Change this to the appropriate value to target other versions of Windows.
    #endif
    
    #ifndef _WIN32_WINDOWS          // Specifies that the minimum required platform is Windows 98.
    #define _WIN32_WINDOWS 0x0410 // Change this to the appropriate value to target Windows Me or later.
    #endif
    
    #ifndef _WIN32_IE                       // Specifies that the minimum required platform is Internet Explorer 7.0.
    #define _WIN32_IE 0x0700        // Change this to the appropriate value to target other versions of IE.
    #endif
    Code:
    // stdafx.h : include file for standard system include files,
    // or project specific include files that are used frequently, but
    // are changed infrequently
    //
    
    #pragma once
    
    #include "targetver.h"
    
    #define WIN32_LEAN_AND_MEAN             // Exclude rarely-used stuff from Windows headers
    // Windows Header Files:
    #include <windows.h>
    
    
    
    // TODO: reference additional headers your program requires here
    Code:
    // stdafx.cpp : source file that includes just the standard includes
    // dll.pch will be the pre-compiled header
    // stdafx.obj will contain the pre-compiled type information
    
    #include "stdafx.h"
    
    // TODO: reference any additional headers you need in STDAFX.H
    // and not in this file
    Code:
    /*Class.h
    
        Project:    PrimeDll 2.1
        Author:     Str1k3r21
        Date:       18/1/2014
    
        Credits:    All to Cobra for the Class, I just put it in this dll and added Teleport hack for everyone to use.
                    Visit www.VIPMODS.com for more tutorials.
    
        Info:        Add More Functions on this page, if you forget to define it here.
    				 It wont compile. :)
    
    */
    
    class cClass
    {
            public:
                  //everything you want to use outside of your class happens here
                   cClass( void );    //constructor
                 ~cClass( );          //deconstructor
                   
                   void UnknownHack(  ); 
                   void Teleport(  );
                   void NoSpread (  );
                    //add more to your class here
    
           private:
                 //anything used private in your class goes here
    };
    Code:
    /* Class.cpp
    
        Project:    PrimeDll 2.1
        Author:     Str1k3r21
        Date:       18/1/2014
    
        Credits:    All to Cobra for the Class, I just put it in this dll for everyone to use.
                    Visit www.VIPMODS.com for more tutorials.
    
        Info:       You may add more hacks by doing , void cClass::Feature(  ){ } then Declaring it in Class.h.
                    To use, put this at the top ..  cClass Hacks; (I already did it for you). Then when you want to 
                    use a feature, do this: Hacks.Feature(  ); << -- Change it to ur feauture.
    */
    
    #include "stdafx.h"
    #include <windows.h>
    #include <stdio.h>
    #include <stdlib.h>
    #include <fstream>
    #include "class.h"
    //#include anything else needed//
    
    
    //==================//
    cClass::cClass( void )
    {
      //constructor of our class
    }
    
    cClass::~cClass(  )
    {
      //deconstructor
    }
    //==================//
    
    
    //==================//
    void cClass::UnknownHack(  )
    {
      // Your Stamina code here
    }
    
    // Change These Addresses & Offsets according to what game your hacking //
    #define PTR_PLAYER 0x000000
    #define OFS_X 0x0000
    #define OFS_Y 0x0000
    #define OFS_Z 0x0000
    
    float posiX;
    float posiY;
    float posiZ; 
    
    void cClass::Teleport(  )
    {
        DWORD dwPlayerPtr = *(DWORD*)PTR_PLAYER;
        if(dwPlayerPtr != 0)
        {
            if (GetAsyncKeyState(VK_F5)) // Press F5 Key To Save X,Y,Z.
            {
                posiX = *(float*)(dwPlayerPtr + OFS_X);
                posiY = *(float*)(dwPlayerPtr + OFS_Y);
                posiZ = *(float*)(dwPlayerPtr + OFS_Z);
            }
    
            if (GetAsyncKeyState(VK_F6)) // Press F6 Key To Teleport To X,Y,Z.
            {
                *(float*)(dwPlayerPtr + OFS_X) = posiX;
                *(float*)(dwPlayerPtr + OFS_Y) = posiY;
                *(float*)(dwPlayerPtr + OFS_Z) = posiZ;
            }
        }
    }
    
    void cClass::NoSpread(  )
    {
      // Your No Spread code here
    }
    
    //add more to your class here
    //==================//
    Code:
    // dllmain.cpp : Defines the entry point for the DLL application.
    #include "stdafx.h"
    /*
        Project:    PrimeDll 2.1
        Author:     Str1k3r21
        Date:       18/1/2014
    
        Credits:    Str1k3r21 
    
        Info:       What's the difference ? Added better control on the API of this DLL.
    				Allowing you to use it more efficiently.
    */
    
    #include <windows.h>
    #include <stdio.h>
    #include <stdlib.h>
    #include <fstream>
    #include "class.h"
    cClass Hacks; // You may change this but for this tutorial, 
    			  // it will remain as .. Hacks.
    
    bool run1 = TRUE;
    
    int pThread() // Thread //
    {    
        if(run1)
        {
            //  Create some sort of last preparation when attached to process and ran sucessfully.
    		//  ( search signatures / credits box / etc .. )
            run1 = FALSE; // Added for none repeating itself over and over, causing lag.
        }
    
        if(GetAsyncKeyState(VK_INSERT)&1) // Press Insert to ( Activate / Deactivate ) Features
        {
            //Hacks Activated
            Hacks.UnknownHack(  ); // Feature  UnknownHack	Activated
            Hacks.Teleport	 (  ); // Feature  Teleport		Activated
            Hacks.NoSpread	 (  ); // Feature  No Spread	Activated
    
        Sleep(2); // Reduces Lagg
        }
        else // Press Insert again to De-Activate hacks
        {
            //Hacks De-Activated
    
        Sleep(2); // Sleep a bit - Reduces Lagg
        }
    
        return 0;
    }
    
    
    BOOL APIENTRY DllMain( HMODULE hModule,
                           DWORD  ul_reason_for_call,
                           LPVOID lpReserved
    					 )
    {
    	DisableThreadLibraryCalls( hModule );
    
    	switch (ul_reason_for_call)
    	{
    	case DLL_PROCESS_ATTACH:
    		{
    		MessageBoxA( NULL, " Process Attached ", " Process Attached ", MB_OK );
    		CreateThread( NULL, NULL,(LPTHREAD_START_ROUTINE)pThread, NULL, NULL, NULL);
    		}
    
    	case DLL_THREAD_ATTACH: 
    		// If needed, then use it. 
    		// Most likely used for some sort of checking before activating the features.
    		// Ex: GuidTech System, Bypass, Detours, and all sort of things.
    
    	case DLL_THREAD_DETACH:
    		// Used to see if the process detache's your thread.
    		// Very Usefull.
    
    	case DLL_PROCESS_DETACH:
    		MessageBoxA( NULL, " Process Detached ", " Process Detached ", MB_OK );
    		break;
    	}
    	return TRUE;
    }
    Code:
    // dll.cpp : Defines the exported functions for the DLL application.
    //
    
    #include "stdafx.h"
    Code:
    // dllmain.cpp : Defines the entry point for the DLL application.
    #include "stdafx.h"
    /*
        Project:    PrimeDll 2.1
        Author:     Str1k3r21
        Date:       18/1/2014
    
        Credits:    Str1k3r21 
    
        Info:       What's the difference ? Added better control on the API of this DLL.
    				Allowing you to use it more efficiently.
    */
    
    #include <windows.h>
    #include <stdio.h>
    #include <stdlib.h>
    #include <fstream>
    #include "class.h"
    cClass Hacks; // You may change this but for this tutorial, 
    			  // it will remain as .. Hacks.
    
    bool run1 = TRUE;
    
    int pThread() // Thread //
    {    
        if(run1)
        {
            //  Create some sort of last preparation when attached to process and ran sucessfully.
    		//  ( search signatures / credits box / etc .. )
            run1 = FALSE; // Added for none repeating itself over and over, causing lag.
        }
    
        if(GetAsyncKeyState(VK_INSERT)&1) // Press Insert to ( Activate / Deactivate ) Features
        {
            //Hacks Activated
            Hacks.UnknownHack(  ); // Feature  UnknownHack	Activated
            Hacks.Teleport	 (  ); // Feature  Teleport		Activated
            Hacks.NoSpread	 (  ); // Feature  No Spread	Activated
    
        Sleep(2); // Reduces Lagg
        }
        else // Press Insert again to De-Activate hacks
        {
            //Hacks De-Activated
    
        Sleep(2); // Sleep a bit - Reduces Lagg
        }
    
        return 0;
    }
    
    
    BOOL APIENTRY DllMain( HMODULE hModule,
                           DWORD  ul_reason_for_call,
                           LPVOID lpReserved
    					 )
    {
    	DisableThreadLibraryCalls( hModule );
    
    	switch (ul_reason_for_call)
    	{
    	case DLL_PROCESS_ATTACH:
    		{
    		MessageBoxA( NULL, " Process Attached ", " Process Attached ", MB_OK );
    		CreateThread( NULL, NULL,(LPTHREAD_START_ROUTINE)pThread, NULL, NULL, NULL);
    		}
    
    	case DLL_THREAD_ATTACH: 
    		// If needed, then use it. 
    		// Most likely used for some sort of checking before activating the features.
    		// Ex: GuidTech System, Bypass, Detours, and all sort of things.
    
    	case DLL_THREAD_DETACH:
    		// Used to see if the process detache's your thread.
    		// Very Usefull.
    
    	case DLL_PROCESS_DETACH:
    		MessageBoxA( NULL, " Process Detached ", " Process Detached ", MB_OK );
    		break;
    	}
    	return TRUE;
    }



  • #2

    scusmy i don't have stend but is this hack for the game??
    if my make this hack this work in pb italy??

    Comment

    • #3

      Originally posted by riky99 View Post
      scusmy i don't have stend but is this hack for the game??
      if my make this hack this work in pb italy??
      This just helps you make a dynamic link library file. Does nothing special. You need to implement your own code for this to do something.



      Comment

      Working...
      X
      Back to Top