This page looks best with JavaScript enabled

Change ZAP DPI on FreeBSD/Linux

 ·  🎃 kr0m

Proxies are really useful tools for security testing in web environments. In this case, we will install ZAP and configure it to display correctly on high DPI environments.

First, we download the software from this link.

fetch https://github.com/zaproxy/zaproxy/releases/download/v2.8.0/ZAP_2.8.0_Crossplatform.zip
wget https://github.com/zaproxy/zaproxy/releases/download/v2.8.0/ZAP_2.8.0_Crossplatform.zip

Descomprimimos el zip:

unzip ZAP_2.8.0_Crossplatform.zip

Modificamos el script de arranque añadiendo el parámetro -Dsun.java2d.uiScale=2.5:

cd ZAP_2.8.1
vi zap.sh

# Start ZAP; it's likely that -Xdock:icon would be ignored on other platforms, but this is known to work
if [ "$OS" = "Darwin" ]; then
  # It's likely that -Xdock:icon would be ignored on other platforms, but this is known to work
  exec java -Dsun.java2d.uiScale=2.5 ${JMEM} ${JAVAGC} -Xdock:icon="../Resources/ZAP.icns" -jar "${BASEDIR}/zap-2.8.1.jar" "${ARGS[@]}"
else
  exec java -Dsun.java2d.uiScale=2.5 ${JMEM} ${JAVAGC} ${JAVADEBUG} -jar "${BASEDIR}/zap-2.8.1.jar" "${ARGS[@]}"
fi

With these changes in the script, the interface will be displayed with a “normal” size without having to strain our eyes on the screen :)

If you liked the article, you can treat me to a RedBull here