shcheck icon indicating copy to clipboard operation
shcheck copied to clipboard

A quiet option

Open whitecyberduck opened this issue 2 years ago • 4 comments

Can you add a -q, quiet option where the tool checks if headers are present but doesn't show the details?

P.S. Please let me know how I can support this project!

whitecyberduck avatar Jan 08 '24 00:01 whitecyberduck

Hello whitecyberduck, thank you for your request. What would you like the quite option to return, just the number of present/non-present headers?

santoru avatar May 05 '24 08:05 santoru

[ariafatah@localhost shcheck]$ python3 shcheck.py -i http://localhost

======================================================

shcheck.py - santoru ..............................


Simple tool to check security headers on a webserver

[] Analyzing headers of http://localhost [] Effective URL: http://localhost Traceback (most recent call last): File "shcheck.py", line 23, in shcheck.main() File "/home/ariafatah/shcheck/shcheck/shcheck.py", line 324, in main if "frame-ancestors" in headers.get('Content-Security-Policy'.lower()).lower(): AttributeError: 'NoneType' object has no attribute 'lower'

always error

ariafatah0711 avatar May 06 '24 12:05 ariafatah0711

Sorry, just published #45 . Can you please try with v1.6.3?

santoru avatar May 06 '24 13:05 santoru

thanks it worked

ariafatah0711 avatar May 06 '24 14:05 ariafatah0711