ThePorgs/Exegol-images

[BUG] pth-net: 4: exec: bin/net: not found in nightly image

Closed this issue · 4 comments

Describe the bug

pth-net isn't launching on nightly image (Up to date v.fd634386)

Steps To Reproduce

Create a container abc using nightly image
Start container and launch pth-net tool.

Error :
/opt/tools/pth-toolkit/pth-net: 4: exec: bin/net: not found

Exegol Wrapper Version

[*] Exegol is currently in version v4.1.1
[*] Exegol Discord serv.: https://discord.gg/cXThyp7D6P
[*] Exegol documentation: https://exegol.rtfd.io/
[+] We thank Capgemini for supporting the project (helping with dev)                                                                                                                                             
[+] We thank HackTheBox for sponsoring the multi-arch support                                                                                                                                                    
[D] Pip installation: On ✔                                                                                                                                                                                         
[D] Git source installation: Off 望                                                                                                                                                                                
[D] Host OS: Linux                                                                                                                                                                                                 
[D] Arch: amd64                                                                                                                                                                                                    
[D] Raw arch: x86_64                                                                                                                                                                                               
[D] Docker desktop: Off 望                                                                                                                                                                                         
[D] Shell type: Linux                                                                                                                                                                                              
[D] Last update check: 07/03/2023

Exegol container information

[*] Exegol is currently in version v4.1.1
[*] Exegol Discord serv.: https://discord.gg/cXThyp7D6P
[*] Exegol documentation: https://exegol.rtfd.io/
[+] We thank Capgemini for supporting the project (helping with dev)                                                                                                                                             
[+] We thank HackTheBox for sponsoring the multi-arch support                                                                                                                                                    
[V] Listing user configurations                                                                                                                                                                                    

易 User configurations                                       
┌───────────────────────────────────────────────────────────┐
│ User config file: /me/.exegol/config.yml       │
│ Private workspace: /me/.exegol/workspaces      │
│ Exegol resources: /me/.exegol/exegol-resources │
│ My resources: /me/.exegol/my-resources         │
│ Auto-check updates: On ✔                                  │
│ Auto-remove images: On ✔                                  │
│ Auto-update fs: Off 望                                    │
│ Default start shell: zsh                                  │
│ Shell logging method: asciinema                           │
│ Shell logging compression: On ✔                           │
└───────────────────────────────────────────────────────────┘

[V] Listing git repositories                                                                                                                                                                                       
[!] Exegol has not been installed via git clone. Skipping wrapper auto-update operation.                                                                                                                           
[*] If you have installed Exegol with pip, check for an update with the command pip3 install exegol --upgrade                                                                                                      
[!] Exegol has not been installed via git clone. Skipping wrapper auto-update operation.                                                                                                                           
[*] If you have installed Exegol with pip, check for an update with the command pip3 install exegol --upgrade                                                                                                      

 Project modules                            
┌───────────┬───────────────┬────────────────┐
│ Name      │ Status        │ Current branch │
├───────────┼───────────────┼────────────────┤
│ Wrapper   │ Not installed │ ? 路           │
│ Images    │ Not installed │ ? 路           │
│ Resources │ Up to date    │ main           │
└───────────┴───────────────┴────────────────┘


⭐ Container summary                                                                    
┌──────────────────┬───────────────────────────────────────────────────────────────────┐
│             Name │ ap                                                                │
│            Image │ nightly - v.fd634386 (Up to date) (amd64)                         │
├──────────────────┼───────────────────────────────────────────────────────────────────┤
│    Creation date │ 09/03/2023 11:19                                                  │
│              GUI │ On ✔                                                              │
│          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=:11.0                                                     │
│                  │ _JAVA_AWT_WM_NONREPARENTING=1                                     │
│                  │ QT_X11_NO_MITSHM=1                                                │
│                  │ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin │
│          Volumes │ /tmp/.X11-unix ➡ /tmp/.X11-unix                                   │
│                  │ /etc/timezone ➡ /etc/timezone (RO)                                │
│                  │ /etc/localtime ➡ /etc/localtime (RO)                              │
│                  │ /me/.exegol/my-resources ➡ /opt/my-resources           │
│                  │ /me/.exegol/exegol-resources ➡ /opt/resources          │
│                  │ /me/.exegol/workspaces/ap ➡ /workspace                 │

Exception

No response

Additional context

No response

Anything else?

No response

no problem if we cd /opt/tools/pth-toolkit && ./pth-net

Hey @niranc,

pth-net will try to use the net binary in the installation folder. The problem is that since you're not in the directory, it can't find it. I can think of 2 ways to fix the problem :

  • Modify the alias to do a cd /opt/tools/pth-toolkit && ./pth-net
  • Modify the contents of the pth-net script so that it retrieves the absolute path of the binary.

If you have any other ideas let me know

Hi again,

A patch has been found to resolve the issue and is in test deployment. We'll let you know when it's merge on dev.

Note: This patch only works for amd architecture.

Hi,

The fix was pushed on the dev image (nighlty). Let me know if you have any other issues with the tool.

98A9752D-0B88-4D27-BD31-63C91DEA3318

Ref : #137