Skip to content

Instantly share code, notes, and snippets.

View Maxcloud's full-sized avatar
🎯
Focusing

Maxcloud Maxcloud

🎯
Focusing
  • Ontario, Canada
View GitHub Profile
@Maxcloud
Maxcloud / gist:c70e9b176fd1595981d1f0f5c9053411
Created May 15, 2025 12:37
IDC Script for Temporary Stat (version 95)
#include <idc.idc>
static extract_number_from_call(call_ea) {
auto current, mnem, op, count;
// Search backwards from the call for push instructions
current = call_ea;
while (current != BADADDR) {
current = prev_head(current, current - 30);
mnem = print_insn_mnem(current);
#include <idc.idc>
static extract_number_from_call(call_ea) {
auto current, mnem, op, count;
// Search backwards from the call for push instructions
current = call_ea;
while (current != BADADDR) {
current = prev_head(current, current - 30);
mnem = print_insn_mnem(current);
@Maxcloud
Maxcloud / ExtractMarvelMachine.java
Last active May 17, 2017 04:01
This is temporary, some values are static for now.
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
public class Main {
/**
* The contents of 'file.txt' can be found here (https://pastebin.com/1hGW3mmM)
* @param args
*/
@Maxcloud
Maxcloud / HookFindFirstFile.cpp
Last active April 23, 2017 07:15
Simple hook to remove the file check error.
#include "stdafx.h"
#include <detourxs.h>
#pragma comment(lib, "detourxs.lib")
typedef HANDLE (WINAPI *_FindFirstFileA)(LPCTSTR lpFileName, LPWIN32_FIND_DATA lpFindFileData);
_FindFirstFileA __FindFirstFileA;
HANDLE WINAPI Detour_FindFirstFileA(LPCTSTR lpFileName, LPWIN32_FIND_DATA lpFindFileData);