Skip to content

@Rembane /hack_main2.py
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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
Something went wrong with that request. Please try again.