
このスクリプトは、F5 BIG-IP TMUI リモートコード実行脆弱性 (CVE-2023-46747) を悪用します。これにより、認証されていない攻撃者が、脆弱性のある F5 BIG-IP システム上で任意のコマンドを実行できるようになります。
argparsebinasciijsonrandomrequeststimeurllib3不足しているモジュールは pip でインストールします:
pip install requests
コマンドラインオプション
python exploit.py -u <target_url> [-t <proxy_url>]
python exploit.py -u https://192.168.1.100:8443 -t http://127.0.0.1:8080
パラメータ
-u (Required) Target URL of the F5 BIG-IP TMUI system.
-t Proxy server (optional), e.g., http://127.0.0.1:8080.
認証情報の生成: ユーザー名とパスワードをランダムに生成します。
ユーザー作成: 特別に細工されたリクエストを使用して、対象上に新しいユーザーの作成を試みます。
トークン取得: 新しいユーザーでログインし、セッショントークンを取得します。
コマンド実行: トークンを介して任意のコマンドを実行します。
generatesth(num): 長さ num のランダムな英数字文字列を生成します。
unauth_create_user(target, username, password, proxy): 対象システム上にユーザーを作成します。
get_token(target, user, passwd, proxy): 作成したユーザーの認証トークンを取得します。
exec_command(target, token, cmd, proxy): 対象システム上で任意のコマンドを実行します。
This script is intended for educational and research purposes only. Unauthorized use of this script against systems you do not own or have explicit permission to test is illegal and unethical.