How can I run my own java code in the JVM that I am debugging remotely with JDWP?

佐手、 提交于 2019-12-06 13:07:27

问题


As a penetration tester, I have come across an open JDWP port. I can connect to it with Eclipse and browse the threads and memory, but I don't have the source code for the application. I'd like to inject my own Java code, perhaps as an Exception handler, in order to return a shell. How can I modify the running/suspended Java application over JDWP, preferably using Eclipse as my debugger?


回答1:


I found the answer to my question: JavaPayload by Michael 'mihi' Schierl lets you load Java payloads through JDWP, among others.



来源:https://stackoverflow.com/questions/9100933/how-can-i-run-my-own-java-code-in-the-jvm-that-i-am-debugging-remotely-with-jdwp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!