Jump to content

Java Debug Wire Protocol

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by PhotographyEdits (talk | contribs) at 14:28, 9 September 2021 (Create page). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

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 library libjdwp.[2] It can be activated using the -Xrunjdwp paramater of Java. The default TCP port used for the protocol is 8000.

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 commmand, returns operating system details or injects an arbirary class.

References

  1. ^ 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)
  2. ^ Topley, Kim (2002). J2ME in a nutshell: a desktop quick reference (1st ed.). Beijing: O'Reilly. p. 235. ISBN 9780596002534. OCLC 52355507.