Skip to content

Instantly share code, notes, and snippets.

ecx86

Block or report user

Report or block ecx86

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ecx86
ecx86 / ControlFlowGraphDumper.java
Last active Oct 9, 2017
Java CFG linearization (2nd edition)
View ControlFlowGraphDumper.java
// (c) 2017 maple-ir project.
package org.mapleir.ir.algorithms;
import java.util.*;
import org.objectweb.asm.Label;
import org.objectweb.asm.Type;
import org.objectweb.asm.tree.AbstractInsnNode;
import org.objectweb.asm.tree.LabelNode;
import org.objectweb.asm.tree.MethodNode;
View bug.java
// What is the problem with this implementation of List#addAll? Assume add() is implemented properly.
@Override
public boolean addAll(Collection<? extends Statement> c) {
boolean ret = false;
for (Statement s : c)
ret = ret || add(s);
return ret;
}
@ecx86
ecx86 / PluginCracker.java
Last active Oct 9, 2017
Spigot plugin cracker
View PluginCracker.java
package org.spigotmc.plugincracker;
import org.objectweb.asm.*;
import org.objectweb.asm.commons.JSRInlinerAdapter;
import org.objectweb.asm.tree.*;
import org.objectweb.asm.util.CheckClassAdapter;
import java.io.*;
import java.lang.reflect.Method;
import java.net.MalformedURLException;
@ecx86
ecx86 / codecave.cpp
Last active May 26, 2018
CS:GO code cave proof of concept
View codecave.cpp
#include "stdafx.h"
DWORD getPID(LPCSTR szFileName)
{
HANDLE hSnapshot = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, NULL);
PROCESSENTRY32 pe;
pe.dwFlags = sizeof(PROCESSENTRY32);
if (hSnapshot == INVALID_HANDLE_VALUE)
return 0;
You can’t perform that action at this time.