Advertisement
razexude

Report exploit

Jul 3rd, 2016
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.69 KB | None | 0 0
  1. class ProtoBufMsg_ReportPlayer
  2. {
  3. public:
  4.     struct msgdata
  5.     {
  6.         uint8_t  pad_0x00[8];   //0x00
  7.         uint32_t account_id;    //0x08
  8.         uint32_t rpt_aimbot;    //0x0C
  9.         uint32_t rpt_wallhack;  //0x10
  10.         uint64_t rpt_otherhack; //0x14
  11.         uint64_t matchid;       //0x20
  12.         uint32_t rpt_voiceabuse;//0x28
  13.         uint8_t  pad_0x2C[4];   //0x2C
  14.         uint32_t set_to_0xFF;   //0x30
  15.     };
  16.  
  17.     void*    vmtptr;            //0x00
  18.     msgdata* data;              //0x10
  19.  
  20.     ProtoBufMsg_ReportPlayer(uint64_t* steamid);
  21.     ~ProtoBufMsg_ReportPlayer();
  22. };
  23.  
  24.  
  25. ProtoBufMsg_ReportPlayer::ProtoBufMsg_ReportPlayer(uint64_t* steamid)
  26. {
  27.     static auto *pConstructor = reinterpret_cast<void(__thiscall*)(void*,uint64_t*)>(reinterpret_cast<uintptr_t>;
  28.  
  29.     this->data->set_to_0xFF = 0xFF;
  30. }
  31.  
  32. ProtoBufMsg_ReportPlayer::~ProtoBufMsg_ReportPlayer()
  33. {
  34.     static auto *pDeconstructor = reinterpret_cast<void(__thiscall*)(void*)>(reinterpret_cast<uintptr_t>;
  35.  
  36.     pDeconstructor(this);
  37. }
  38.  
  39.  
  40. ProtoBuf_SendHandler::ProtoBuf_SendHandler()
  41. {
  42.     static void* _gcclient = reinterpret_cast<void*>(*reinterpret_cast<uintptr_t*>(reinterpret_cast<uintptr_t>(GetModuleHandleA("client.dll")) + 0x02EA907C) + 0x20);
  43.  
  44.     vmtptr = _vmtptr;
  45.     gcclient = _gcclient;
  46. }
  47.  
  48.  
  49. void SubmitReport(uint64_t SteamId, uint64_t MatchId)
  50. {
  51.     __declspec(align(8)) ProtoBufMsg_ReportPlayer msg_reportplayer(&SteamId);
  52.  
  53.     msg_reportplayer.data->account_id = (uint32_t)SteamId;
  54.     msg_reportplayer.data->matchid = MatchId;
  55.  
  56.     msg_reportplayer.data->rpt_aimbot = 1;
  57.     msg_reportplayer.data->rpt_wallhack = 1;
  58.     msg_reportplayer.data->rpt_otherhack = 1;
  59.     msg_reportplayer.data->rpt_grief = 1;
  60.  
  61.     ProtoBuf_SendHandler sendhandler;
  62.  
  63.     sendhandler.SendProtoBufMessage(&msg_reportplayer);
  64. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement