Skip to content

Commit

Permalink
Merge pull request #316 from ericsmalling/master
Browse files Browse the repository at this point in the history
Upodate Tomcat exploit to work with latest python3 base image
  • Loading branch information
bmvermeer authored Sep 6, 2021
2 parents 3bbcb54 + 6a9fa33 commit e336e4c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion exploits/tomcat-rce/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM python:3
RUN apt-get update -y && apt-get install -y python-requests
RUN pip install requests

COPY exploit.py /exploit.py

Expand Down
4 changes: 2 additions & 2 deletions exploits/tomcat-rce/exploit.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/local/bin/python
import requests
import re
import signal
Expand Down Expand Up @@ -198,4 +198,4 @@ def shell(url,f):
con=getContent(str(i)+"/",checker)
if 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAA' in con:
print (str(i)+"\033[91m"+" [ Vulnerable ] ""\033[0m")


0 comments on commit e336e4c

Please sign in to comment.