keybode

css v34 random steam id

Jan 24th, 2014
1,923
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.45 KB | None | 0 0
  1. char RandomChar( void )
  2. {
  3.     char result;
  4.  
  5.     if( rand( ) % 3 == 0 )
  6.         result = rand( ) % 10 + 48;
  7.     else
  8.         result = rand( ) % 26 + 65;
  9.  
  10.     return result;
  11. }
  12.  
  13. void SteamIdThread( void )
  14. {
  15.     while( 1 )
  16.     {
  17.         Sleep( 0x64 );
  18.  
  19.         DWORD_PTR dwSteam = GetModuleBase( "Steam.dll" );
  20.  
  21.         if( !dwSteam )
  22.             continue;
  23.  
  24.         srand( GetTickCount( ) );
  25.  
  26.         for( int i = 0; i < 4; i++ )
  27.         {
  28.             *( BYTE* )( dwSteam + 0x12C5C + i ) = RandomChar( );
  29.         }
  30.     }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment