Skip to content

Commit 589aca5

Browse files
author
Eric Smalling
committed
typo fix
1 parent f4efcd1 commit 589aca5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

exploits/tomcat-rce.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
HOSTIP=$(ifconfig | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1' | head -1)
33
echo Detected $HOSTIP as your host IP
44
docker build -t tomcat-rce tomcat-rce
5-
alias check="docker run --rm -it exploit -u http://${HOSTIP}:8080"
6-
alias pwn="docker run --rm -it exploit -u http://${HOSTIP}:8080 -p pwn"
5+
alias check="docker run --rm -it tomcat-rce -u http://${HOSTIP}:8080"
6+
alias pwn="docker run --rm -it tomcat-rce -u http://${HOSTIP}:8080 -p pwn"

exploits/tomcat-rce/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,10 @@ tomcat:10-jdk15-corretto 0 0 high, 0 medium, 0 low
127127

128128
Kill the running docker-comose process to shut down the app.
129129

130-
Edit the Dockerfile to have `FROM tomcat:8.5-jdk15-openjdk-oraclelinux7` at the top of the final stage.
130+
Edit the Dockerfile to use the "Major upgrade" recommendation, `FROM tomcat:8.5.64` at the top of the final stage.
131131
```dockerfile
132132
#FROM tomcat:8.5.21
133-
FROM tomcat:8.5-jdk15-openjdk-oraclelinux7
133+
FROM tomcat:8.5.64
134134
RUN mkdir /tmp/extracted_files
135135
COPY --chown=tomcat:tomcat web.xml /usr/local/tomcat/conf/web.xml
136136
COPY --from=build /usr/src/goof/todolist-web-struts/target/todolist.war /usr/local/tomcat/webapps/todolist.war

0 commit comments

Comments
 (0)