Skip to content

Instantly share code, notes, and snippets.

@Rembane
Created May 10, 2012 23:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Rembane/2656474 to your computer and use it in GitHub Desktop.
Save Rembane/2656474 to your computer and use it in GitHub Desktop.
How to solve the Main2 challenge.
>>> 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