Gunz.exe Start Dumped

Results 1 to 1 of 1
  1. #1
    SkullCrasher Neliel Tu is offline
    MemberRank
    Jul 2012 Join Date
    Japan, TokyoLocation
    1,240Posts

    Gunz.exe Start Dumped

    Code:
    GUNZ 1,0,0,290 launched. build (Feb  4 2014 17:39:20) 
    Log time (02/04/14 17:58:45)
    CPU ID = GenuineIntel ( family = 774 , model = 10 , stepping = 9 ) @ 3192 MHz
    Display Device = NVIDIA GeForce 210  ( vendor=10de device=a65 subsys=0 revision=a2 )
    Display Driver Version = 9.18.0013.3221
    Windows = 6.1 Build 7601 , Service Pack 1 (4194303KB) :  ..
    Cannot open system/locale.xml file.
    Error!! - StringTable Initalize Failed
    Cannot open (null) file.
    Invalid Locale
    Files that Changed:

    MPacketCrypter.cpp

    Code:
    #include "stdafx.h"
    #include "MPacketCrypter.h"
    #include "MPacket.h"
    
    int MPacketCrypter::m_nSHL = (MCOMMAND_VERSION % 6) + 1;
    unsigned char MPacketCrypter::m_ShlMask = 0;
    
    
    ////////////////////////////////////////////////////////////////////////
    bool MPacketCrypter::InitKey(MPacketCrypterKey* pKey)
    {
    	memcpy(&m_Key, pKey, sizeof(MPacketCrypterKey));
    	return true;
    }
    
    bool MPacketCrypter::Encrypt(const char* pSource, int nSrcLen, char* pTarget, int nTarLen)
    {
    	MPacketCrypter::Encrypt(pSource, nSrcLen, pTarget, nTarLen, &m_Key);
    	return true;
    }
    
    bool MPacketCrypter::Decrypt(const char* pSource, int nSrcLen, char* pTarget, int nTarLen)
    {
    	MPacketCrypter::Decrypt(pSource, nSrcLen, pTarget, nTarLen, &m_Key);
    	return true;
    }
    
    bool MPacketCrypter::Encrypt(char* pSource, int nSrcLen)
    {
    	MPacketCrypter::Encrypt(pSource, nSrcLen, &m_Key);
    	return true;
    }
    
    bool MPacketCrypter::Decrypt(char* pSource, int nSrcLen)
    {
    	MPacketCrypter::Decrypt(pSource, nSrcLen, &m_Key);
    	return true;
    }
    
    bool MPacketCrypter::Encrypt(const char* pSource, int nSrcLen, char* pTarget, int nTarLen, MPacketCrypterKey* pKey)
    {
    	int nKeyIndex = 0;
    	for (int i = 0; i < nSrcLen; i++)
    	{
    		*pTarget = _Enc(*pSource, pKey->szKey[nKeyIndex]);
    
    		nKeyIndex++;
    		if (nKeyIndex >= PACKET_CRYPTER_KEY_LEN) nKeyIndex = 0;
    		pTarget++;
    		pSource++;
    	}
    
    	return true;
    }
    
    bool MPacketCrypter::Decrypt(const char* pSource, int nSrcLen, char* pTarget, int nTarLen, MPacketCrypterKey* pKey)
    {
    	int nKeyIndex = 0;
    	for (int i = 0; i < nSrcLen; i++)
    	{
    		*pTarget = _Dec(*pSource, pKey->szKey[nKeyIndex]);
    
    		nKeyIndex++;
    		if (nKeyIndex >= PACKET_CRYPTER_KEY_LEN) nKeyIndex = 0;
    		pTarget++;
    		pSource++;
    	}
    
    	return true;
    }
    
    char MPacketCrypter::_Enc(char s, char key)
    {
    	WORD w;
    	BYTE b, bh;
    	b = s ^ key;
    	w = b << m_nSHL;
    	bh = (w&0xFF00)>>8;
    	b = w&0xFF;
    	return( BYTE( b | bh ) ^ 0xF0 ); //0xF0 default packet encrypt
    }
    
    char MPacketCrypter::_Dec(char s, char key)
    {
    	BYTE b, bh, d;
    
    	b = s^0xE9; //0xF0 default packet decrypt
    	bh = b&m_ShlMask;
    	d = (bh<<(8-m_nSHL))|(b>>m_nSHL);
    
    	return ( d ^ key );
    }
    
    
    bool MPacketCrypter::Encrypt(char* pSource, int nSrcLen, MPacketCrypterKey* pKey)
    {
    	int nKeyIndex = 0;
    	for (int i = 0; i < nSrcLen; i++)
    	{
    		*pSource = _Enc(*pSource, pKey->szKey[nKeyIndex]);
    
    		nKeyIndex++;
    		if (nKeyIndex >= PACKET_CRYPTER_KEY_LEN) nKeyIndex = 0;
    		pSource++;
    	}
    	return true;
    }
    
    bool MPacketCrypter::Decrypt(char* pSource, int nSrcLen, MPacketCrypterKey* pKey)
    {
    	int nKeyIndex = 0;
    	for (int i = 0; i < nSrcLen; i++)
    	{
    		*pSource = _Dec(*pSource, pKey->szKey[nKeyIndex]);
    
    		nKeyIndex++;
    		if (nKeyIndex >= PACKET_CRYPTER_KEY_LEN) nKeyIndex = 0;
    		pSource++;
    	}
    
    	return true;
    }
    
    MPacketCrypter::MPacketCrypter()
    {
    	InitConst();
    	memset(&m_Key, 0, sizeof(MPacketCrypterKey));
    }
    
    void MPacketCrypter::InitConst()
    {
    	m_nSHL = (MCOMMAND_VERSION % 6) + 1;
    
    	m_ShlMask=0;
    	for (int i = 0; i < m_nSHL; i++)
    	{
    		m_ShlMask += (1 << i);
    	}
    }
    from national source to Jur13n Repack
    any idea what i doing worng?




Advertisement