ThePorgs / Exegol-images

Docker images of the Exegol project
https://exegol.readthedocs.io/
GNU General Public License v3.0
88 stars 69 forks source link

[BUG] Incorrect default jwt_tool.py configuration #392

Open darkpills opened 2 weeks ago

darkpills commented 2 weeks ago

Describe the bug

Default config of jwt_tool has 2 bugs in /root/.jwt_tool/jwtconf.ini:

Steps To Reproduce

  1. Create a container
  2. Launch jwt_tool: jwt_tool.py -M at -rh "Authorization: eyJhbG...." -t https://mysite.com
  3. You should have both a crash at the middle because jwt-common111.txt does not exists and if burp is not started on port 8080 you may also have issues

Exegol Wrapper Version

[*] Exegol is currently in version v4.3.6
[*] Exegol Discord serv.: https://discord.gg/cXThyp7D6P
[*] Exegol documentation: https://exegol.rtfd.io/
[D] Pip installation: On ✔                                                                                                                                                                    
[D] Git source installation: Off 🪓                                                                                                                                                           
[D] Host OS: Linux (Kernel)                                                                                                                                                                   
[D] Arch: amd64                                                                                                                                                                               
[D] Raw arch: x86_64                                                                                                                                                                          
[D] Docker desktop: Off 🪓                                                                                                                                                                    
[D] Shell type: Linux                                                                                                                                                                         
[D] Last wrapper update check: 03/10/2024

Exegol container information

┌──────────────────┬──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│             Name │ xxxx (Running)                                                                                                         │
│            Image │ full - v.3.1.4 (Up to date) (amd64)                                                                                          │
├──────────────────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│      Credentials │ root : xxxx                                                                                        │
│   Remote Desktop │ Off 🪓                                                                                                                       │
│    Creation date │ 30/09/2024 08:49                                                                                                             │
│      Console GUI │ On ✔ (X11 + Wayland)                                                                                                         │
│          Network │ host                                                                                                                         │
│         Timezone │ On ✔                                                                                                                         │
│ Exegol resources │ On ✔ (/opt/resources)                                                                                                        │
│     My resources │ On ✔ (/opt/my-resources)                                                                                                     │
│    Shell logging │ Off 🪓                                                                                                                       │
│       Privileged │ Off ✔                                                                                                                        │
│        Workspace │ Dedicated (/workspace)                                                                                                       │
│             Envs │ DISPLAY=:1                                                                                                                   │
│                  │ XDG_SESSION_TYPE=wayland                                                                                                     │
│                  │ XDG_RUNTIME_DIR=/tmp                                                                                                         │
│                  │ WAYLAND_DISPLAY=wayland-0                                                                                                    │
│                  │ _JAVA_AWT_WM_NONREPARENTING=1                                                                                                │
│                  │ QT_X11_NO_MITSHM=1                                                                                                           │
│                  │ EXEGOL_RANDOMIZE_SERVICE_PORTS=true                                                                                          │
│                  │ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin                                                            │
│          Volumes │ (RW) /home/darkpills/xxxx ➡ /workspace                                                                                 │
│                  │ (RO) /home/darkpills/.local/pipx/venvs/exegol/lib/python3.11/site-packages/exegol/utils/imgsync/spawn.sh ➡ /.exegol/spawn.sh │
│                  │ (RO) /etc/localtime ➡ /etc/localtime                                                                                         │
│                  │ (RO) /etc/timezone ➡ /etc/timezone                                                                                           │
│                  │ (RW) /home/darkpills/.exegol/my-resources ➡ /opt/my-resources                                                                │
│                  │ (RW) /home/darkpills/.exegol/exegol-resources ➡ /opt/resources                                                               │
│                  │ (RW) /tmp/.X11-unix ➡ /tmp/.X11-unix                                                                                         │
│                  │ (RW) /run/user/1000/wayland-0 ➡ /tmp/wayland-0                                                                               │
└──────────────────┴──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘

Exception

No response

Additional context

No response

Anything else?

No response

QU35T-code commented 3 days ago

Nice catch ! Thanks for this bug ! It will be fixed soon !