Results 1 to 11 of 11
  1. #1
    supercarz1991's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    North of Hell, South of Heaven
    Posts
    6,067
    Reputation
    323
    Thanks
    3,320
    My Mood
    Doh

    old hackshield source

    This is very old (~2005) but still might prove useful...something is wrong and i can't upload files ANYWHERE so i'm puttin it in code boxes
    Its not much. its prbably from 2005 or earlier, but its a good example of it. all this does is spit out a lib file after compile

    ImPDLL.cpp
    Code:
    // The following ifdef block is the standard way of creating macros which make exporting 
    // from a DLL simpler. All files within this DLL are compiled with the IMP2DLL_EXPORTS
    // symbol defined on the command line. this symbol should not be defined on any project
    // that uses this DLL. This way any other project whose source files include this file see 
    // IMP2DLL_API functions as being imported from a DLL, wheras this DLL sees symbols
    // defined with this macro as being exported.
    #ifdef IMP2DLL_EXPORTS
    #define IMP2DLL_API __declspec(dllexport)
    #else
    #define IMP2DLL_API __declspec(dllimport)
    #endif
    
    #define REGISTERED_MSG TEXT("IMP2_52A2FF2B_1AC2_4186_B05E_3338FF0801F9")
    
    // 위의 메시지의 WPARAM  값 
    #define ID_HACK_FIND	2
    #define ID_ERROR		3
    
    
    
    IMP2DLL_API BOOL	IP2_Initialize(HWND hWnd, CHAR *pszUserNo);
    IMP2DLL_API void	IP2_Finalize();
    IMP2DLL_API BOOL	IP2_GetHackName(char *pszBuff, DWORD dwBuffSize);
    IMP2DLL_API DWORD	IP2_GetLastError();
    IMP2DLL_API BOOL	IP2_ContinueCheck(BOOL bContinue);
    
    typedef BOOL	(*LIP2_INITIALIZE)(HWND hWnd, CHAR *pszUserNo);
    typedef void	(*LIP2_FINALIZE)(VOID);
    typedef BOOL	(*LIP2_GETHACKNAME)(char *pszBuff, DWORD dwBuffSize);
    typedef DWORD	(*LIP2_GETLASTERROR)(VOID);
    typedef BOOL	(*LIP2_CONTINUECHECK)(BOOL bContinue);
    
    enum {IP2_NOERROR = 0x1, IP2_INVALID_WINDOWHANDLE, IP2_FAIL_CREATETHREAD, 
    			IP2_FAIL_RESUMETHREAD, IP2_FAIL_INITIALIZE, IP2_BUFFER_SMALL, 
    			IP2_ALREADY_INITIALIZED};
    
    void HackSpeedCheckThread(void* arg);

    Hackshield.cpp
    Code:
    // HackShield.cpp: implementation of the HackShield class.
    //
    //////////////////////////////////////////////////////////////////////
    #include "Windows.h"
    #include "HackShield.h"
    #include "HashDB.h"
    
    CHashDB theHashDB;
    
    BOOL HS_ConnectDB( BYTE* ip )
    {
    	return theHashDB.ConnectDB( ip );
    }
    
    
    void HS_DisConnectDB( void )
    {
    	theHashDB.DisConnectDB();
    }
    
    
    int HS_LoadHashVal( BYTE* hashVal )
    {
    	return theHashDB.LoadHashVal( hashVal );
    }

    HackShield.h
    Code:
    // HackShield.h: interface for the HackShield class.
    //
    //////////////////////////////////////////////////////////////////////
    
    #if !defined(AFX_HACKSHIELD_H__CAFBB806_D007_4E5A_B361_BCD64FA11B8A__INCLUDED_)
    #define AFX_HACKSHIELD_H__CAFBB806_D007_4E5A_B361_BCD64FA11B8A__INCLUDED_
    
    #if _MSC_VER > 1000
    #pragma once
    #endif // _MSC_VER > 1000
    
    
    BOOL				HS_ConnectDB( BYTE* ip );
    void				HS_DisConnectDB(void);
    int					HS_LoadHashVal(BYTE* hashVal);
    
    
    
    #endif // !defined(AFX_HACKSHIELD_H__CAFBB806_D007_4E5A_B361_BCD64FA11B8A__INCLUDED_)

    HashDB.cpp
    Code:
    // HashDB.cpp: implementation of the CHashDB class.
    //
    //////////////////////////////////////////////////////////////////////
    
    //#include "stdafx.h"
    //#include "VerHash.h"
    #include "Windows.h"
    #include "HashDB.h"
    
    #ifdef _DEBUG
    #undef THIS_FILE
    static char THIS_FILE[]=__FILE__;
    #define new DEBUG_NEW
    #endif
    
    //////////////////////////////////////////////////////////////////////
    // Construction/Destruction
    //////////////////////////////////////////////////////////////////////
    
    CHashDB::CHashDB()
    {
    	m_hEnv = SQL_NULL_HENV;
    	m_hDbc = SQL_NULL_HDBC;
    	m_hStmt = SQL_NULL_HSTMT;
    
    	SQLRETURN retCode;
    		
    	retCode = SQLAllocHandle(SQL_HANDLE_ENV, SQL_NULL_HANDLE, &m_hEnv);
    
    	retCode = SQLSetEnvAttr(m_hEnv, SQL_ATTR_ODBC_VERSION,(SQLPOINTER)SQL_OV_ODBC3,SQL_IS_INTEGER);
    
    	retCode = SQLAllocHandle(SQL_HANDLE_DBC, m_hEnv, &m_hDbc);
    }
    
    CHashDB::~CHashDB()
    {
    	DisConnectDB();
    	if(m_hStmt != SQL_NULL_HSTMT) SQLFreeHandle(SQL_HANDLE_STMT, m_hStmt);
    	if(m_hDbc != SQL_NULL_HDBC) SQLFreeHandle(SQL_HANDLE_DBC, m_hDbc);
    	if(m_hEnv != SQL_NULL_HENV) SQLFreeHandle(SQL_HANDLE_ENV, m_hEnv);
    }
    
    BOOL CHashDB::ConnectDB(BYTE* ip)
    {
    //	ASSERT(m_hEnv != SQL_NULL_HENV);
    //	ASSERT(m_hDbc != SQL_NULL_HDBC);
    
    	SQLRETURN retCode;
    	                                    
    	SQLCHAR		ConnStr[256];
    	sprintf((char*)ConnStr, "DRIVER={SQL Server};SERVER=%s;UID=fsadmin;PWD=f$ei#L!;DATABASE=FreeStyle", ip);
    
    	SQLCHAR		ConnStrOut[256];	memset(ConnStrOut, 0, 256);
    	SQLSMALLINT cbConnStrOut = 0;
    
    	retCode = SQLDriverConnect(m_hDbc, NULL,
                      ConnStr,      // Input connect string
                      SQL_NTS,         // Null-terminated string
                      ConnStrOut,      // Address of output buffer
                      256,    // Size of output buffer
                      &cbConnStrOut,   // Address of output length
                      SQL_DRIVER_NOPROMPT);
    
    	if(retCode >= 0 ) return TRUE;
    
    	return FALSE;
    }
    
    BOOL CHashDB::ConnectDB(BYTE* dsn, BYTE* id, BYTE* pass)
    {	
    //	ASSERT(m_hEnv != SQL_NULL_HENV);
    //	ASSERT(m_hDbc != SQL_NULL_HDBC);
    
    	SQLRETURN retCode;
    	
    	retCode = SQLConnect(m_hDbc, dsn, SQL_NTS, id, SQL_NTS, pass, SQL_NTS);
                         
    /*                                        
    	SQLCHAR		ConnStr[256] = _T("DRIVER={SQL Server};SERVER=172.16.4.10;UID=fsadmin;PWD=f$ei#L!;DATABASE=FreeStyle");
    //	SQLCHAR		ConnStr[256] = _T("DSN=versionhash;UID=fsadmin;PWD=f$ei#L!");
    
    	SQLCHAR		ConnStrOut[256];	memset(ConnStrOut, 0, 256);
    	SQLSMALLINT cbConnStrOut = 0;
    
    	retCode = SQLDriverConnect(m_hDbc, NULL,
                      ConnStr,      // Input connect string
                      SQL_NTS,         // Null-terminated string
                      ConnStrOut,      // Address of output buffer
                      256,    // Size of output buffer
                      &cbConnStrOut,   // Address of output length
                      SQL_DRIVER_NOPROMPT);
    */
    	if(retCode >= 0 ) return TRUE;
    
    	return FALSE;
    }
    
    int CHashDB::AllocStmt()
    {
    	return SQLAllocHandle(SQL_HANDLE_STMT, m_hDbc, &m_hStmt);
    }
    
    int CHashDB::FreeStmt()
    {
    	if(m_hStmt == SQL_NULL_HSTMT) return 0;
    
    	int ret = SQLFreeHandle(SQL_HANDLE_STMT, m_hStmt);
    	m_hStmt = SQL_NULL_HSTMT;
    	return ret;
    }
    
    int CHashDB::LoadHashVal(BYTE* hashVal)
    {
    	SQLRETURN  retCode;
    	char szSQLStmt[1024];
    
    	sprintf(szSQLStmt, "SELECT HashVal FROM tblVersionHash");
    
    	AllocStmt();
    	
    	long IHash = 0;//HSCFLIB_SIZE_HASH;
    
    	retCode = ::SQLBindCol(m_hStmt, 1, SQL_BINARY, hashVal, HSCFLIB_SIZE_HASH, &IHash );
    	
    	retCode = SQLExecDirect(m_hStmt, (BYTE*)szSQLStmt, SQL_NTS);
    
    	retCode = SQLFetch(m_hStmt);
    	if(retCode != SQL_SUCCESS && retCode != SQL_SUCCESS_WITH_INFO) 
    	{
    		FreeStmt();
    		return retCode;
    	}
    	
    
    	FreeStmt();
    
    	return retCode;
    }
    
    int CHashDB::SaveHashVal(BYTE* hashVal)
    {
    	SQLRETURN  retCode;
    	char szSQLStmt[1024];
    
    	sprintf(szSQLStmt, "delete tblVersionHash INSERT INTO tblVersionHash(HashVal) VALUES (?)", hashVal);
    
    	AllocStmt();
    	
    	long IHash = HSCFLIB_SIZE_HASH;
    
    	retCode = ::SQLBindParameter(m_hStmt, 1, SQL_PARAM_INPUT, SQL_C_BINARY, SQL_BINARY,
    		HSCFLIB_SIZE_HASH, 1, hashVal, HSCFLIB_SIZE_HASH, &IHash );
    	
    	retCode = SQLExecDirect(m_hStmt, (BYTE*)szSQLStmt, SQL_NTS);
    
    	FreeStmt();
    	
    	return retCode;
    
    }
    HashDB.h
    Code:
    // HashDB.h: interface for the CHashDB class.
    //
    //////////////////////////////////////////////////////////////////////
    
    #if !defined(AFX_HASHDB_H__AA1865D4_3D8D_4197_8D10_2566D280B119__INCLUDED_)
    #define AFX_HASHDB_H__AA1865D4_3D8D_4197_8D10_2566D280B119__INCLUDED_
    
    #if _MSC_VER > 1000
    #pragma once
    #endif // _MSC_VER > 1000
    
    
    #include <stdio.h>
    #include <string.h>
    #include "Sql.h"
    #include "Sqlext.h"
    #include "Sqltypes.h"
    #include "Odbcss.h"
    
    
    #define HSCFLIB_SIZE_HASH 16
    
    class CHashDB  
    {
    public:
    	CHashDB();
    	~CHashDB();
    
    	BOOL	ConnectDB(BYTE* dsn, BYTE* id, BYTE* pass);
    	BOOL	ConnectDB(BYTE* ip);
    	void	DisConnectDB() { if(m_hDbc != SQL_NULL_HDBC) SQLDisconnect(m_hDbc); }
    
    	int		LoadHashVal(BYTE* hashVal);
    	int		SaveHashVal(BYTE* hashVal);
    
    private:
    	int AllocStmt();
    	int FreeStmt();
    
    	HENV m_hEnv;
    	HDBC m_hDbc;
    	HSTMT m_hStmt;	
    };
    
    #endif // !defined(AFX_HASHDB_H__AA1865D4_3D8D_4197_8D10_2566D280B119__INCLUDED_)
    KWall.cpp
    Code:
    // KWall.cpp: implementation of the CKWall class.
    //
    //////////////////////////////////////////////////////////////////////
    #include "Windows.h"
    #include "ImPDll.h"
    #include "KWall.h"
    
    //////////////////////////////////////////////////////////////////////
    // Construction/Destruction
    //////////////////////////////////////////////////////////////////////
    CKWall theKWall;
    
    CKWall::CKWall()
    {
    	m_uMsgRegistered = 0;
    }
    
    CKWall::~CKWall()
    {
    
    }
    
    int CKWall::StartUp( HWND hWnd, char* pUserName )
    {
    	m_uMsgRegistered = RegisterWindowMessage(REGISTERED_MSG);
    
    	LIP2_INITIALIZE     pInitialize;
    	LIP2_GETLASTERROR	pGetLastError;
    
    	TCHAR szFilePath[MAX_PATH];
    	GetSystemDirectory(szFilePath, MAX_PATH);
    	lstrcat(szFilePath, "\\");
    	lstrcat(szFilePath, "ImP2.DLL");
    	m_hDll = LoadLibrary(szFilePath);
    
    	if (m_hDll != NULL)  
    	{
    		pInitialize = (LIP2_INITIALIZE)GetProcAddress(m_hDll, "IP2_Initialize");
    		pFinalize = (LIP2_FINALIZE)GetProcAddress(m_hDll, "IP2_Finalize");
    		pGetHackName = (LIP2_GETHACKNAME)GetProcAddress(m_hDll, "IP2_GetHackName");
    		pGetLastError = (LIP2_GETLASTERROR)GetProcAddress(m_hDll, "IP2_GetLastError");
    	}
    
    //	CHAR szUserNo[256];
    	BOOL bRet = FALSE;
    
    	if(pInitialize)  
    	{
    		bRet = pInitialize( hWnd, pUserName );
    	}
    
    	return bRet;
    }
    
    
    void CKWall::ShutDown(void)
    {
    	if( pFinalize )   
    	{
    		pFinalize();
    	}
    	
    	if( m_hDll != NULL )  
    	{
    		FreeLibrary(m_hDll);
    	}
    
    }
    
    
    LRESULT	CKWall::MainProc( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam )  
    {
    	if (uMsg == m_uMsgRegistered)  
    	{
    		switch(wParam) 
    		{
    		case ID_ERROR :
    			break;
    		case ID_HACK_FIND :
    			if (pGetHackName)  
    			{
    /*				CHAR szMsg[1024];
    				CHAR szHackName[1024];
    				pGetHackName(szHackName, 1024);// 핵 이름만 얻을 수 있으므				로 메시지를 적당히 만든다.
    				wsprintf(szMsg, "%s 가 발견되었습니다. 프로그램을 종료합니다.", szHackName);
    				MessageBox(NULL, szMsg, "Error", MB_OK);
    //				PostQuitMessage(0);  // 프로그램을 종료한다
    */
    			}
    			break;
    		}
    	} else 
    	{
    		switch(uMsg)  
    		{
    		}
    	}
    
    	return 1;
    }
    
    /////// 파란 핵 체크 KWall 모듈 ////////////
    int  KWall_StartUp( HWND hWnd, char* pUserName )
    {
    	return theKWall.StartUp( hWnd, pUserName );
    }
    
    void KWall_ShutDown(void)
    {
    	theKWall.ShutDown();
    }
    
    void KWall_MsgProc( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam )
    {
    	theKWall.MainProc( hWnd, uMsg, wParam, lParam );
    }
    KWall.h
    Code:
    // KWall.h: interface for the CKWall class.
    //
    //////////////////////////////////////////////////////////////////////
    
    #if !defined(AFX_KWALL_H__9D1465EC_1A3E_4BE1_AADF_9EE2233552D2__INCLUDED_)
    #define AFX_KWALL_H__9D1465EC_1A3E_4BE1_AADF_9EE2233552D2__INCLUDED_
    
    #if _MSC_VER > 1000
    #pragma once
    #endif // _MSC_VER > 1000
    
    class CKWall  
    {
    public:
    	CKWall();
    	virtual ~CKWall();
    
    private:
    	UINT                m_uMsgRegistered;
    	HMODULE             m_hDll;
    	BOOL	            m_bInitialize;
    	// Funciton pointer.
    	LIP2_FINALIZE	    pFinalize;
    	LIP2_GETHACKNAME	pGetHackName;
    
    public:
    	int     StartUp( HWND hWnd, char* pUserName );
    	void    ShutDown(void);
    	LRESULT	MainProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
    };
    
    
    int  KWall_StartUp( HWND hWnd, char* pUserName );
    void KWall_ShutDown(void);
    void KWall_MsgProc( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam );
    
    #endif // !defined(AFX_KWALL_H__9D1465EC_1A3E_4BE1_AADF_9EE2233552D2__INCLUDED_)
    destroy it

    commando: You're probably the best non-coder coder I know LOL


  2. #2
    L80mans's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Posts
    136
    Reputation
    10
    Thanks
    153
    My Mood
    Blah
    oh shit somone ones fuck and thats you nexon FUCK YOU NEXON FUCK YOU

  3. #3
    flameswor10's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    12,528
    Reputation
    981
    Thanks
    10,404
    My Mood
    In Love
    It's 2005 Source Code
    @L80mans
    not a source code to bypass or anything
    It's useless now
    No I do not make game hacks anymore, please stop asking.


    Been MPGH Minion: 6 July 2011 - 1 August 2012

  4. #4
    supercarz1991's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    North of Hell, South of Heaven
    Posts
    6,067
    Reputation
    323
    Thanks
    3,320
    My Mood
    Doh
    i know its useless...i lol'd though i found it on a chinese website

    commando: You're probably the best non-coder coder I know LOL


  5. #5
    L80mans's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Posts
    136
    Reputation
    10
    Thanks
    153
    My Mood
    Blah
    Quote Originally Posted by supercarz1991 View Post
    i know its useless...i lol'd though i found it on a chinese website
    THOSE CHINESE PEOPLE ARE SMART NO JOKE

  6. #6
    AVGN's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Making America Great Again.
    Posts
    15,451
    Reputation
    1549
    Thanks
    6,234
    damn @L80mans it the morning and you're drunk already?



    ^Thanks to RJ^




  7. #7
    L80mans's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Posts
    136
    Reputation
    10
    Thanks
    153
    My Mood
    Blah
    Quote Originally Posted by AVGN View Post
    damn @L80mans it the morning and you're drunk already?
    no im just happy i got Remote kill to work on my pub hack it going to be release sometime today

  8. #8
    AVGN's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Making America Great Again.
    Posts
    15,451
    Reputation
    1549
    Thanks
    6,234
    Quote Originally Posted by L80mans View Post
    no im just happy i got Remote kill to work on my pub hack it going to be release sometime today
    Sounds awesome man



    ^Thanks to RJ^




  9. #9
    Saltine's Avatar
    Join Date
    Jun 2011
    Gender
    male
    Posts
    494
    Reputation
    104
    Thanks
    625
    Quote Originally Posted by L80mans View Post
    no im just happy i got Remote kill to work on my pub hack it going to be release sometime today
    Who gave it to you?
    If you coded it yourself, explain how it works. And no, I dont want to hear "IT MAKE BULET GO IN DER HED"
    Last edited by Saltine; 11-03-2011 at 04:03 PM.

  10. The Following User Says Thank You to Saltine For This Useful Post:

    wraithkilla (04-29-2012)

  11. #10
    supercarz1991's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    North of Hell, South of Heaven
    Posts
    6,067
    Reputation
    323
    Thanks
    3,320
    My Mood
    Doh
    ^^^

    but but but but it does

    commando: You're probably the best non-coder coder I know LOL


  12. #11
    Almightynub's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Location
    At the bottom of a double rainbow
    Posts
    574
    Reputation
    15
    Thanks
    37
    My Mood
    Cynical
    Quote Originally Posted by Saltine View Post

    Who gave it to you?
    If you coded it yourself, explain how it works. And no, I dont want to hear "IT MAKE BULET GO IN DER HED"
    Maybe IT MAKE BULLET GO IN DER CHEST instead?

  13. The Following User Says Thank You to Almightynub For This Useful Post:

    chungs123 (01-18-2012)

Similar Threads

  1. [Request] Old hack source code
    By AESEDE in forum Combat Arms EU Hack Coding/Source Code
    Replies: 4
    Last Post: 09-06-2011, 11:47 AM
  2. [Release] Old PTC SOURCE CODE !!WARNING: OUT DATED!!
    By Gοku in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 16
    Last Post: 05-21-2011, 09:15 AM
  3. Anybody have old hack source code
    By dddrrr in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 8
    Last Post: 07-03-2010, 07:30 PM
  4. Anybody have old hack source code
    By dddrrr in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 1
    Last Post: 07-03-2010, 01:03 PM
  5. [Release] I Bring you.. A HACKSHIELD BYPASS Source Code
    By ac1d_buRn in forum Combat Arms Hacks & Cheats
    Replies: 33
    Last Post: 09-28-2009, 09:33 AM