diff --git a/exploits/tomcat-rce/Dockerfile b/exploits/tomcat-rce/Dockerfile index e4607f3b32..a1a44eb40b 100644 --- a/exploits/tomcat-rce/Dockerfile +++ b/exploits/tomcat-rce/Dockerfile @@ -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 diff --git a/exploits/tomcat-rce/exploit.py b/exploits/tomcat-rce/exploit.py index f12ee40484..2e4573620b 100755 --- a/exploits/tomcat-rce/exploit.py +++ b/exploits/tomcat-rce/exploit.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/local/bin/python import requests import re import signal @@ -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") - \ No newline at end of file +