You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Operating System: Mac OS X
Architecture: aarch64
Java Version: Eclipse Adoptium 11.0.20.1
System's Locale: en_PK
Display Locale: en_GB
Format Locale: en_PK
Default Charset: UTF-8
ZAP Home Directory: /Users/administrator/Library/Application Support/ZAP/
ZAP Installation Directory: /Applications/ZAP.app/Contents/Java/./
Look and Feel: Mac OS X (com.apple.laf.AquaLookAndFeel)
Screenshots
No response
Errors from the zap.log file
No response
Additional context
No response
Would you like to help fix this issue?
Yes
The text was updated successfully, but these errors were encountered:
For info I think this used to work, but a recent change might have broken it ... possibly zaproxy/zap-extensions@de7ae1a
I was looking into it at one stage but got distracted ..
thc202
changed the title
ZAP not printing errors to console in cmdline mode
ZAP not printing script errors to console in cmdline mode with -scriptMar 15, 2024
Log/print possible errors when running the scripts specified through
the command line (e.g. `-script`, direct file path).
Fixzaproxy#8403.
Signed-off-by: thc202 <thc202@gmail.com>
Describe the bug
I am running a standalone script that contains a syntax error, but ZAP doesn't print errors to console.
Steps to reproduce the behavior
Here's the command I am using
./zap.sh -cmd -script /Users/administrator/Downloads/script.js
The output:
The script:
print('hello world')i
i is added to introduce errorExpected behavior
It should print errors to console.
Software versions
ZAP
Version: 2.14.0
Installed Add-ons: [[id=accessControl, version=9.0.0],
[id=alertFilters, version=19.0.0], [id=ascanrules,
version=63.0.0], [id=authhelper, version=0.12.0],
[id=automation, version=0.35.0], [id=bruteforce,
version=15.0.0], [id=callhome, version=0.11.0],
[id=commonlib, version=1.22.0], [id=custompayloads,
version=0.13.0], [id=database, version=0.3.0], [id=diff,
version=14.0.0], [id=directorylistv1, version=7.0.0],
[id=domxss, version=18.0.0], [id=encoder, version=1.4.0],
[id=exim, version=0.8.0], [id=formhandler, version=6.5.0],
[id=fuzz, version=13.12.0], [id=gettingStarted,
version=16.0.0], [id=graaljs, version=0.5.0], [id=graphql,
version=0.23.0], [id=help, version=17.0.0], [id=hud,
version=0.18.0], [id=invoke, version=14.0.0], [id=network,
version=0.14.0], [id=oast, version=0.17.0], [id=onlineMenu,
version=12.0.0], [id=openapi, version=39.0.0], [id=postman,
version=0.2.0], [id=pscanrules, version=56.0.0],
[id=quickstart, version=44.0.0], [id=replacer,
version=16.0.0], [id=reports, version=0.30.0],
[id=requester, version=7.4.0], [id=retest, version=0.8.0],
[id=retire, version=0.32.0], [id=reveal, version=7.0.0],
[id=scripts, version=45.0.0], [id=selenium,
version=15.19.0], [id=soap, version=21.0.0], [id=spider,
version=0.10.0], [id=spiderAjax, version=23.18.0], [id=tips,
version=12.0.0], [id=wappalyzer, version=21.32.0],
[id=webdrivermacos, version=75.0.0], [id=websocket,
version=30.0.0], [id=zest, version=43.0.0]]
Operating System: Mac OS X
Architecture: aarch64
Java Version: Eclipse Adoptium 11.0.20.1
System's Locale: en_PK
Display Locale: en_GB
Format Locale: en_PK
Default Charset: UTF-8
ZAP Home Directory: /Users/administrator/Library/Application Support/ZAP/
ZAP Installation Directory: /Applications/ZAP.app/Contents/Java/./
Look and Feel: Mac OS X (com.apple.laf.AquaLookAndFeel)
Screenshots
No response
Errors from the zap.log file
No response
Additional context
No response
Would you like to help fix this issue?
The text was updated successfully, but these errors were encountered: