# Subdomain enumeration with Subfinder and HTTPX: n8n workflow

> Started by another system calling it. It calls services over plain HTTP rather than through connectors. It hands the judgement calls to OpenAI.

Source: https://millionrounds.com/workflow/subdomain-enumeration-with-subfinder-and-httpx (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [AI assistants](https://millionrounds.com/workflows?category=AI+assistants#library)

# Subdomain enumeration with Subfinder and HTTPX

Started by another system calling it. It calls services over plain HTTP rather than through connectors. It hands the judgement calls to OpenAI. 34 steps, 2 loops or waits: large, and worth reading before you trust it with anything live.

Large Calls a model: OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fsubdomain-enumeration-with-subfinder-and-httpx)

**34 steps** Large: read it before trusting it with anything live

**0** Branches: places the flow splits

**2** Loops or waits

**0** Services by connector: it calls them over plain HTTP

## The flow

Starts it 2 Model 1 Logic 18 Service 13

The steps in the order they run, from what starts it.

- 1 **Webhook** Webhook *Starts it*
- 2 **TXT to JSON** Extract From File *Service*
- 3 **Prettify File Content** Code *Logic*
- 4 **Loop Over Domains** Split In Batches *Logic*
- 5 **Append all Loop Items** Code *Logic*
- 6 **crt.sh** Http Request *Service*
- 7 **WayBack Machine** Http Request *Service*
- 8 **SSH Assetfinder** Ssh *Service*
- 9 **SSH Subfinder** Ssh *Service*
- 10 **Subdomain Format Validation** Code *Logic*
- 11 **Summarize** Summarize *Service*
- 12 **Filter Subdomains WayBack Machine** Code *Logic*
- 13 **Filter Subdomains Assetfinder** Code *Logic*
- 14 **Filter Subdomains Subfinder** Code *Logic*
- 15 **Convert Subdomains to TXT** Convert To File *Service*
- 16 **Rename crt.sh Content** Set *Logic*
- 17 **Merge all Results** Merge *Logic*
- 18 **SSH create subdomains.txt into /tmp/reconAI** Ssh *Service*
- 19 **Unique Subdomains** Code *Logic*
- 20 **SSH HTTPX** Ssh *Service*
- 21 **Rename Passive Results** Set *Logic*
- 22 **Split HTTPX Results (400 Items max)** Code *Logic*
- 23 **Merge AI & Passive Results** Merge *Logic*
- 24 **Loop Over 30 Subdomains** Split In Batches *Logic*
- 25 **Prettify Results** Code *Logic*
- 26 **Split AI Response** Split Out *Logic*
- 27 **Append 30 Subdomains** Summarize *Service*
- 28 **Respond to Webhook** Respond To Webhook *Starts it*
- 29 **AI Subdomain Format Validation** Code *Logic*
- 30 **Subdomain Generator AI** Open Ai *Model*
- 31 **AI Convert Subdomains to TXT** Convert To File *Service*
- 32 **AI SSH create subdomains.txt into /tmp/reconAI** Ssh *Service*
- 33 **AI SSH HTTPX** Ssh *Service*
- 34 **Rename AI Results** Set *Logic*

## How it's built

- **Starts on:** Another system calling it
- **Steps:** 34, 2 loops or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Nothing by connector; it calls services over plain HTTP
- **Model:** OpenAI

## Questions

What does it need to run?

An n8n account, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on another system calling it.

Does it use AI?

Yes. It calls OpenAI. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 34 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 34 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fsubdomain-enumeration-with-subfinder-and-httpx)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Workflows like it

Also ai assistants, with the same services where possible, closest in size first.

- [**Automated email classification & response system with Groq AI** 34 steps · calls a model · Email, Pinecone](https://millionrounds.com/workflow/automated-email-classification-and-response-system-with-groq)
- [**Automate code reviews for GitLab MRs with Gemini and Jira** 35 steps · calls a model · Jira](https://millionrounds.com/workflow/automate-code-reviews-for-gitlab-mrs-with-gemini-and-jira)
- [**Bitrix24 AI-Powered RAG Chatbot for Open Line Channels** 33 steps · calls a model · Qdrant](https://millionrounds.com/workflow/bitrix24-ai-powered-rag-chatbot-for-open-line-channels)
- [**Complete AI graphic design suite with OpenAI and Replicate** 35 steps · calls a model · Google Drive](https://millionrounds.com/workflow/complete-ai-graphic-design-suite-with-openai-and-replicate)
- [**Filter cybersecurity news for your tech stack with OpenAI** 35 steps · calls a model · Gmail, Pinecone](https://millionrounds.com/workflow/filter-cybersecurity-news-for-your-tech-stack-with-openai)
- [**Generate AI ads from website and images with Claude** 35 steps · calls a model · Google Drive](https://millionrounds.com/workflow/generate-ai-ads-from-website-and-images-with-claude)
