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
What are the reasons of using exit(1) instead of exit(0)?
And thinking about integration with other tools (like CI/CD for automated testing, like I am doing here with CORScanner for securing our own applications), could we change the behavior to the one below?
Exit code 1 when there is an error on CLI params/options (Ex: python3 jwt_tool.py -X hello -p)
Exit code 0 (for success) when no vulnerability is found with the given tests (Ex: tested https://example.com/ against CVE-2018-0114Key injection but website passed test)
The text was updated successfully, but these errors were encountered:
On shells, the exit code 1 means error. However, if you run these commands below, they all exit the error code 1
What are the reasons of using
exit(1)
instead ofexit(0)
?And thinking about integration with other tools (like CI/CD for automated testing, like I am doing here with CORScanner for securing our own applications), could we change the behavior to the one below?
1
when there is an error on CLI params/options (Ex:python3 jwt_tool.py -X hello -p
)3-125
range for vulnerabilities found with given tests (Ex: found CVE-2015-2951 alg=none on https://example.com/)0
(for success) when no vulnerability is found with the given tests (Ex: tested https://example.com/ against CVE-2018-0114 Key injection but website passed test)The text was updated successfully, but these errors were encountered: