AttackingDirectory

Untitled

Aug 7th, 2023
790
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.35 KB | Source Code | 0 0
  1. #include <Windows.h>
  2. #include <iostream>
  3.  
  4. int main() {
  5.     PROCESS_MITIGATION_BINARY_SIGNATURE_POLICY Struct = { 0 };
  6.  
  7.     Struct.MicrosoftSignedOnly = 1;
  8.  
  9.     if (!SetProcessMitigationPolicy(ProcessSignaturePolicy, &Struct, sizeof(Struct))) {
  10.         printf("[!] SetProcessMitigationPolicy Failed With Error : %d \n", GetLastError());
  11.     }
  12.     getchar();
  13.  
  14.     return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment