Grunny/zap-cli

Impossible to load external scripts via cli

duronrulez opened this issue · 2 comments

zap-cli -v --zap-path /opt/zaproxy/ scripts load -n Auth -e "Mozilla Zest" -t Authentication -f /home/Auth.zst

[DEBUG] Loading script "Auth" from "/home/Auth.zst"

[ERROR] Error loading script: Does Not Exist

$ ls -al /home/Auth.zst
-rw-r--r-- 1 root root 7874 Nov 1 13:58 /home/Auth.zst

The file is present, but does not get loaded. The error is quite unhelpful, if the file is actually missing the error is different as well:

[ERROR] No file found at "/home/Auth.zsasdt", cannot load script.

Same issue for me.

zap-cli -v scripts load -n app-login -t authentication -e 'Zest : Mozilla Zest' -f app-login.zst works.

When i use Authentication, it was giving error as org.zaproxy.zap.extension.api.ApiException: does_not_exist in zap logs.

Changing Authentication to authentication worked.