Java Debug Wire Protocol: Difference between revisions
Appearance
Content deleted Content added
m +{{Programming-software-stub}} using StubSorter |
There's no default port for JDWP, if port is not specified at startup, it'll be chosen randomly. |
||
Line 1: | Line 1: | ||
In computing, the '''Java Debug Wire Protocol''' ('''JDWP''') is a [[communication protocol]] which is part of the [[Java Platform Debugger Architecture]].<ref>{{Cite book|url=https://www.worldcat.org/oclc/50589687|title=Software visualization: international seminar, Dagstuhl Castle, Germany, May 20-25, 2001 : revised papers|date=2002|publisher=Springer|others=Stephan Diehl|isbn=978-3-540-45875-3|location=Berlin|pages=185|oclc=50589687}}</ref> It is used for communication between a [[debugger]] and the [[Java virtual machine|Java Virtual Machine]], which it [[debug]]s. It allows to debug processes on a different computer. It can work over a [[network socket]] or through [[shared memory]]. |
In computing, the '''Java Debug Wire Protocol''' ('''JDWP''') is a [[communication protocol]] which is part of the [[Java Platform Debugger Architecture]].<ref>{{Cite book|url=https://www.worldcat.org/oclc/50589687|title=Software visualization: international seminar, Dagstuhl Castle, Germany, May 20-25, 2001 : revised papers|date=2002|publisher=Springer|others=Stephan Diehl|isbn=978-3-540-45875-3|location=Berlin|pages=185|oclc=50589687}}</ref> It is used for communication between a [[debugger]] and the [[Java virtual machine|Java Virtual Machine]], which it [[debug]]s. It allows to debug processes on a different computer. It can work over a [[network socket]] or through [[shared memory]]. |
||
The protocol is implemented in the [[software library]] <code>libjdwp</code>.<ref>{{Cite book|last=Topley|first=Kim|url=https://www.worldcat.org/oclc/52355507|title=J2ME in a nutshell: a desktop quick reference|date=2002|publisher=O'Reilly|isbn=9780596002534|edition=1st|location=Beijing|pages=235|oclc=52355507}}</ref> It can be activated using the <code>-Xrunjdwp</code> parameter of [[Java (language)|Java]] |
The protocol is implemented in the [[software library]] <code>libjdwp</code>.<ref>{{Cite book|last=Topley|first=Kim|url=https://www.worldcat.org/oclc/52355507|title=J2ME in a nutshell: a desktop quick reference|date=2002|publisher=O'Reilly|isbn=9780596002534|edition=1st|location=Beijing|pages=235|oclc=52355507}}</ref> It can be activated using the <code>-Xrunjdwp</code> parameter of [[Java (language)|Java]]. |
||
[[Metasploit]] includes a module for JDWP. It can exploit it using various scripts, which have functions such as [[Code injection|injecting]] a Java class that executes a [[shell (computing)|shell]] command, returns [[operating system]] details or injects an arbitrary class. |
[[Metasploit]] includes a module for JDWP. It can exploit it using various scripts, which have functions such as [[Code injection|injecting]] a Java class that executes a [[shell (computing)|shell]] command, returns [[operating system]] details or injects an arbitrary class. |
Latest revision as of 14:56, 19 June 2023
In computing, the Java Debug Wire Protocol (JDWP) is a communication protocol which is part of the Java Platform Debugger Architecture.[1] It is used for communication between a debugger and the Java Virtual Machine, which it debugs. It allows to debug processes on a different computer. It can work over a network socket or through shared memory.
The protocol is implemented in the software library libjdwp
.[2] It can be activated using the -Xrunjdwp
parameter of Java.
Metasploit includes a module for JDWP. It can exploit it using various scripts, which have functions such as injecting a Java class that executes a shell command, returns operating system details or injects an arbitrary class.
References
[edit]- ^ Software visualization: international seminar, Dagstuhl Castle, Germany, May 20-25, 2001 : revised papers. Stephan Diehl. Berlin: Springer. 2002. p. 185. ISBN 978-3-540-45875-3. OCLC 50589687.
{{cite book}}
: CS1 maint: others (link) - ^ Topley, Kim (2002). J2ME in a nutshell: a desktop quick reference (1st ed.). Beijing: O'Reilly. p. 235. ISBN 9780596002534. OCLC 52355507.
External links
[edit]- Java Debug Wire Protocol - Java SE Documentation
- Hacking the Java Debug Wire Protocol by IOActive
- Patent US20110138359A1 - Modified implementation of java debug wire protocol
- JDWP Misconfiguration in Container Images and K8s