This file contains hidden or 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
// dllmain.cpp : 定义 DLL 应用程序的入口点。 | |
#include "pch.h" | |
#include <Windows.h> | |
#include <tchar.h> | |
#include <stdio.h> | |
TCHAR EXE_PATH[MAX_PATH]; | |
BOOL APIENTRY DllMain(HMODULE hModule, |
This file contains hidden or 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
import logging | |
import time | |
from colorama import init, Fore, Style | |
init(autoreset=True) # 初始化colorama并设置自动重置 | |
# 创建一个自定义的日志记录格式,包括颜色设置和时间格式 | |
class CustomFormatter(logging.Formatter): | |
format_dict = { | |
logging.DEBUG: Fore.CYAN + "[%(custom_time)s] %(levelname)s: %(message)s" + Style.RESET_ALL, |
This file contains hidden or 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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <spawn.h> | |
#include <sys/wait.h> | |
#include <string.h> | |
/* ASLR disabling magic constant from Apple LLDB source code | |
https://opensource.apple.com/source/lldb/lldb-76/tools/darwin-debug/darwin-debug.cpp | |
*/ |