Difference between revisions of "Hacking Java Clients"
(→Hacking Java Clients)
|Line 13:||Line 13:|
Latest revision as of 14:31, 2 February 2016
Hacking Java Clients
When performing a security assessment of client-server Java applications, it is sometimes necessary to modify the client component in order to properly understand and assess the security mechanisms in place. Typical examples are systems that employ a communication channel that can't be intercepted with tools such as the personal proxies (WebScarab, Paros, etc.). A convenient means of accessing the internals of a Java program is to have an interactive scripting environment (BeanShell, Jython, JRuby, Groovy, etc.) that exposes the internal objects and allows you to perform arbitrary operations on these objects. The following white paper outlines this technique.
There are a number of techniques that can be used to insert such an interpreter, these include:
- Recompile the source code and include the interpreter into the app. (Of course, you'll need access to the source and a build environment)
- Insert the interpreter using inheritance (as described in the white-paper mentioned above).
- Insert the interpreter by directly manipulating the byte-code
- Use this tool
- Use a new feature implemented by Java 6