Created
August 24, 2015 07:56
-
-
Save jsyeo/467b92668d4e3bf2f933 to your computer and use it in GitHub Desktop.
Call Chain Test
This file contains hidden or 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
/** | |
* level0 0 | |
* / | \ | |
* level1 0 1 2 | |
* / | \ |\ | | |
* level2 0 1 2 34 5 | |
* | | | || | | |
* \ \\ // / | |
* level0 main | |
*/ | |
public class Main { | |
private static void level2_5() { | |
level1_2(); | |
} | |
private static void level2_4() { | |
level1_1(); | |
} | |
private static void level2_3() { | |
level1_1(); | |
} | |
private static void level2_2() { | |
level1_0(); | |
} | |
private static void level2_1() { | |
level1_0(); | |
} | |
private static void level2_0() { | |
level1_0(); | |
} | |
private static void level1_2() { | |
level0(); | |
} | |
private static void level1_1() { | |
level0(); | |
} | |
private static void level1_0() { level0(); } | |
// vulnerable | |
private static void level0() {} | |
public static void main(String[] args) { | |
level2_0(); | |
level2_1(); | |
level2_2(); | |
level2_3(); | |
level2_4(); | |
level2_5(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment