Skip to main content

httpprobe-axx

Учебный HTTP-клиент для white-hat: запросы и анализ заголовков безопасности.

⚠️ Только для своих сайтов или с разрешения владельца. Это образовательный проект, а не инструмент для атак.

Установка

pip install httpprobe-axx

Что умеет

  • get(url) — GET-запрос
  • head(url) — только заголовки
  • status(url) — код ответа (200, 404, ...)
  • is_alive(url) — отвечает ли сайт
  • security_headers(url) — какие защитные заголовки есть
  • check_https(url) — использует ли сайт HTTPS
  • report(url) — красивый текстовый отчёт

Пример

import httpprobe_axx as h

print(h.is_alive("https://example.com"))   # True
print(h.report("https://github.com"))

Пример вывода:

=== Отчёт по https://github.com ===

HTTPS: ✅ да
Итоговый URL: https://github.com/
Статус: 200
Ответ за: 280 мс

Заголовки безопасности:
  ✅ Strict-Transport-Security
  ✅ Content-Security-Policy
  ✅ X-Frame-Options
  ✅ X-Content-Type-Options
  ✅ Referrer-Policy
  ❌ Permissions-Policy
      → Ограничение API браузера

Итог: 5/6 защитных заголовков присутствуют

Какие заголовки проверяются

Заголовок Зачем
Strict-Transport-Security Заставляет браузер использовать HTTPS
Content-Security-Policy Защита от XSS и инъекций
X-Frame-Options Защита от clickjacking
X-Content-Type-Options Запрет MIME-sniffing
Referrer-Policy Контроль утечки referrer
Permissions-Policy Ограничение API браузера

Обработка ошибок

import httpprobe_axx as h

try:
    r = h.get("https://несуществующий-сайт.рф")
except h.ProbeError as e:
    print("Не получилось:", e)

Лицензия

MIT — делай что хочешь, только укажи автора.

Автор: Богдан, 12 лет.

Release files for httpprobe-axx 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for httpprobe-axx 0.1.1
File Size Uploaded
httpprobe_axx-0.1.1.tar.gz 5.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for httpprobe-axx 0.1.1
File Interpreter ABI Platform
httpprobe_axx-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 11.8 kB

Release files / httpprobe_axx-0.1.1.tar.gz

Download URL httpprobe_axx-0.1.1.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
e0cf624312876498a3cfa93cd8f43c9fc325bd9bfc5028365449216b2325a72c
BLAKE2b-256 checksum
How to use checksums
9062f7e2fa9172b1b8b4a7e1ef564dbb2eb7be2431b577e883561a0c0f86d785
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.13

Release files / httpprobe_axx-0.1.1-py3-none-any.whl

Download URL httpprobe_axx-0.1.1-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3bf604e6bc58546bef157c192acaee08eb75b19f28ed42fd49734793c651c896
BLAKE2b-256 checksum
How to use checksums
853dfb7cc3dff9a585317bc0755a4a7979b277129998c92d5718bd10296df760
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.13

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page