Created
September 2, 2015 10:01
-
-
Save jsyeo/b6e8e84ab3980f04d3db to your computer and use it in GitHub Desktop.
Subclassing a Class that Subclasses Thread
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Main { | |
public static void main(String argv[]) { | |
A a = new B(); | |
a.start(); | |
} | |
static void vulnerableMethod() { | |
System.out.println("ur powned"); | |
} | |
} | |
class A extends Thread { | |
} | |
class B extends A { | |
public void run() { | |
Main.vulnerableMethod(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment