Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <Windows.h>
- #include <iostream>
- int main() {
- PROCESS_MITIGATION_BINARY_SIGNATURE_POLICY Struct = { 0 };
- Struct.MicrosoftSignedOnly = 1;
- if (!SetProcessMitigationPolicy(ProcessSignaturePolicy, &Struct, sizeof(Struct))) {
- printf("[!] SetProcessMitigationPolicy Failed With Error : %d \n", GetLastError());
- }
- getchar();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment