最近學習一些安全相關的知識,找到了owasp的zap工具。於是down了下來。
下載owasp-zap地址:https://github.com/zaproxy/zaproxy/wiki/Downloads
window下面很好用,zap.bat直接雙擊啟動就行了。
但是想部署到服務器上。啟動卻碰到了個問題:
org.zaproxy.zap.GuiBootstrap - ZAP GUI is not supported on a headless environment.
Run ZAP inline or in daemon mode, use -help command line argument for more details.
(Note, some of the ZAP features that require a display, for example, running AJAX Spider with Firefox, might still be run with the help of applications like Xvfb.)
這里是說無頭環境不支持ZAP GUI。看了點源碼,了解到zap是基於GUI編程的。我的jdk也是剛安裝的8,沒理由不支持a。
后來在bing上百般搜索,找到了這個https://github.com/zaproxy/zaproxy/issues/5376
然后linux的啟動是這樣的:./zap.sh -daemon
啟動成功。
后記:
雖然上述啟動成功,進程也是在的。但卻無法在linux上啟動后直接打開zap程序。這不禁讓人頭大,后續慢慢研究...