Closed Drjacky closed 9 months ago
➜ Log4jUnifi git:(main) mvn package -f /Log4jUnifi/utils/rogue-jndi/
POM file /Log4jUnifi/utils/rogue-jndi/ specified with the -f/--file command line argument does not exist
[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-readable POM /Log4jUnifi/utils/rogue-jndi: /Log4jUnifi/utils/rogue-jndi (No such file or directory) @
@
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project (/Log4jUnifi/utils/rogue-jndi) has 1 error
[ERROR] Non-readable POM /Log4jUnifi/utils/rogue-jndi: /Log4jUnifi/utils/rogue-jndi (No such file or directory)
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
git clone --recurse-submodules https://github.com/puzzlepeaches/Log4jUnifi
=> [5/6] RUN mvn package -f /Log4jUnifi/utils/rogue-jndi/ 9.1s
=> ERROR [6/6] RUN pip3 install -r requirements.txt 0.9s
------
> [6/6] RUN pip3 install -r requirements.txt:
0.687 error: externally-managed-environment
0.687
0.687 × This environment is externally managed
0.687 ╰─>
0.687 The system-wide python installation should be maintained using the system
0.687 package manager (apk) only.
0.687
0.687 If the package in question is not packaged already (and hence installable via
0.687 "apk add py3-somepackage"), please consider installing it inside a virtual
0.687 environment, e.g.:
0.687
0.687 python3 -m venv /path/to/venv
0.687 . /path/to/venv/bin/activate
0.687 pip install mypackage
0.687
0.687 To exit the virtual environment, run:
0.687
0.687 deactivate
0.687
0.687 The virtual environment is not deleted, and can be re-entered by re-sourcing
0.687 the activate file.
0.687
0.687 To automatically manage virtual environments, consider using pipx (from the
0.687 pipx package).
0.687
0.687 note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
0.687 hint: See PEP 668 for the detailed specification.
------
Dockerfile:7
--------------------
5 | WORKDIR /Log4jUnifi
6 | RUN mvn package -f /Log4jUnifi/utils/rogue-jndi/
7 | >>> RUN pip3 install -r requirements.txt
8 | ENTRYPOINT ["python3","exploit.py"]
9 |
--------------------
ERROR: failed to solve: process "/bin/sh -c pip3 install -r requirements.txt" did not complete successfully: exit code: 1
➜ Log4jUnifi git:(main) ls
Dockerfile README.md exploit.py requirements.txt utils
Then:
➜ Log4jUnifi git:(main) pip3 install -r requirements.txt
WARNING: Skipping /opt/homebrew/lib/python3.11/site-packages/PyQt6-6.5.1.dist-info due to invalid metadata entry 'name'
WARNING: Skipping /opt/homebrew/lib/python3.11/site-packages/PyQt6-6.5.1.dist-info due to invalid metadata entry 'name'
DEPRECATION: Loading egg at /opt/homebrew/lib/python3.11/site-packages/graphqlmap-0.0.1-py3.11.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
Requirement already satisfied: requests in /opt/homebrew/lib/python3.11/site-packages (from -r requirements.txt (line 1)) (2.31.0)
Requirement already satisfied: charset-normalizer<4,>=2 in /opt/homebrew/lib/python3.11/site-packages (from requests->-r requirements.txt (line 1)) (3.3.2)
Requirement already satisfied: idna<4,>=2.5 in /opt/homebrew/lib/python3.11/site-packages (from requests->-r requirements.txt (line 1)) (3.6)
Requirement already satisfied: urllib3<3,>=1.21.1 in /opt/homebrew/lib/python3.11/site-packages (from requests->-r requirements.txt (line 1)) (2.1.0)
Requirement already satisfied: certifi>=2017.4.17 in /opt/homebrew/lib/python3.11/site-packages (from requests->-r requirements.txt (line 1)) (2023.11.17)
WARNING: Skipping /opt/homebrew/lib/python3.11/site-packages/PyQt6-6.5.1.dist-info due to invalid metadata entry 'name'
WARNING: Skipping /opt/homebrew/lib/python3.11/site-packages/PyQt6-6.5.1.dist-info due to invalid metadata entry 'name'
➜ Log4jUnifi git:(main)
Maven was looking in the wrong repository.