Advertisement
Guest User

Untitled

a guest
Jul 16th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. #include <iostream>
  2. #include "SigFinder.h"
  3. #include "MemoryMaster.h"
  4. #include "External.h"
  5. #include "WinUtils.h"
  6.  
  7. int main()
  8. {
  9. LoadLibraryA("user32.dll");
  10.  
  11. //DebugBreak();
  12.  
  13. MemoryMaster::SigFinder finder = MemoryMaster::SigFinder("user32.dll");
  14.  
  15. /*
  16. 3.1.11 NtUserFindWindowEx
  17. This is a system call function in user32.dll.The windows APIs FindWindowA / W and FindWindowExA / W call this internally.The debugger window
  18. will be hidden.
  19. */
  20. void* NtUserFindWindowEx_sig = finder.Find(
  21. "\x4C\x8B\xD1\xB8\x00\x00\x00\x00\x0F\x05\xC3\xFF\x15\x9F\x85\x0A\x00\xE9",
  22. "xxxx????xxxxxxxxxx");
  23.  
  24. if (!NtUserFindWindowEx_sig)
  25. {
  26. std::cout << "Not find FindWindowA system call. ScyllaHide detected. " << std::endl;
  27. } else
  28. {
  29. std::cout << "Find FindWindowA system call signature."<< std::endl;
  30. std::cout << NtUserFindWindowEx_sig << std::endl;
  31. }
  32.  
  33. // --------------------------------------------------------------------------------
  34. std::cout << "--------------------------------------------------------------------------------" << std::endl;
  35.  
  36. void* BlockInput_sig = finder.Find(
  37. "\x90\xFF\x25\x00\x00\x00\x00\x3C\x1D\xE9",
  38. "xxxxxxxxxx");
  39.  
  40. if (!BlockInput_sig)
  41. {
  42. std::cout << "Not find BlockInput system call. ScyllaHide detected. " << std::endl;
  43. }
  44. else
  45. {
  46. std::cout << "Find BlockInput system call signature." << std::endl;
  47. std::cout << BlockInput_sig << std::endl;
  48. }
  49.  
  50.  
  51. system("pause");
  52. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement