Created
May 10, 2012 23:06
-
-
Save Rembane/2656474 to your computer and use it in GitHub Desktop.
How to solve the Main2 challenge.
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
>>> import Main2 as M2 | |
>>> M2.declaredMethods | |
array(java.lang.reflect.Method, [public static void Main2.main(java.lang.String[]), private static boolean Main2.login(java.lang.String,java.lang.String), private static void Main2.fetch_users()]) | |
>>> M2.declaredMethods[-1] | |
private static void Main2.fetch_users() | |
>>> fu = M2.declaredMethods[-1] | |
>>> fu.accessible = True | |
>>> fu.invoke(M2) | |
>>> M2.declaredFields | |
array(java.lang.reflect.Field, [private static java.lang.String Main2.username, private static java.lang.String Main2.password]) | |
>>> for x in M2.declaredFields: | |
... x.accessible = True | |
... print x.get(M2) | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment