Skip to content

Instantly share code, notes, and snippets.

View alessandrogario's full-sized avatar
🐼
I'm a code-refactoring panda 🐼

Alessandro Gario alessandrogario

🐼
I'm a code-refactoring panda 🐼
View GitHub Profile
@alessandrogario
alessandrogario / XCOM-TFtD_DisableFullscreen.idc
Created September 3, 2014 12:41
Simple IDC script for IDA Pro that prevents the game (XCOM: Terror from the Deep) from going fullscren
// XCOM-TFtD_DisableFullscreen.idc
// Simple IDC script for IDA Pro that prevents the game (XCOM: Terror from the Deep) from going fullscren
#include <idc.idc>
static main()
{
auto IDirectDraw7_SetCooperativeLevel = 0x0046587E;
if (!RunTo(IDirectDraw7_SetCooperativeLevel))
@alessandrogario
alessandrogario / RemoveJunkOpcodes.py
Created August 28, 2014 08:58
Sample script that removes junk code from an IDA database
import idaapi
import idc
class MemoryPattern(object):
def __init__(self, pattern, wildcards, patch):
self._pattern = pattern
self._wildcards = wildcards
self._patch = patch
def compareTo(self, buffer, offset):