Skip to content

Instantly share code, notes, and snippets.

View codelion's full-sized avatar

Asankhaya Sharma codelion

View GitHub Profile
@codelion
codelion / Main.java
Last active September 7, 2015 02:46 — forked from jsyeo/Main.java
Reflection
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
public class Reflection {
public static void vulnerableMethod() {
}
public void reflectVulnerableMethod() throws ClassNotFoundException, NoSuchMethodException, SecurityException,
@codelion
codelion / Main.java
Last active August 27, 2015 00:34 — forked from jsyeo/Main.java
Object Equals
public class Main {
public static void main(String[] args) {
VulnerableClass a = new VulnerableClass(1);
VulnerableClass b = new VulnerableClass(2);
a.equals(b);
HarmlessClass ha = new HarmlessClass(1);
HarmlessClass hb = new HarmlessClass(2);
ha.equals(hb);
Object oa = new VulnerableClass(1);