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.0

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.0
File Size Uploaded
httpprobe_axx-0.1.0.tar.gz 4.9 kB Details

Built distribution (wheel)

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

Total release size: 11.1 kB

Release files / httpprobe_axx-0.1.0.tar.gz

Download URL httpprobe_axx-0.1.0.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
08c9f3e6b0df2fdad1c307c0360655506a4130b20f8a7e88911dd0c8a4cac249
BLAKE2b-256 checksum
How to use checksums
5022867ab4ce98e89111aa37754b83701c5450f6d5b93775caa19fb19bfabe31
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.0-py3-none-any.whl

Download URL httpprobe_axx-0.1.0-py3-none-any.whl
Size 6.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
21d97aa6591016a0883432daada1348d11234bdca56ad1387f432d9fa62c44c0
BLAKE2b-256 checksum
How to use checksums
a95697ebaabd8a2b91e7d76b17a67fa41a6cb34737dbf99104588157977acf73
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

0.1.1

2 release files

This release

0.1.0 This release

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