Mozilla HTTP Observatory :: Command Line Utility
This repository is for the HTTP Observatory command line utility. If you’re looking for the code for the HTTP Observatory itself, it can be found here.
Getting started with the HTTP Observatory
First, install the client:
$ pip install httpobs-cli
And then scan websites to your heart’s content, using our hosted service:
$ httpobs www.mozilla.org
Score: 30 [E]
Modifiers:
[ -5] Initial redirection from http to https is to a different host, preventing HSTS
[ -5] Subresource Integrity (SRI) not implemented, but all external scripts are loaded over https
[ -5] X-Content-Type-Options header not implemented
[ -10] X-XSS-Protection header not implemented
[ -20] HTTP Strict Transport Security (HSTS) header not implemented
[ -25] Content Security Policy (CSP) header not implemented
$ httpobs www.google.com
Score: 35 [D-]
Modifiers:
[ +5] Preloaded via the HTTP Public Key Pinning (HPKP) preloading process
[ -5] X-Content-Type-Options header not implemented
[ -20] Cookies set without using the Secure flag or set over http
[ -20] HTTP Strict Transport Security (HSTS) header not implemented
[ -25] Content Security Policy (CSP) header not implemented
$ httpobs --zero github.com
Score: 120 [A+]
Modifiers:
[ +5] HTTP Public Key Pinning (HPKP) header set to a minimum of 15 days (1296000)
[ +5] Preloaded via the HTTP Strict Transport Security (HSTS) preloading process
[ +5] Subresource Integrity (SRI) is implemented and all scripts are loaded from a similar origin
[ +5] X-Frame-Options (XFO) implemented via the CSP frame-ancestors directive
[ 0] All cookies use the Secure flag and all session cookies use the HttpOnly flag
[ 0] Content Security Policy (CSP) implemented with 'unsafe-inline' inside style-src
[ 0] Content is not visible via cross-origin resource sharing (CORS) files or headers
[ 0] Contribute.json isn't required on websites that don't belong to Mozilla
[ 0] Initial redirection is to https on same host, final destination is https
[ 0] X-Content-Type-Options header set to "nosniff"
[ 0] X-XSS-Protection header set to "1; mode=block"
If you want additional options, such as to see the raw scan output, use httpobs --help:
$ httpobs --help usage: httpobs [options] host positional arguments: host hostname of the website to scan optional arguments: -h, --help show this help message and exit -d, --debug output only raw JSON from scan and tests -r, --rescan initiate a rescan instead of showing recent scan results -v, --verbose display progress indicator -x, --hidden don't list scan in the recent scan results -z, --zero show test results that don't affect the final score
License
Mozilla Public License Version 2.0
Metadata
Release files for httpobs-cli 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| httpobs-cli-1.0.2.tar.gz | 11.8 kB | Without provenance | Details |
Release files / httpobs-cli-1.0.2.tar.gz
| Download URL | httpobs-cli-1.0.2.tar.gz |
|---|---|
| Size | 11.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6499b99b4298e9a217361bff7c8679954fd966891e02eb4bdbe0d4f95b02e67f
|
|
BLAKE2b-256 checksum How to use checksums |
d85e798da17abe2975129f76a59a48f165c07eaab3e35d71a7907d5e136c9664
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for httpobs-cli 1.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.