-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathHackStackTest.java
33 lines (29 loc) · 972 Bytes
/
HackStackTest.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/**
* work with our customized {@link Stack}
* Two options to make it work.
* <li>
* put hacked Stack into your system evn directory: "C:\Users\yuguo\MyProgramFiles\JavaSun\jre\classes"
* <li>
* use -Xbootclasspath to designate your boot strap path<br>
* something like: java -Xbootclasspath:blabla HackStackTest
*/
public class HackStackTest {
/**
<pre>
C:\Users\yuguo\MyProgramFiles\JavaSun\jre\lib\resources.jar;
C:\Users\yuguo\MyProgramFiles\JavaSun\jre\lib\rt.jar;
C:\Users\yuguo\MyProgramFiles\JavaSun\jre\lib\sunrsasign.jar;
C:\Users\yuguo\MyProgramFiles\JavaSun\jre\lib\jsse.jar;
C:\Users\yuguo\MyProgramFiles\JavaSun\jre\lib\jce.jar;
C:\Users\yuguo\MyProgramFiles\JavaSun\jre\lib\charsets.jar;
C:\Users\yuguo\MyProgramFiles\JavaSun\jre\classes
<br>
<b>Hacked Stack.</b>
</pre>
*/
public static void main(String[] args) {
//put your hack code into
System.out.println(System.getProperty("sun.boot.class.path"));
new Stack<String>();
}
}