Advertisement
Guest User

Proteção contra debug

a guest
Feb 23rd, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.55 KB | None | 0 0
  1.  
  2.  
  3. bool DebugProtection::IsDebugger()
  4. {
  5.     std::vector<std::string> m_processList;
  6.     m_processList.push_back("ollydbg.exe");
  7.     m_processList.push_back("wireshark.exe");
  8.     m_processList.push_back("lordpe.exe");
  9.     m_processList.push_back("hookshark.exe");
  10.     m_processList.push_back("idag.exe");
  11.     m_processList.push_back("MPGH Virus Scan Tool v6.exe");
  12.  
  13.     for (unsigned int ax = 0; ax < m_processList.size(); ax++)
  14.     {
  15.         std::string sProcess = m_processList.at(ax);
  16.         if (GetProcessIdByName(sProcess.c_str()) != 0)
  17.         {
  18.             return true;
  19.         }
  20.     }
  21.  
  22.     return false;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement