
サブドメインをブルートフォースで列挙し、AWS、GitHub、Heroku、Shopify、Tumblr、Squarespace全体で乗っ取りに対して脆弱な、誤設定されたクラウドホスト型サブドメインを検出するサブドメイン列挙ツール。
このアプリは既存のサブドメインをブルートフォースし、以下の情報を提供します:
ホストの設定によっては誤検知が発生する可能性があります。(できる限り除去するようにしています) また、最後に再帰的に動作して、すでに見つかったサブドメインの下にあるサブドメインを取得し、念のためすべてのデータをoutput.txtにダンプします(各プロセスの開始時に新しいファイルが作成されます)。
##詳細情報 http://labs.detectify.com/post/109964122636/hostile-subdomain-takeover-using
##出力例
Enter a domain you'd like to brute force and look for hostile subdomain takeover(example: yahoo.com)
example.com
200 0.example.com ---> 198.185.159.177
- Subdomain pointing to a non-existing SquareSpace account showing: No Such Account
- Seems like 0.example.com is an alias for exampledomain111.squarespace.com
404 a.example.com ---> 50.116.58.222
- Subdomain pointing to a non-existing WPEngine subdomain indicatingThe site you were looking for couldn't be found.
- Seems like a.example.com is an alias for exampledomain111.wpengine.com
----> Check for further information on where this is pointing to.
404 b.example.com ---> 54.231.18.81
- Subdomain pointing to an unclaimed AmazonAWS bucket showing: NoSuchBucket
- Seems like b.example.com is an alias for exampledomain111.images.s3.amazonaws.com
----> Check for further information on where this is pointing to.
404 c.example.com ---> 23.227.38.70
- Subdomain pointing to a non-existing Shopify subdomain indicatingSorry, this shop is currently unavailable.
- Seems like c.example.com is an alias for theresnosuchdomain.myshopify.com
----> Check for further information on where this is pointing to.
301 cpanel.example.com ---> 1.1.1.1
404 e.example.com ---> 23.235.47.133
- Subdomain pointing to a non-existing Github subdomain indicatingThere isn't a GitHub Pages site here
- Seems like e.example.com is an alias for noneexistingexampledomain.github.com
----> Check for further information on where this is pointing to.
404 f.example.com ---> 199.27.79.133
- Subdomain pointing to a non-existing Github subdomain indicatingThere isn't a GitHub Pages site here
- Seems like f.example.com is an alias for noneexistingexampledomain.github.io
----> Check for further information on where this is pointing to.
200 ftp.example.com ---> 1.1.1.1
200 g.example.com ---> 104.238.181.195
- Seems like g.example.com is an alias for somedomain.anotherexample.com
このモードは複数のスレッドを使用するため、より高速に結果を生成します。現在のところ出力は同期されていません。
このモードを実行するには、引数に--fastを使用します。
ruby sub_brute.rb --fast
頑張ってください!