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 / COMPILING.md
Created Nov 18, 2017
Compiling Veles on Windows
View COMPILING.md

Note: change cmake -G parameter to whatever visual studio you need... just pass cmake -G "" to make it list all the options

git clone https://github.com/codilime/veles
cd veles

Open CMakeLists.txt add this at the top:

@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;
@ecx86
ecx86 / exploit.py
Created Sep 5, 2018
rtorrent 0.9.6 - Denial of Service (mirror from exploitdb)
View exploit.py
# Mirror of https://www.exploit-db.com/exploits/44894/
# Exploit Title: rtorrent 0.9.6 - Denial of Service
# Date: 2018-01-10
# Exploit Author: ecx86
# Vendor Homepage: http://rtorrent.net
# Software Link: https://github.com/rakshasa/rtorrent/releases
# Version: <= 0.9.6
# Tested on: Debian GNU/Linux 9.4 (stretch)
@ecx86
ecx86 / bytes.py
Created Nov 16, 2018
python3 encoding cheatsheet
View bytes.py
#!/usr/bin/env python3.6
my_string = 'hello world'
# get bytes from string
my_bytes = my_string.encode() # default is utf8. accepts: utf-8, utf16, ascii, etc
print(my_bytes)
# get hex from bytes
my_hex = my_bytes.hex() # NEW in python3.5, on python<3.4 use binascii (un)hexlify
print(my_hex)
@ecx86
ecx86 / preamble.h
Created Dec 29, 2018
Preprocess library include headers for loading in IDA
View preamble.h
#define __attribute__(X)
#define __asm__(X)
#define __extension__
#define __inline
View Visual Studio 2017 Enterprise & Professional
Enterprise: NJVYC-BMHX2-G77MM-4XJMR-6Q8QF
Professional: KBJFW-NXHK6-W4WJM-CRMQB-G3CDH
Keys are generic ones. These are the same from MSDN account.
Product Key : -6Q8QF
Validity : Valid
Product ID : 00369-90000-00000-AA703
Advanced ID : XXXXX-03699-000-000000-00-1032-9200.0000-0672017
@ecx86
ecx86 / CLASSAdv-FIXED.bt
Created Jun 5, 2019
010 editor Java classfile template with fix for classfiles version < 45.3
View CLASSAdv-FIXED.bt
//------------------------------------------------
//--- 010 Editor v5.0 Binary Template
//
// File: CLASSAdv.bt
// Authors: Pishchik Ilya L. (RUS)
// Version: 1.2
// Purpose: A template for parsing Java Class (JVM) Files.
// Includes visualizing bytecode.
// Category: Programming
// File Mask: *.class
You can’t perform that action at this time.