One Day Sec

What steps are needed to set up remote debugging of a Zimbra server using IntelliJ IDEA?

First, obtain the Zimbra JAR files from /opt/zimbra/common/jetty_home/lib/. Create a new Java project in IDEA, import the JARs as a library, add breakpoints to the .class files. Then, configure a Remote JVM Debug run configuration with the same JDWP parameters as the server (e.g., -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8000). Run the debug configuration; successful connection shows 'Connected to the target VM'.

---
**Related reading:**
- Setting up Zimbra Vulnerability Debugging Environment — original article
- Penetration Techniques - Lateral Movement via WSUS
- Penetration Techniques - Clearing Single Records in RecentFileCache.bcf and Amcache.hve
- ProxyShell Exploitation Analysis 2 - CVE-2021-34523
IntelliJ IDEAremote debuggingJAR filesJDWPbreakpoints

Browse all Q&A →