Skip to content
KitploitKITPLOIT
StrumentiBlog
Invia
StrumentiBlog
Invia

Strumenti di Hacking, PenTest e Cybersecurity per il tuo Arsenale di Sicurezza!

Kitploit è una directory di strumenti di hacking, cybersecurity e pentesting. Scopri gli ultimi aggiornamenti dei progetti per trovare vulnerabilità, analizzare sistemi, automatizzare i test e rafforzare la tua sicurezza.

··Feed·Contatto·Privacy·© 2026 Kitploit

Directory degli strumenti

Categorie

Vedi tutte le categorie
Loading categories
h2t — h2t (HTTP Hardening Tool) analizza un sito web e suggerisce le intestazioni di sicurezza da applicare | Kitploit
Strumenti/GitHubGitHub/gildasio/h2t
Strumenti DifensiviScanner di VulnerabilitàAudit di ConfigurazioneSicurezza Web
GitHubgildasio/h2t

h2t

h2t (HTTP Hardening Tool) analizza un sito web e suggerisce le intestazioni di sicurezza da applicare

Vedi Repository
411367 mesi faRevisionato da Kitploit

Più Popolari

Vedi tutti →

Scopri gli strumenti più utilizzati dalla nostra community.

Esplora tutti gli strumenti

Sfoglia la nostra collezione di strumenti

Vedi tutti gli strumenti →
Condividi
Sito web

h2t - Strumento di Hardening HTTP

Descrizione

h2t è uno strumento semplice per aiutare i sysadmin a rafforzare la sicurezza dei loro siti web.

Fino ad ora h2t controlla le intestazioni del sito web e raccomanda come migliorarle.

Dipendenze

  • Python 3
  • colorama
  • requests

Installazione

root@kitploit:~
$ git clone https://github.com/gildasio/h2t
$ cd h2t
$ pip install -r requirements.txt
$ ./h2t.py -h

... oppure con Docker:

root@kitploit:~
$ git clone https://github.com/gildasio/h2t
$ cd h2t
$ docker build -t h2t .
$ docker run --rm h2t -h

Puoi anche mettere alias h2t='docker run --rm h2t' in un file (ad esempio ~/.bash_aliases) ed eseguire come segue:

root@kitploit:~
$ h2t -h

Utilizzo

h2t ha dei sottocomandi: list e scan.

root@kitploit:~
$ ./h2t.py -h
usage: h2t.py [-h] {list,l,scan,s} ...

h2t - HTTP Hardening Tool

positional arguments:
  {list,l,scan,s}  sub-command help
    list (l)       show a list of available headers in h2t catalog (that can
                   be used in scan subcommand -H option)
    scan (s)       scan url to hardening headers

optional arguments:
  -h, --help       show this help message and exit

Sottocomando List

Il sottocomando list elenca tutte le intestazioni catalogate in h2t e può mostrare informazioni come descrizione, link per maggiori informazioni e guide.

root@kitploit:~
$ ./h2t.py list -h
usage: h2t.py list [-h] [-p PRINT [PRINT ...]] [-B]
                   [-a | -H HEADERS [HEADERS ...]]

optional arguments:
  -h, --help            show this help message and exit
  -p PRINT [PRINT ...], --print PRINT [PRINT ...]
                        a list of additional information about the headers to
                        print. For now there are two options: description and
                        refs (you can use either or both)
  -B, --no-banner       don't print the h2t banner
  -a, --all             list all available headers [default]
  -H HEADERS [HEADERS ...], --headers HEADERS [HEADERS ...]
                        a list of headers to look for in the h2t catalog

Sottocomando Scan

Il sottocomando scan esegue una scansione di un sito web per cercare le sue intestazioni.

root@kitploit:~
$ ./h2t.py scan -h
usage: h2t.py scan [-h] [-v] [-a] [-g] [-b] [-H HEADERS [HEADERS ...]]
                   [-p PRINT [PRINT ...]]
                   [-i IGNORE_HEADERS [IGNORE_HEADERS ...]] [-B] [-E] [-n]
                   [-u USER_AGENT] [-r | -s]
                   url

positional arguments:
  url                   url to look for

optional arguments:
  -h, --help            show this help message and exit
  -v, --verbose         increase output verbosity: -v print response headers,
                        -vv print response and request headers
  -a, --all             scan all cataloged headers [default]
  -g, --good            scan good headers only
  -b, --bad             scan bad headers only
  -H HEADERS [HEADERS ...], --headers HEADERS [HEADERS ...]
                        scan only these headers (see available in list sub-
                        command)
  -p PRINT [PRINT ...], --print PRINT [PRINT ...]
                        a list of additional information about the headers to
                        print. For now there are two options: description and
                        refs (you can use either or both)
  -i IGNORE_HEADERS [IGNORE_HEADERS ...], --ignore-headers IGNORE_HEADERS [IGNORE_HEADERS ...]
                        a list of headers to ignore in the results
  -B, --no-banner       don't print the h2t banner
  -E, --no-explanation  don't print the h2t output explanation
  -o {normal,csv,json}, --output {normal,csv,json}
                        choose which output format to use (available: normal,
                        csv, json)
  -n, --no-redirect     don't follow http redirects
  -u USER_AGENT, --user-agent USER_AGENT
                        set user agent to scan request
  -k, --insecure        don't verify SSL certificate as valid
  -r, --recommendation  output only recommendations [default]
  -s, --status          output actual status (eg: existent headers only)

Output

Per ora l'output è solo in modalità normale. Interpretalo come segue:

  • [+] Le intestazioni rosse sono intestazioni pericolose che aprono una falla nel tuo sito web o mostrano molte informazioni. Raccomandiamo di correggerle.
  • [+] Le intestazioni gialle sono intestazioni buone che non sono applicate sul tuo sito web. Raccomandiamo di applicarle.
  • [-] Le intestazioni verdi sono intestazioni buone già utilizzate sul tuo sito web. Vengono mostrate quando si usa il flag -s.

Esempio:

h2t contro hack.me

  • Cookie HTTP Only sarebbe bene applicarlo
  • Cookie su SSL/TLS sarebbe bene applicarlo
  • L'intestazione Server sarebbe bene rimuoverla
  • Referrer-Policy sarebbe bene applicarla
  • X-Frame-Options è già in uso, niente da fare
  • X-XSS-Protection è già in uso, niente da fare

Screenshot

Elenca il catalogo di h2t

catalogo h2t

Scansione da file

h2t contro il mio sito web

Scansione URL

h2t contro hackme

Scansione verbose

h2t contro il mio sito web in modalità verbose

Informazioni sulle intestazioni

h2t contro il mio sito web e stampa informazioni sulle intestazioni

Contribuisci

Per le linee guida sulla contribuzione, consulta CONTRIBUTING

Scarica lo strumento