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

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

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

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

도구 디렉토리

카테고리

모든 카테고리 보기
Loading categories
alterx — DSL을 사용하는 빠르고 사용자 정의 가능한 서브도메인 워드리스트 생성기 | Kitploit
도구/GitHubGitHub/projectdiscovery/alterx
ReconnaissanceDNS & Subdomain EnumerationInformation GatheringPenetration TestingUtilities & FrameworksSubdomain Enumeration
GitHubprojectdiscovery/alterx

alterx

DSL을 사용하는 빠르고 사용자 정의 가능한 서브도메인 워드리스트 생성기

저장소 보기
98979412일 전Kitploit 검토 완료

인기

모두 보기 →

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

모든 도구 탐색

도구 컬렉션을 둘러보세요

모든 도구 보기 →
공유

AlterX

기능 • 설치 • 사용법 • AlterX 실행 • Discord 참여

root@kitploit:~

   DSL을 사용하는 빠르고 사용자 정의 가능한 서브도메인 워드리스트 생성기.

image

기능

  • 빠르고 사용자 정의 가능
  • 자동 단어 강화
  • 사전 정의된 변수
  • 구성 가능한 패턴
  • 패턴 마이닝 - 서브도메인 패턴 자동 발견 (Regulator의 Go 포트)
  • STDIN / 목록 입력
  • 여러 작동 모드 (기본, 발견, 둘 다)

설치

AlterX를 설치하려면 시스템에 Golang 1.19가 설치되어 있어야 합니다. Golang은 여기에서 다운로드할 수 있습니다. Golang 설치 후 다음 명령어로 AlterX를 설치할 수 있습니다:

root@kitploit:~
go install github.com/projectdiscovery/alterx/cmd/alterx@latest

소스에서 빌드

root@kitploit:~
# Clone the repository
git clone https://github.com/projectdiscovery/alterx.git
cd alterx

# Build using Makefile
make build

# Or build manually
go build ./cmd/alterx

사용 가능한 Makefile 대상:

root@kitploit:~
make help          # Show all available targets
make build         # Build the binary
make test          # Run tests
make test-coverage # Run tests with coverage
make lint          # Run linter
make fmt           # Format code
make clean         # Clean build artifacts
make install       # Install to $GOPATH/bin

도움말

다음 명령어로 사용 가능한 플래그와 옵션을 확인할 수 있습니다:

root@kitploit:~
Fast and customizable subdomain wordlist generator using DSL.

Usage:
  ./alterx [flags]

Flags:
INPUT:
   -l, -list string[]     subdomains to use when creating permutations (stdin, comma-separated, file)
   -p, -pattern string[]  custom permutation patterns input to generate (comma-seperated, file)
   -pp, -payload value    custom payload pattern input to replace/use in key=value format (-pp 'word=words.txt')

OUTPUT:
   -es, -estimate      estimate permutation count without generating payloads
   -o, -output string  output file to write altered subdomain list
   -ms, -max-size int  Max export data size (kb, mb, gb, tb) (default mb)
   -v, -verbose        display verbose output
   -silent             display results only
   -version            display alterx version

CONFIG:
   -config string  alterx cli config file (default '$HOME/.config/alterx/config.yaml')
   -en, -enrich    enrich wordlist by extracting words from input
   -ac string      alterx permutation config file (default '$HOME/.config/alterx/permutation_v0.0.1.yaml')
   -limit int      limit the number of results to return (default 0)

UPDATE:
   -up, -update                 update alterx to latest version
   -duc, -disable-update-check  disable automatic alterx update check

왜 alterx인가?

goaltdns와 같은 다른 서브도메인 변형 도구와 alterx를 차별화하는 것은 스크립팅 기능입니다. alterx는 패턴을 입력으로 받아 그 패턴을 기반으로 서브도메인 변형 워드리스트를 생성합니다. 이는 nuclei가 fuzzing-templates으로 수행하는 방식과 유사합니다.

