owtf / owtf

Offensive Web Testing Framework (OWTF), is a framework which tries to unite great tools and make pen testing more efficient http://owtf.org https://twitter.com/owtfp
https://medium.com/@owtf
BSD 3-Clause "New" or "Revised" License
1.8k stars 470 forks source link

Latest docker kali versions seems to have removed python3.9 which breaks make compose #1215

Open jeanphi72 opened 1 year ago

jeanphi72 commented 1 year ago

git clone https://github.com/owtf/owtf cd owtf make compose

Expected Behavior

It should compile and finish successfully

Current Behavior

I have the same problem on Ubuntu and MacOS M1 Ventura.

I tried to browse kali for an older tag here: $ make compose => ERROR [ 4/17] RUN apt-get -y install xvfb xserver-xephyr libxml2-dev libxslt-dev libssl-dev zlib1g-dev gcc python-all-dev postgresql-server-dev-all postgresql-client postgresql-client-common postgresq 1.0s

[ 4/17] RUN apt-get -y install xvfb xserver-xephyr libxml2-dev libxslt-dev libssl-dev zlib1g-dev gcc python-all-dev postgresql-server-dev-all postgresql-client postgresql-client-common postgresql libcurl4-openssl-dev proxychains tor ca-certificates libpq-dev libxslt1-dev libldap2-dev libsasl2-dev libffi-dev net-tools lsof locales-all libyaml-dev python3.9 python3.9-dev build-essential python3.9-venv python3-lxml python3-impacket golang-go python3-pip:

0 0.201 Reading package lists...

0 0.733 Building dependency tree...

0 0.845 Reading state information...

0 1.012 E: Unable to locate package python3.9

0 1.012 E: Couldn't find any package by glob 'python3.9'

0 1.012 E: Couldn't find any package by regex 'python3.9'

0 1.013 E: Unable to locate package python3.9-dev

0 1.013 E: Couldn't find any package by glob 'python3.9-dev'

0 1.013 E: Couldn't find any package by regex 'python3.9-dev'

0 1.013 E: Unable to locate package python3.9-venv

0 1.013 E: Couldn't find any package by glob 'python3.9-venv'

0 1.013 E: Couldn't find any package by regex 'python3.9-venv'

Possible Solution

I wanted to fix the version of kali but it seems kali do not maintain older versions: curl -L -s 'https://registry.hub.docker.com/v2/repositories/kalilinux/kali-rolling/tags?page_size=1024' |jq '."results"[]["name"]'

"latest" "amd64" "arm64" "armhf" "armel" "i386"

Steps to Reproduce (for bugs)

git clone https://github.com/owtf/owtf cd owtf make compose

Context

I want to evaluate owtf

Your Environment

I tried on Mac OS Ventura M1 and Ubuntu (latest release)

1n1t6Sh3ll commented 1 year ago

/assign i have made a PR with fix. Just change version from 3.9 to 3 in Docker/Dockerfile