Skip to content

Instantly share code, notes, and snippets.

@GregLando113
GregLando113 / random IDAPython functions.py
Created April 15, 2022 12:55
stuff to take advantage of classinformer, label all functions and find likely constructors for all RTTI types
import idaapi
import idautils
import ida_funcs
import ida_allins
import ida_ua
import ctypes as C
NETNODE_NAME = '$ClassInformer_node'
@GregLando113
GregLando113 / GWBorderless.au3
Created March 25, 2018 22:03
GW Windows Borderless Standalone - 3/25/2018 Updated
#include <WindowsConstants.au3>
#include <WinAPI.au3>
#include <WinAPIConstants.au3>
Global $hWnd = WinGetHandle('[CLASS:ArenaNet_Dx_Window_Class;REGEXPTITLE:^\D+$]')
ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') : $hWnd = ' & $hWnd & @CRLF & '>Error code: ' & @error & @CRLF) ;### Debug Console
Global $iProc = WinGetProcess($hWnd)
ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') : $iProc = ' & $iProc & @CRLF & '>Error code: ' & @error & @CRLF) ;### Debug Console
Global $hProc = _GWMA_OpenProcess($iProc)
@GregLando113
GregLando113 / SteamAntiAntiDebug.h
Created October 22, 2017 02:21
Steam Anti Anti Debug - Load this into game at launch to be able to breakpoint and catch exceptions for 64-bit games using steam
#pragma once
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
// At least 12 bytes required for this jump
void* Detour64(void* source, void* destination, DWORD64 length) {
DWORD dwOld;
//mov rax,0xABABABABABABABAB
//jmp rax
@GregLando113
GregLando113 / Zelda64 Angle Finder.c
Created January 2, 2017 09:00
finds series of movements given a start angle to achieve a given end angle range in Zelda Ocarina of Time and Majoras Mask
#include <stdio.h>
#include <stdlib.h>
typedef struct _link_mvmt {
int offset;
char name[20];
} link_mvmt;
link_mvmt possible_movements[] = {
{32767, "180 TURN"},
@GregLando113
GregLando113 / GWML.c
Last active October 18, 2016 09:38
DLL for multi client launching Guild Wars clients. use cl.exe to compile with /O1 flag
#include <Windows.h>
#include <stdio.h>
#define GWML_NO_DATFIX 1
#define GWML_KEEP_SUSPENDED 2
#define ERROR(msg) { printf("ERROR: "##msg##"\n"); return FALSE; }
#define ASSERT(action) if(!(##action##)) ERROR( #action )
@GregLando113
GregLando113 / ModuleReloader.c
Last active July 14, 2022 18:10
Allows a win32 dynamic link library to unload, then have itself be reload automatically.
#include "ModuleReloader.h"
typedef HMODULE (WINAPI *LoadLibraryW_t)(
_In_ LPCWSTR lpFileName
);
typedef VOID (WINAPI *Sleep_t)(
_In_ DWORD dwMilliseconds
);