Skip to content
KitploitKITPLOIT
FerramentasBlog
Enviar
FerramentasBlog
Enviar

Ferramentas de Hacking, PenTest e Cibersegurança para o seu Arsenal de Segurança!

Kitploit é um diretório de ferramentas de hacking, cibersegurança e pentesting. Descubra as últimas atualizações de projetos para encontrar vulnerabilidades, analisar sistemas, automatizar testes e fortalecer sua segurança.

··Feeds·Contato·Privacidade·© 2026 Kitploit

Diretório de Ferramentas

Categorias

Ver todas as categorias
Loading categories
h2t — h2t (HTTP Hardening Tool) verifica um site e sugere cabeçalhos de segurança a serem aplicados. | Kitploit
Ferramentas/GitHubGitHub/gildasio/h2t
Ferramentas DefensivasScanners de VulnerabilidadesAuditoria de ConfiguraçãoSegurança Web
GitHubgildasio/h2t

h2t

h2t (HTTP Hardening Tool) verifica um site e sugere cabeçalhos de segurança a serem aplicados.

Ver Repositório
41136há 7 mesesRevisado pelo Kitploit

Mais Populares

Ver todos →

Descubra as ferramentas mais usadas pela nossa comunidade.

Explore todas as ferramentas

Navegue pela nossa coleção de ferramentas

Ver todas as ferramentas →
Compartilhar
Site

h2t - Ferramenta de Endurecimento HTTP

Descrição

h2t é uma ferramenta simples para ajudar administradores de sistemas a endurecer seus sites.

Até agora, h2t verifica os cabeçalhos do site e recomenda como melhorá-lo.

Dependências

  • Python 3
  • colorama
  • requests

Instalação

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

... ou pelo Docker:

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

Você também pode colocar alias h2t='docker run --rm h2t' em um arquivo (como ~/.bash_aliases) e executar da seguinte forma:

root@kitploit:~
$ h2t -h

Uso

h2t tem subcomandos: 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

Subcomando list

O subcomando list lista todos os cabeçalhos catalogados no h2t e pode mostrar informações sobre eles, como descrição, links para mais informações e tutoriais.

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

Subcomando scan

O subcomando scan realiza uma varredura em um site procurando por seus cabeçalhos.

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)

Saída

Por enquanto, a saída é apenas no modo normal. Entenda-a da seguinte forma:

  • [+] Cabeçalhos vermelhos são cabeçalhos ruins que abrem uma brecha no seu site ou talvez mostrem muitas informações. Recomendamos corrigi-los.
  • [+] Cabeçalhos amarelos são cabeçalhos bons que não estão aplicados no seu site. Recomendamos aplicá-los.
  • [-] Cabeçalhos verdes são cabeçalhos bons que já estão sendo usados no seu site. É mostrado ao usar a flag -s.

Exemplo:

h2t contra hack.me

  • Cookie HTTP Only seria bom de ser aplicado
  • Cookie sobre SSL/TLS seria bom de ser aplicado
  • Cabeçalho Server seria bom de ser removido
  • Referrer-Policy seria bom de ser aplicado
  • X-Frame-Options já está em uso, nada a fazer aqui
  • X-XSS-Protection já está em uso, nada a fazer aqui

Capturas de tela

Listar catálogo do h2t

h2t catalog

Varredura a partir de arquivo

h2t against my website

Varredura de URL

h2t against hackme

Varredura detalhada

h2t against my website in verbose mode

Informações dos cabeçalhos

h2t against my website and print headers information

Contribuir

Para diretrizes de contribuição, veja CONTRIBUTING

Baixar ferramenta