From 6a9fa33cdb1ea563cc45988f9f659d3c322445d7 Mon Sep 17 00:00:00 2001 From: Eric Smalling Date: Thu, 2 Sep 2021 07:26:08 -0500 Subject: [PATCH] Upodate to work with latest python3 base image --- exploits/tomcat-rce/Dockerfile | 2 +- exploits/tomcat-rce/exploit.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 +