Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A quiet option #37

Open
whitecyberduck opened this issue Jan 8, 2024 · 4 comments
Open

A quiet option #37

whitecyberduck opened this issue Jan 8, 2024 · 4 comments

Comments

@whitecyberduck
Copy link

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
Copy link
Owner

santoru commented May 5, 2024

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
Copy link

[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
Copy link
Owner

santoru commented May 6, 2024

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

@ariafatah0711
Copy link

thanks it worked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants