santoru / shcheck

A basic tool to check security headers of a website
GNU General Public License v3.0
543 stars 100 forks source link

A quiet option #37

Open whitecyberduck opened 10 months ago

whitecyberduck commented 10 months ago

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!

santoru commented 6 months ago

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

ariafatah0711 commented 6 months ago

[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

santoru commented 6 months ago

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

ariafatah0711 commented 6 months ago

thanks it worked