如何在JVM中运行我自己的java代码,我正在使用JDWP进行远程调试? [英] How can I run my own java code in the JVM that I am debugging remotely with JDWP?

查看:279
本文介绍了如何在JVM中运行我自己的java代码,我正在使用JDWP进行远程调试?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

作为渗透测试人员,我遇到了一个开放的JDWP端口。我可以使用Eclipse连接到它并浏览线程和内存,但是我没有应用程序的源代码。我想注入自己的Java代码,也许作为一个异常处理程序,以返回一个shell。我如何通过JDWP修改运行/挂起的Java应用程序,最好使用Eclipse作为调试器?

解决方案

我找到了我的问题:Michael'mihi'的 JavaPayload Schierl允许您通过JDWP加载Java有效载荷等。


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?

解决方案

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

这篇关于如何在JVM中运行我自己的java代码,我正在使用JDWP进行远程调试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