I can't use malicous reflection to view values of private fields
问题 I can get the value of the protected field, but the private field throws java.lang.IllegalAccessException . I think I know why I'm getting this exception, but how is reflection used to exploit the contents of private fields, how do I get around this? Programmer Hat is on I have created the following Vulnerable class in a netbeans project. I have made a Jar file to distribute it. public class Vulnerable { private int privateSecret; protected int protectedSecret; int secret; public Vulnerable()