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](/news/setting-up-zimbra-vulnerability-debugging-environment) — original article - [Penetration Techniques - Lateral Movement via WSUS](/news/penetration-techniques-lateral-movement-via-wsus) - [Penetration Techniques - Clearing Single Records in RecentFileCache.bcf and Amcache.hve](/news/penetration-techniques-clearing-single-records-in-recentfilecache-bcf-and-amcache-hve) - [ProxyShell Exploitation Analysis 2 - CVE-2021-34523](/news/proxyshell-exploitation-analysis-2-cve-2021-34523)
Related article:
Setting up Zimbra Vulnerability Debugging Environment