Sploitus

Exploit for StrutsShell

kitploit · 2026-08-25

Exploit Code

MARKDOWN46 lines
## https://sploitus.com/exploit?id=KITPLOIT:TOOLS-GITHUB-FALCON-LNHG-STRUTSSHELL
# StrutsShell

Apache Struts (CVE-2017-5638) Shell

## Introduction

تم تصميم "**LowNoiseHG (LNHG) Struts Shell** " (المشار إليه فيما يلي باسم "**StrutsShell** ") في مارس 2017 بعد إدراك فائدة عدم الاضطرار إلى استغلال Apache Struts CVE-2017-5638 يدويًا (طلبات HTTP GET يدويًا) وبعد إدراك أن وحدة metasploit الخاصة بهذه الثغرة لم تعمل (على الأقل في حالات الاختبار لدينا).

## Description

تتمثل العملية الأساسية لـ **StrutsShell** في معالجة إدخال سطر الأوامر (shell) للنظام المستهدف (Windows, Linux, إلخ) واستخدام ثغرة Apache Struts لدفعه إلى shell لتنفيذه. ثم يعيد الأداة الإجابة وينتظر الأمر التالي للشل، مما يوفر تجربة تفاعلية خالية من العيوب.

## Special Features

  * Input 
    * Target needs to be a full vulnerable URL on an Apache Struts server (i.e. http://www.example.com/test/login.action)
  * HTTP/HTTPS 
    * StrutsShell works automatically with HTTP or HTTPS sites
  * Output 
    * No output files, this is an interactive shell (not really, just a graphical representation of one, no real tty)



## Parameters

root@kitploit:~
    
    
    # LowNoiseHG Apache Struts (CVE-2017-5638) Shell v.0.1 (2017/03/17)
    # by F4Lc0N - LNHG - USA/Colombia
    #
    # Thanks to Andrew Weidenhamer (@AWeidenhamer), David Llorens (c4an),
    # Tauseef Ghazi (@tghazi), and AJ (@nikamajinkya) for inspiration, ideas
    # and debugging/betatesting help.
    
    usage: StrutsShell.py [-h] [-d] [-u URL]
    
    LNHG Apache Struts (CVE-2017-5638) Shell v.0.1
    
    optional arguments:
      -h, --help         show this help message and exit
      -d, --debug        show debugging info
      -u URL, --url URL  Apache Struts vulnerable URL (i.e.:
                         http://www.example.com/test/login.action)
     for inspiration, ideas and debugging/beta-testing help.