Skip to content
KitploitKITPLOIT
도구블로그
제출
도구블로그
제출

해킹, 침투 테스트 및 사이버 보안 도구를 당신의 보안 무기고에!

Kitploit은 해킹, 사이버 보안 및 침투 테스트 도구 디렉토리입니다. 최신 프로젝트 업데이트를 발견하여 취약점을 찾고, 시스템을 분석하고, 테스트를 자동화하고, 보안을 강화하세요.

··피드·문의·개인정보·© 2026 Kitploit

도구 디렉토리

카테고리

모든 카테고리 보기
Loading categories
h2t — h2t (HTTP Hardening Tool)는 웹사이트를 스캔하고 적용할 보안 헤더를 제안합니다. | Kitploit
도구/GitHubGitHub/gildasio/h2t
Defensive ToolsVulnerability ScannersConfiguration AuditingWeb Security
GitHubgildasio/h2t

h2t

h2t (HTTP Hardening Tool)는 웹사이트를 스캔하고 적용할 보안 헤더를 제안합니다.

저장소 보기웹사이트
411367개월 전Kitploit 검토 완료

인기

모두 보기 →

커뮤니티에서 가장 많이 사용되는 도구를 찾아보세요.

모든 도구 탐색

도구 컬렉션을 둘러보세요

모든 도구 보기 →
공유

h2t - HTTP 강화 도구

설명

h2t는 시스템 관리자가 웹사이트를 강화하는 데 도움을 주는 간단한 도구입니다.

현재 h2t는 웹사이트 헤더를 확인하고 개선 방법을 권장합니다.

의존성

  • Python 3
  • colorama
  • requests

설치

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

... 또는 Docker 방식:

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

파일(예: ~/.bash_aliases)에 alias h2t='docker run --rm h2t'를 추가한 후 다음과 같이 실행할 수도 있습니다:

root@kitploit:~
$ h2t -h

사용법

h2t에는 list와 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

List 하위 명령어

list 하위 명령어는 h2t에 등록된 모든 헤더를 나열하며, 설명, 추가 정보 링크 및 방법에 대한 정보를 표시할 수 있습니다.

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

Scan 하위 명령어

scan 하위 명령어는 웹사이트를 스캔하여 헤더를 확인합니다.

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)

출력

현재 출력은 일반 모드만 지원합니다. 다음과 같이 이해하시면 됩니다:

  • [+] 빨간색 헤더는 웹사이트에 취약점을 열거나 많은 정보를 노출할 수 있는 나쁜 헤더입니다. 이를 수정할 것을 권장합니다.
  • [+] 노란색 헤더는 웹사이트에 적용되지 않은 좋은 헤더입니다. 이를 적용할 것을 권장합니다.
  • [-] 초록색 헤더는 웹사이트에서 이미 사용 중인 좋은 헤더입니다. -s 플래그를 사용할 때 표시됩니다.

예시:

h2t agains hack.me

  • Cookie HTTP Only를 적용하는 것이 좋습니다.
  • Cookie over SSL/TLS를 적용하는 것이 좋습니다.
  • Server 헤더를 제거하는 것이 좋습니다.
  • Referrer-Policy를 적용하는 것이 좋습니다.
  • X-Frame-Options는 이미 사용 중이므로 할 일이 없습니다.
  • X-XSS-Protection는 이미 사용 중이므로 할 일이 없습니다.

스크린샷

h2t 카탈로그 나열

h2t catalog

파일에서 스캔

h2t against my website

URL 스캔

h2t against hackme

상세 스캔

h2t against my website in verbose mode

헤더 정보

h2t against my website and print headers information

기여

기여 지침은 CONTRIBUTING을 참조하세요.

도구 다운로드