OldSchoolHack

Register / Login English

Adresse einer Methode finden - Hooking

icon Thread: Adresse einer Methode finden - Hooking

Join Date: Oct 2012

Posts: 32

User-Rating:

3 positive
0 negative
Das ist die Klasse. Ich suche die Adresse der Methode GetSerial. Die dazugehörige cpp-Datei hab ich nicht.
CPP Code:
  1. class CNet
  2. {
  3. public:
  4. enum ENetworkUsageDirection
  5. {
  6. STATS_INCOMING_TRAFFIC = 0,
  7. STATS_OUTGOING_TRAFFIC = 1
  8. };
  9.  
  10. virtual void ResetNetwork ( void ) = 0;
  11. virtual bool StartNetwork ( const char* szServerHost, unsigned short usServerPort, const char* szServerPassword = NULL ) = 0;
  12. virtual void StopNetwork ( void ) = 0;
  13.  
  14. virtual void SetFakeLag ( unsigned short usPacketLoss, unsigned short usMinExtraPing, unsigned short usExtraPingVariance, int iKBPSLimit ) = 0;
  15.  
  16. virtual bool IsConnected ( void ) = 0;
  17.  
  18. virtual void DoPulse ( void ) = 0;
  19.  
  20. virtual void RegisterPacketHandler ( PPACKETHANDLER pfnPacketHandler ) = 0;
  21.  
  22. virtual NetBitStreamInterface* AllocateNetBitStream ( void ) = 0;
  23. virtual void DeallocateNetBitStream ( NetBitStreamInterface* bitStream ) = 0;
  24. virtual bool SendPacket ( unsigned char ucPacketID, NetBitStreamInterface* bitStream, NetPacketPriority packetPriority, NetPacketReliability packetReliability, ePacketOrdering packetOrdering = PACKET_ORDERING_DEFAULT ) = 0;
  25.  
  26. virtual void SetClientPort ( unsigned short usClientPort ) = 0;
  27. virtual const char * GetConnectedServer ( bool bIncludePort = false )=0;
  28.  
  29. virtual bool GetNetworkStatistics ( NetStatistics* pDest ) = 0;
  30. virtual const SPacketStat* GetPacketStats ( void ) = 0;
  31.  
  32. virtual int GetPing ( void ) = 0;
  33. virtual unsigned long GetTime ( void ) = 0;
  34.  
  35. virtual const char * GetLocalIP ( void ) = 0;
  36. virtual void GetSerial ( char* szSerial, size_t maxLength ) = 0;
  37.  
  38. virtual unsigned char GetConnectionError ( void ) = 0;
  39. virtual void SetConnectionError ( unsigned char ucConnectionError ) = 0;
  40.  
  41. virtual unsigned char GetImmediateError ( void ) = 0;
  42. virtual void SetImmediateError ( unsigned char ucImmediateError ) = 0;
  43.  
  44. virtual void Reset ( void ) = 0;
  45.  
  46. virtual CNetHTTPDownloadManagerInterface* GetHTTPDownloadManager ( EDownloadModeType iMode ) = 0;
  47.  
  48. virtual void SetServerBitStreamVersion ( unsigned short usServerBitStreamVersion ) = 0;
  49. virtual unsigned short GetServerBitStreamVersion ( void ) = 0;
  50.  
  51. virtual void GetStatus ( char* szStatus, size_t maxLength ) = 0;
  52. virtual unsigned short GetNetRev ( void ) = 0;
  53. virtual unsigned short GetNetRel ( void ) = 0;
  54.  
  55. virtual const char* GetNextBuffer ( void ) = 0;
  56. virtual const char* GetDiagnosticStatus ( void ) = 0;
  57. virtual void UpdatePingStatus ( const char* szStatus, ushort& usDataRef ) = 0;
  58.  
  59. virtual bool VerifySignature ( const char* pData, unsigned long ulSize ) = 0;
  60.  
  61. virtual void ResetStub ( DWORD dwType, ... ) = 0;
  62. virtual void ResetStub ( DWORD dwType, va_list ) = 0;
  63.  
  64. virtual const char* GetCurrentServerId ( bool bPreviousVer ) = 0;
  65. virtual bool CheckFile ( const char* szType, const char* szFilename ) = 0;
  66.  
  67. virtual uint GetExtendedErrorCode ( void ) = 0;
  68. virtual void SetTimeoutTime ( uint uiTimeoutTime ) = 0;
  69.  
  70. virtual bool ValidateBinaryFileName ( const char* szFilename ) = 0;
  71. virtual CBinaryFileInterface* AllocateBinaryFile ( void ) = 0;
  72. };