능동적 서브도메인 열거를 어렵게 만드는 것은 실제로 존재하는 도메인을 찾을 확률입니다. 가능한 서브도메인을 찾는 것을 척도로 나타내면 다음과 같아야 합니다.

root@kitploit:~
   Using Wordlist < generate permutations with subdomains (goaltdns) < alterx

거의 모든 인기 있는 서브도메인 변형 도구에는 하드코딩된 패턴이 있으며, 이러한 도구를 실행하면 수백만 개의 서브도메인이 포함된 워드리스트가 생성되어 dnsx와 같은 도구로 무차별 대입하는 것이 어려워집니다. 서브도메인 이름을 지정하는 실제 규칙은 없으며 일반적으로 서브도메인을 등록하는 사람에 따라 다릅니다. alterx를 사용하면 수동적 서브도메인 열거 결과를 기반으로 패턴을 생성할 수 있어 서브도메인을 찾을 확률과 무차별 대입 가능성이 높아집니다.

변수

alterx는 nuclei 템플릿과 유사한 변수 같은 구문을 사용합니다. 이러한 변수를 사용하여 자신만의 패턴을 작성할 수 있습니다. 도메인이 입력으로 전달되면 alterx는 입력을 평가하고 그로부터 변수를 추출합니다.

기본 / 공통 변수

root@kitploit:~
{{sub}}     :  subdomain prefix or left most part of a subdomain
{{suffix}}  :  everything except {{sub}} in subdomain name is suffix
{{tld}}     :  top level domain name (ex com,uk,in etc)
{{etld}}    :  also know as public suffix (ex co.uk , gov.in etc)

고급 변수

root@kitploit:~
{{sld}}  :   second-level domain  (ex for api.scanme.sh => {{sld}} is scanme)
{{root}}  :  also known as eTLD+1 i.e only root domain (ex for api.scanme.sh => {{root}} is scanme.sh)
{{subN}}  :  here N is an integer (ex {{sub1}} , {{sub2}} etc) .

// {{subN}} is advanced variable which exists depending on input
// lets say there is a multi level domain cloud.nuclei.scanme.sh
// in this case {{sub}} = cloud and {{sub1}} = nuclei`

패턴

패턴은 간단히 말해 alterx가 생성해야 할 패턴 유형을 설명하는 템플릿으로 간주할 수 있습니다.

root@kitploit:~
// 아래는 변형을 생성하는 데 사용할 수 있는 예제 패턴입니다.
// api.scanme.sh가 입력으로 주어지고 변수 {{word}}가 값 prod로만 입력되었다고 가정합니다.
// alterx는 아래 패턴에 대해 서브도메인을 생성합니다.

"{{sub}}-{{word}}.{{suffix}}" // ex: api-prod.scanme.sh
"{{word}}-{{sub}}.{{suffix}}" // ex: prod-api.scanme.sh
"{{word}}.{{sub}}.{{suffix}}" // ex: prod.api.scanme.sh
"{{sub}}.{{word}}.{{suffix}}" // ex: api.prod.scanme.sh

예제 패턴 설정 파일은 여기 - https://github.com/projectdiscovery/alterx/blob/main/permutations.yaml 에 있으며 필요에 따라 쉽게 사용자 정의할 수 있습니다.

이 설정 파일은 사용자 정의 가능한 패턴과 동적 페이로드를 사용하여 보안 평가 또는 침투 테스트를 위한 서브도메인 변형을 생성합니다. 패턴에는 대시 기반, 점 기반 및 기타 패턴이 포함됩니다. 사용자는 특정 요구에 맞게 단어, 지역 식별자 또는 숫자와 같은 사용자 정의 페이로드 섹션을 만들 수 있습니다.

예를 들어, 사용자는 env라는 새 페이로드 섹션을 prod 및 dev 값으로 정의한 다음 {{env}}-{{word}}.{{suffix}}와 같은 패턴에서 사용하여 prod-app.example.com 및 dev-api.example.com과 같은 서브도메인을 생성할 수 있습니다. 이러한 유연성은 고유한 테스트 시나리오 및 대상 환경에 맞게 맞춤화된 서브도메인 목록을 허용합니다.

