Skip to content
KitploitKITPLOIT
HerramientasBlog
Enviar
HerramientasBlog
Enviar

¡Herramientas de Hacking, PenTest y Ciberseguridad para tu Arsenal de Seguridad!

Kitploit es un directorio de herramientas de hacking, ciberseguridad y pentesting. Descubre las últimas actualizaciones de proyectos para encontrar vulnerabilidades, analizar sistemas, automatizar pruebas y fortalecer tu seguridad.

··Feeds·Contacto·Privacidad·© 2026 Kitploit

Directorio de Herramientas

Categorías

Ver todas las categorías
Loading categories
Herramientas/GitHubGitHub/gildasio/h2t
Herramientas DefensivasEscáneres de VulnerabilidadesAuditoría de ConfiguraciónSeguridad Web
GitHubgildasio/h2t

h2t

h2t (Herramienta de Endurecimiento HTTP) escanea un sitio web y sugiere cabeceras de seguridad a aplicar

Ver Repositorio
41136hace 7 mesesRevisado por Kitploit

Más Populares

Ver todos →

Descubre las herramientas más usadas por nuestra comunidad.

Explora todas las herramientas

Explora nuestra colección de herramientas

Ver todas las herramientas →
Compartir
Sitio web

h2t - Herramienta de Endurecimiento HTTP

Descripción

h2t es una herramienta simple para ayudar a los administradores de sistemas a endurecer sus sitios web.

Hasta ahora h2t verifica las cabeceras del sitio web y recomienda cómo mejorarlas.

Dependencias

  • Python 3
  • colorama
  • requests

Instalación

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

... o la forma con Docker:

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

También puedes poner alias h2t='docker run --rm h2t' en un archivo (como ~/.bash_aliases) y ejecutarlo de la siguiente manera:

root@kitploit:~
$ h2t -h

Uso

h2t tiene subcomandos: list y 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

El subcomando list lista todas las cabeceras catalogadas en h2t y puede mostrar información sobre ellas como descripción, enlaces para más información y cómo implementarlas.

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

El subcomando scan realiza un escaneo de un sitio web en busca de sus cabeceras.

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)

Salida

Por ahora la salida solo está en modo normal. Entiéndala de la siguiente manera:

  • [+] Las cabeceras rojas son cabeceras malas que abren una brecha en tu sitio web o quizás muestran mucha información. Recomendamos corregirlas.
  • [+] Las cabeceras amarillas son cabeceras buenas que no están aplicadas en tu sitio web. Recomendamos aplicarlas.
  • [-] Las cabeceras verdes son cabeceras buenas que ya se usan en tu sitio web. Se muestran cuando se usa la opción -s.

Ejemplo:

h2t contra hack.me

  • Cookie HTTP Only sería bueno aplicarlo
  • Cookie sobre SSL/TLS sería bueno aplicarlo
  • Cabecera Server sería bueno eliminarla
  • Referrer-Policy sería bueno aplicarla
  • X-Frame-Options ya está en uso, no hay nada que hacer aquí
  • X-XSS-Protection ya está en uso, no hay nada que hacer aquí

Capturas de pantalla

Lista del catálogo de h2t

Catálogo de h2t

Escanear desde un archivo

h2t contra mi sitio web

Escanear URL

h2t contra hackme

Escaneo detallado

h2t contra mi sitio web en modo detallado

Información de cabeceras

h2t contra mi sitio web e imprime información de cabeceras

Contribuir

Para obtener pautas de contribución, consulta CONTRIBUTING

Descargar herramienta