Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@ ToCheck/*

# Ignore README.md, archive.py, and note.txt
archive.py
note.txt
note.txt

# Ignore pycache generated folder
Utils/__pycache__
Binary file removed Utils/__pycache__/CustomLogger.cpython-312.pyc
Binary file not shown.
Binary file removed Utils/__pycache__/RiskCalculator.cpython-312.pyc
Binary file not shown.
5 changes: 4 additions & 1 deletion shp.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ def OWASPproposed(data):
else:
log.warning_with_xtratab(f'{value} is missing on {original_key}')
bCounter+=1
if (aCounter + bCounter == 0):
print(f'The Respone Headers is likely to be Customized or just Insecure {log.bigWarning()}')
return
if (aCounter / (aCounter + bCounter)) >= 0.8:
print(f"The Response Headers follows OWASP Secure Header Proposal {log.bigSuccess()}")
elif (aCounter / (aCounter + bCounter)) < 0.8 and (aCounter / (aCounter + bCounter)) >= 0.5:
Expand Down Expand Up @@ -578,4 +581,4 @@ def main():
SecureResponseHeaderCheck(parsed_data)

if __name__ == "__main__":
main()
main()
3 changes: 0 additions & 3 deletions test.py

This file was deleted.