Skip to content

Instantly share code, notes, and snippets.

View mrexodia's full-sized avatar
❤️
‌‌

Duncan Ogilvie mrexodia

❤️
‌‌
View GitHub Profile
@mrexodia
mrexodia / main.cpp
Last active March 28, 2016 16:48
ExceptionHandlerTest
#include <windows.h>
#include <stdio.h>
static LPTOP_LEVEL_EXCEPTION_FILTER OldFilter;
static char callOrder[10] = "";
int main()
{
OldFilter = SetUnhandledExceptionFilter([](PEXCEPTION_POINTERS ExceptionInfo) -> LONG
{
@mrexodia
mrexodia / out.asm
Last active March 28, 2016 16:48
VMProtect tracing fun :)
--- TRACER STARTED ---
Process 7332 created with entry 0x00007FF6CDF9251E
DLL loaded at 0x00007FFDCD1D0000
DLL loaded at 0x00007FFDCB2B0000
DLL loaded at 0x00007FFDCA680000
DLL loaded at 0x00007FFDCA8B0000
DLL loaded at 0x00007FFDC8F30000
DLL loaded at 0x00007FFDCB870000
DLL loaded at 0x00007FFDCD070000
DLL loaded at 0x00007FFDCAE50000
#ifndef _DEBUGGER_H
#define _DEBUGGER_H
#include "_global.h"
/**
\brief A debugger class.
*/
class Debugger
{
@mrexodia
mrexodia / command.cpp
Created March 21, 2015 23:00
Command Parser
#include "command.h"
Command::Command(const String & command)
{
ParseState state = Default;
int len = command.length();
for(int i=0; i<len; i++)
{
char ch = command[i];
switch(state)
@mrexodia
mrexodia / main.cpp
Created October 17, 2014 09:17
Template Header/Source
//http://www.codeproject.com/Articles/48575/How-to-define-a-template-class-in-a-h-file-and-imp
#include <iostream>
#include <vector>
#include "Test.h"
#include "Test.cpp"
int main()
{
int n;
#include <stdio.h>
#include <stdint.h>
#include <windows.h>
const char * ALPHABET32 = "ABCDEFGHJKLMNPQRSTUVWXYZ23456789\0";
int MAGIC = 91717;
int g_dwSeed = 0;
int8_t getCharIndex(char c)
{
@mrexodia
mrexodia / minheap.cs
Created May 28, 2016 16:33
Dijkstra + MinHeap implementation
//Implemented from http://www.cs.uu.nl/docs/vakken/ds/HoorC/Heap.pdf
public class MinHeap<T> where T : IComparable<T>
{
private readonly T[] A;
private int n;
public int Count { get { return n; } }
public MinHeap(int size)
{
@mrexodia
mrexodia / colors.ini
Created May 29, 2016 16:30 — forked from levisre/colors.ini
Dark Colorful Color for x64dbg
[Colors]
AbstractTableViewBackgroundColor=#000000
AbstractTableViewHeaderTextColor=#000000
AbstractTableViewSelectionColor=#000080
AbstractTableViewSeparatorColor=#0000FF
AbstractTableViewTextColor=#FFFBF0
DisassemblyAddressBackgroundColor=#XXXXXX
DisassemblyAddressColor=#B9B9B9
DisassemblyAutoCommentBackgroundColor=#XXXXXX
DisassemblyAutoCommentColor=#B1B1B1
@mrexodia
mrexodia / EDIDTemplate.bt.lex
Created June 5, 2016 01:19
EDIDTemplate.bt.lex
Debugging "EDIDTemplate.bt"
tok_typedef
tok_uint16
tok_identifier "EISAId"
<
tok_identifier "read"
=
tok_identifier "EISAIdToString"
,
tok_identifier "write"
@mrexodia
mrexodia / conversation.txt
Created August 9, 2016 12:46
Great conversation with saboteur@gmail.hu
hi
why i cannot attach to xdbg64 to svchost.exe?
its process is not even listed in the File-> Attach menu
fix this asap!
-----
Fix it yourself. Also try enabling debug privilege.
-----