Skip to content

Commit

Permalink
Upodate to work with latest python3 base image
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Smalling committed Sep 2, 2021
1 parent a5cb1dd commit 6a9fa33
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 6a9fa33

Please sign in to comment.