Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ruby Errors #51

Closed
qu35t-code opened this issue Aug 3, 2022 · 2 comments
Closed

Ruby Errors #51

qu35t-code opened this issue Aug 3, 2022 · 2 comments
Labels
arm64 ARM64 support is involved bug Something isn't working

Comments

@qu35t-code
Copy link
Member

I have a problem when launching ruby programs (msfconsole, evil-winrm) in exegol :

root@lab:/workspace# evil-winrm 
Traceback (most recent call last):
        2: from /usr/local/bin/evil-winrm:23:in `<main>'
        1: from /usr/lib/ruby/vendor_ruby/rubygems.rb:300:in `activate_bin_path'
/usr/lib/ruby/vendor_ruby/rubygems.rb:281:in `find_spec_for_exe': can't find gem evil-winrm (>= 0.a) with executable evil-winrm (Gem::GemNotFoundException)
root@lab:/workspace# msfconsole
/usr/bin/msfconsole: 107: exec: /opt/metasploit-framework/bin/../embedded/bin/ruby: Exec format error

To fix the problem of evil-winrm for example, I have to download the gem via: gem install evil-winrm

exegol is launched from a Mac M2 via the following docker command :

docker run --interactive --tty --detach --hostname lab -p 9000-9500:9000-9500 -w /workspace --name exegol nwodtuhs/exegol:full

Any solutions to solve the ruby problem ?

@qu35t-code
Copy link
Member Author

Is the problem related to the fact that I'm on a ARM ?

@ShutdownRepo ShutdownRepo transferred this issue from ThePorgs/Exegol Aug 17, 2022
@ShutdownRepo ShutdownRepo added bug Something isn't working macOS/M1 arm64 ARM64 support is involved labels Aug 17, 2022
@ShutdownRepo
Copy link
Member

Hey there, yes the issue should be related to your ARM architecture. Take a look at #8 and #9
The solution to the problem is the following : #9 (comment)
You will need to build a local image from a custom dockerfile, which can be like this one : https://github.com/ShutdownRepo/Exegol-images/blob/1efeb9f9e1e50ee7c6d9ac082223d2fae03cd4be/arm64.dockerfile
We are currently working on bringing multi-arch support on the images offered on the online registry (Dockerhub), in the meantime, building local images will do 😄
Closing the issue, feel free to open it again if needed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arm64 ARM64 support is involved bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants