Skip to content

Instantly share code, notes, and snippets.

@b0g3r
Created January 21, 2019 14:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save b0g3r/42b54e343961dba51d0add026389bd04 to your computer and use it in GitHub Desktop.
Save b0g3r/42b54e343961dba51d0add026389bd04 to your computer and use it in GitHub Desktop.
Необходимо реализовать web-сервис на языке python.
Сервис должен производить рекурсивный поиск поддоменов по заданному домену с учётом заданной глубины.
Входные значения:
- домен - любой валиндый домен: google.com, raw.githubusercontent.com, спутник.рф, и т.п.
- глубина - числовое значение от 1 до 3.
Поиск по поддоменам должен производиться параллельно(!).
Список поддоменов можно взять отсюда: https://raw.githubusercontent.com/darkoperator/dnsrecon/master/subdomains-top1mil-5000.txt
Поиск должен выполняться на бекенде.
Успешные результаты поиска должны отображаться пользователю на ту же страницу постепенно (как только поддомен найден) и без перезагрузки страницы.
Ограничений по библиотекам, фреймворкам, технологиям - нет.
Результат предоставить в виде Docker образа.
Примеры:
-- 1 --
результат на запрос "google.com" и глубиной = 1
________________________
www.google.com
images.google.com
maps.google.com
mail.google.com
news.google.com
video.google.com
books.google.com
clients1.google.com
picasaweb.google.com
groups.google.com
sketchup.google.com
.....
________________________
-- 2 --
результат на запрос "example.com" и глубиной = 3:
________________________
mail.example.com
local.mail.example.com
jira.example.com
static.jira.example.com
lan.static.jira.example.com
.....
________________________
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment