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 / 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);