
Originally Posted by
sitapea1337
Quick offtopic question:
How does it generate your GUID ID? Does it take it from the IP or? Because if it doesn't, then it's possible to spoof and modify it to gain admin access on several servers.
It generates a file with random contents that file is the qkey file.
Your GUID is an MD5 hash of the file.
Here is some info if you want to compile your own version of trem with a hacked GUID.
Kudos to me.
/*Start GUID Hacking*/
Code:
Location: "\src\client\cl_main.c"
Function:
static void CL_UpdateGUID( char *prefix, int prefix_len )
{
fileHandle_t f;
int len;
len = FS_SV_FOpenFileRead( QKEY_FILE, &f );
FS_FCloseFile( f );
if( len != QKEY_SIZE )
Cvar_Set( "cl_guid", "" );
else
Cvar_Set( "cl_guid", Com_MD5File( QKEY_FILE, QKEY_SIZE,
prefix, prefix_len ) );
}
Loading GUID:
GUID is a MD5 Hash of qkey file.
This line loads the GUID - Cvar_Set( "cl_guid", Com_MD5File( QKEY_FILE, QKEY_SIZE, prefix, prefix_len ) );
Setting Hacked GUID:
Replace
Cvar_Set( "cl_guid", Com_MD5File( QKEY_FILE, QKEY_SIZE, prefix, prefix_len ) );
With
Cvar_Set( "cl_guid", "32characterlongstringhere" );
/*End GUID Hacking*/
Bookmarks