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
import time | |
import pyautogui | |
if __name__ == "__main__": | |
while True: | |
x, y = pyautogui.position() | |
h = 400 | |
count = 0 | |
print("testing...") |
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
#include <Windows.h> | |
#include <intrin.h> | |
typedef void (*RtlUserThreadStart_t)(PTHREAD_START_ROUTINE fpTransferAddress, PVOID pContext); | |
static RtlUserThreadStart_t original_RtlUserThreadStart; | |
static void hook_RtlUserThreadStart(PTHREAD_START_ROUTINE fpTransferAddress, PVOID pContext) | |
{ | |
MessageBoxA(0, "!Entry point hijacked", "Success", MB_SYSTEMMODAL | MB_RTLREADING); |
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
<?xml version="1.0" encoding="UTF-8" ?> | |
<bzexclusions> | |
<!-- Editable Exclusions: You may edit this file. WARNING: ONLY FOR ADVANCED USERS! --> | |
<!-- To restore the defaults, remove this file (it will return).--> | |
<!-- --> | |
<!-- Rule 1: All the excludefname_rule below are case insensitive. --> | |
<!-- --> | |
<!-- Rule 2: a file must match ALL criteria on the line to be excluded from backup. --> |
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
// Emulate IDA's xref window | |
//@author Duncan Ogilvie | |
//@category Analysis | |
//@keybinding X | |
//@menupath Navigation.IDA References | |
//@toolbar | |
// Reference: https://www.reddit.com/r/ghidra/comments/h07yoo/comment/fukuj1c | |
import ghidra.app.cmd.data.CreateArrayCmd; | |
import ghidra.app.decompiler.ClangFuncNameToken; |
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
#include <cstdio> | |
#include <cstdint> | |
#include <cstring> | |
#include <type_traits> | |
#include <Windows.h> | |
void read_memory(const void* address, void* dst, size_t len) | |
{ | |
printf("read_memory(%p, %zu)\n", address, len); |
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
Homebrew build logs for ccls on macOS 10.15.7 | |
Build date: 2021-12-19 20:28:26 |
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
// | |
// An implementation of GetModuleHandle and GetProcAddress that works with manually mapped modules, forwarded exports, | |
// without a CRT standard library, and uses no Windows API or dependencies. | |
// | |
// Author: Bill Demirkapi | |
// License: MIT, appended at the bottom of this document if you care about licensing and want to credit me in your own project. | |
// | |
#include <Windows.h> | |
#include <winternl.h> |
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
# Website: https://software.intel.com/content/www/us/en/develop/articles/pin-a-binary-instrumentation-tool-downloads.html | |
# License: https://software.intel.com/sites/landingpage/pintool/pinlicense.txt | |
# This snippet: https://gist.github.com/mrexodia/f61fead0108603d04b2ca0ab045e0952 | |
# TODO: lunix support | |
# Thanks to Francesco for showing me this method | |
CPMAddPackage( | |
NAME IntelPIN | |
VERSION 3.18 | |
URL https://software.intel.com/sites/landingpage/pintool/downloads/pin-3.18-98332-gaebd7b1e6-msvc-windows.zip |
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
https://www103.zippyshare.com/v/bcTx7d5Y/file.html |
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
// License: public domain/CC0 | |
#include <regex> | |
#include <string> | |
#include <cstdio> | |
#include <utility> | |
#include <climits> | |
#include <cinttypes> | |
bool parseNumber(const char* str, uint64_t& result, int radix = 0) | |
{ |
NewerOlder