생성에 사용되는 기본 패턴 설정 파일은 $HOME/.config/alterx/ 디렉토리에 저장되며, -ac 옵션을 사용하여 사용자 정의 설정 파일을 사용할 수도 있습니다.

예제

tesla.com의 기존 수동적 서브도메인 목록에서 alterx를 실행한 예제입니다. dnsx를 사용하여 10개의 추가 NEW 및 유효한 서브도메인이 확인되었습니다.

root@kitploit:~
$ chaos -d tesla.com | alterx | dnsx



   ___   ____          _  __
  / _ | / / /____ ____| |/_/
 / __ |/ / __/ -_) __/>  <
/_/ |_/_/\__/\__/_/ /_/|_|

      projectdiscovery.io

[INF] Generated 8312 permutations in 0.0740s
auth-global-stage.tesla.com
auth-stage.tesla.com
digitalassets-stage.tesla.com
errlog-stage.tesla.com
kronos-dev.tesla.com
mfa-stage.tesla.com
paymentrecon-stage.tesla.com
sso-dev.tesla.com
shop-stage.tesla.com
www-uat-dev.tesla.com

마찬가지로 -enrich 옵션을 사용하여 알려진 서브도메인을 워드 입력으로 채워 대상 인식 변형을 생성할 수 있습니다.

root@kitploit:~
$ chaos -d tesla.com | alterx -enrich

   ___   ____          _  __
  / _ | / / /____ ____| |/_/
 / __ |/ / __/ -_) __/>  <
/_/ |_/_/\__/\__/_/ /_/|_|

      projectdiscovery.io

[INF] Generated 662010 permutations in 3.9989s

-pattern CLI 옵션을 사용하여 런타임에 기본 패턴을 변경할 수 있습니다.

root@kitploit:~
$ chaos -d tesla.com | alterx -enrich -p '{{word}}-{{suffix}}'

   ___   ____          _  __
  / _ | / / /____ ____| |/_/
 / __ |/ / __/ -_) __/>  <
/_/ |_/_/\__/\__/_/ /_/|_|

      projectdiscovery.io

[INF] Generated 21523 permutations in 0.7984s

-payload CLI 옵션을 사용하여 기존 변수 값을 덮어쓰는 것도 가능합니다.

root@kitploit:~
$ alterx -list tesla.txt -enrich -p '{{word}}-{{year}}.{{suffix}}' -pp word=keywords.txt -pp year=2023

   ___   ____          _  __
  / _ | / / /____ ____| |/_/
 / __ |/ / __/ -_) __/>  <
/_/ |_/_/\__/\__/_/ /_/|_|

      projectdiscovery.io

[INF] Generated 21419 permutations in 1.1699s

자세한 내용은 릴리스 블로그를 확인하세요 - https://blog.projectdiscovery.io/introducing-alterx-simplifying-active-subdomain-enumeration-with-patterns/

또한 아래 워크플로에 적합할 수 있는 유사한 오픈소스 프로젝트도 확인해보세요:

altdns, goaltdns, gotator, ripgen, dnsgen, dmut, permdns, str-replace, dnscewl, regulator


AlterX는 projectdiscovery 팀이 ❤️로 만들었으며 MIT 라이선스로 배포됩니다.

Discord 참여

도구 다운로드
변수api.scanme.shadmin.dev.scanme.shcloud.scanme.co.uk
{{sub}}apiadmincloud
{{suffix}}scanme.shdev.scanme.shscanme.co.uk
{{tld}}shshuk
{{etld}}--co.uk
변수api.scanme.shadmin.dev.scanme.shcloud.scanme.co.uk
{{sld}}scanmescanmescanme
{{root}}scanme.shscanme.shscanme.co.uk
{{sub1}}-dev-
{{sub2}}---