Skip to content
KitploitKITPLOIT
ツールブログ
提出
ツールブログ
提出

ハッキング、侵入テスト、サイバーセキュリティツールをあなたのセキュリティアーセナルに!

Kitploitはハッキング、サイバーセキュリティ、ペネトレーションテストのツールディレクトリです。最新のプロジェクトアップデートを見つけて、脆弱性の発見、システム分析、テストの自動化、セキュリティの強化を行いましょう。

··フィード·お問い合わせ·プライバシー·© 2026 Kitploit

ツールディレクトリ

カテゴリ

すべてのカテゴリを見る
Loading categories
alterx — DSLを使用した高速かつカスタマイズ可能なサブドメインワードリストジェネレーター | Kitploit
ツール/GitHubGitHub/projectdiscovery/alterx
偵察DNSおよびサブドメイン列挙情報収集ペネトレーションテストユーティリティとフレームワークサブドメイン列挙
GitHubprojectdiscovery/alterx

alterx

DSLを使用した高速かつカスタマイズ可能なサブドメインワードリストジェネレーター

リポジトリを見る
98979413日前Kitploit レビュー済み

人気

すべて見る →

コミュニティで最も使われているツールを見つけましょう。

すべてのツールを探索

ツールコレクションを閲覧

すべてのツールを見る →
共有

AlterX

特徴 • インストール • 使い方 • AlterX の実行 • Discordに参加

root@kitploit:~

   DSLを使用した、高速でカスタマイズ可能なサブドメインワードリストジェネレーター。

画像

特徴

  • 高速かつカスタマイズ可能
  • 自動ワードエンリッチメント
  • 定義済み変数
  • 設定可能なパターン
  • パターンマイニング - サブドメインパターンを自動的に発見します(Regulator の Go 移植版)
  • STDIN / リスト入力
  • 複数の操作モード(default、discover、both)

インストール

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 なのか??

alterx が goaltdns などの他のサブドメイン順列ツールと異なる点は、その scripting 機能です。alterx はパターンを入力として受け取り、そのパターンに基づいてサブドメインの順列ワードリストを生成します。これは nuclei が fuzzing-templates で行うのと似ています。

アクティブサブドメイン列挙 を困難にしているのは、実際に存在するドメインを見つける確率です。可能性のあるサブドメインの発見をスケールで表すと、次のようになります。

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

ほとんどすべての一般的なサブドメイン順列ツールはハードコードされたパターンを持っており、そのようなツールを実行すると、何百万ものサブドメインを含むワードリストが作成されます。これにより、dnsx などのツールでのブルートフォースの実現可能性が低下します。サブドメインの命名には実際の慣習がなく、通常はサブドメインを登録する人に依存します。alterx を使用すると、パッシブサブドメイン列挙 の結果に基づいてパターンを作成できるため、サブドメインを見つける確率とブルートフォースの実現可能性が高まります。

変数

alterx は nuclei-templates に似た変数ライクな構文を使用します。これらの変数を使用して独自のパターンを書くことができます。ドメインが入力として渡されると、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:~
// Below are some of example patterns which can be used to generate permutations
// assuming api.scanme.sh was given as input and variable {{word}} was given as input with only one value prod
// alterx generates subdomains for below patterns

"{{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

この設定ファイルは、カスタマイズ可能なパターンと動的ペイロードを使用して、セキュリティ評価やペネトレーションテスト用のサブドメイン順列を生成します。パターンには、ダッシュベース、ドットベースなどがあります。ユーザーは、特定のニーズに合わせて、単語、地域識別子、数字などのカスタムペイロードセクションを作成できます。

例えば、ユーザーは prod や dev などの値を持つ新しいペイロードセクション env を定義し、{{env}}-{{word}}.{{suffix}} のようなパターンで使用して、prod-app.example.com や dev-api.example.com のようなサブドメインを生成できます。この柔軟性により、独自のテストシナリオや対象環境に合わせたサブドメインリストを作成できます。

生成に使用されるデフォルトのパターン設定ファイルは $HOME/.config/alterx/ ディレクトリに保存され、-ac オプションを使用してカスタム設定ファイルを使用することもできます。

使用例

tesla.com の既存のパッシブサブドメインリストに対して alterx を実行した例では、dnsx を使用して解決された さらに10個の新しい かつ 有効なサブドメイン が得られました。

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 License の下で配布されています。

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}}---