
تحليل WhiteBox CMS
CoMisSion هي أداة لتحليل إعداد CMS بسرعة. الأداة:
🔥 تنبيه: CoMisSion لا تبحث عن الثغرات عن طريق تحليل الكود المصدري. يتم جمع الثغرات من قواعد بيانات عامة مثل wpvulndb. ليس الغرض من هذه الأداة اكتشاف ثغرات جديدة.
يمكن إنشاء تقرير كامل بالتنسيقات التالية:
تم اختبار الأداة على Linux و Windows. لتجنب تلوث الإخراج، أوصي بتعيين خيار --no-color على Windows.
./commision.py -c wordpress -d /cms_dir -o report.xlsx -t XLSX
تحتاج الأداة إلى python3.6 على الأقل.
git clone https://github.com/Intrinsec/comission
pip install -r requirements.txt
usage: comission.py [-h] -d DIR -c CMS [-o FILE] [-t TYPE] [--skip-core]
[--skip-plugins] [--skip-themes] [--no-color] [-f CONF]
[--log LOGFILE] [--wp-content WP_CONTENT]
[--plugins-dir PLUGINS_DIR] [--themes-dir THEMES_DIR]
[--major VERSION_MAJOR] [-v VERSION]
[--wpvulndb-token WPVULNDB_TOKEN] [--debug]
CoMisSion analyse a CMS and plugins used.
optional arguments:
-h, --help show this help message and exit
-d DIR, --dir DIR CMS root directory
-c CMS, --cms CMS CMS type (drupal, wordpress)
-o FILE, --output FILE
Path to output file
-t TYPE, --type TYPE Type of output (CSV, XLSX, JSON, STDOUT). Default to
XLSX.
--skip-core Set this to skip core analysis
--skip-plugins Set this to skip plugins analysis
--skip-themes Set this to skip themes analysis
--no-color Do not use colors in the output.
-f CONF, --file CONF Configuration file. See example.conf.
--log LOGFILE Log output in given file.
--wp-content WP_CONTENT
Set this to force the wp-content directory location.
--plugins-dir PLUGINS_DIR
Set this to force the plugins directory location.
--themes-dir THEMES_DIR
Set this to force the themes directory location.
--major VERSION_MAJOR
Specify the core major version (eg. 7, 8) when using
--skip-core arg. Works only for Drupal.
-v VERSION, --version VERSION
Specify the core full version (eg. 5.5).
--wpvulndb-token WPVULNDB_TOKEN
Set a token to request wpvulndb API.
--debug Print debug message to help identify errors.
🔥 للحصول على ثغرات WordPress، يجب تعيين الوسيطة --wpvulndb_token. يمكنك الحصول على رمز مميز من خلال حساب على wpvulndb.
يمكنك تقديم ملف تكوين. انظر example.conf للمرجع.
لم ننشر أي صورة رسمية بعد. لاستخدام الأداة مع Docker، يمكنك بناء صورة. في مجلد المشروع، قم بالبناء باستخدام:
docker build -t isec/comission .
ثم قم بتشغيلها باستخدام:
docker run -it --rm -v /TARGET_PATH/:/cms_path/ -v /OUTPUT_DIR/:/output/ isec/comission -d /cms_path/ -c drupal -o /output/test_docker.xlsx -t XLSX
كن حذرًا في تغيير المسار "TARGET_PATH" و "OUTPUT_DIR" ليتطابق مع مجلداتك.
الاختبارات الوحدوية متاحة في مجلد tests. قبل تشغيل الاختبار، يجب إنشاء دليل test-data-set يحتوي على مجلدات فرعية drupal و wordpress، وملف test.conf يحتوي على قيمة wpvulndb_token على الأقل.
Paul Mars (Intrinsec)
Based on an idea of Etienne Boursier (Intrinsec)
هذه الأداة موزعة بموجب ترخيص GPLv3. لكن كن حذرًا، تستخدم الأداة wpvulndb API لجمع المعلومات حول نواة WordPress والإضافات.