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

msfconsole does not run on Ubuntu 24.04 LTS (aarch64) #19230

Closed
Reelix opened this issue Jun 3, 2024 · 3 comments
Closed

msfconsole does not run on Ubuntu 24.04 LTS (aarch64) #19230

Reelix opened this issue Jun 3, 2024 · 3 comments
Labels

Comments

@Reelix
Copy link
Contributor

Reelix commented Jun 3, 2024

Steps to reproduce

How'd you do it?

  1. Run
curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > msfinstall && \
  chmod 755 msfinstall && \
  ./msfinstall
  1. Wait for installation
  2. Run msfconsole

Were you following a specific guide/tutorial or reading documentation?

https://docs.metasploit.com/docs/using-metasploit/getting-started/nightly-installers.html

Expected behavior

msfconsole starts

Current behavior

Multiple jemalloc errors are thrown

reelix@reelix-oracle:~$ msfconsole
<jemalloc>: Unsupported system page size
<jemalloc>: Unsupported system page size
<jemalloc>: Unsupported system page size
<jemalloc>: Unsupported system page size
<jemalloc>: Unsupported system page size
<jemalloc>: Unsupported system page size
<jemalloc>: Unsupported system page size
<jemalloc>: Unsupported system page size
[FATAL] failed to allocate memory

Metasploit version

metasploit-framework_6.4.12~20240603094240~1rapid7-1_arm64.deb

Additional Information

After tracing /usr/bin/msfconsole to /etc/alternatives/msfconsole to /opt/metasploit-framework/bin/msfconsole and browsing through the shell script, I suspect it's something to do with the embedded version of Ruby.

reelix@reelix-oracle:~$ /opt/metasploit-framework/bin/../embedded/bin/ruby --version
<jemalloc>: Unsupported system page size
<jemalloc>: Unsupported system page size
<jemalloc>: Unsupported system page size
<jemalloc>: Unsupported system page size
<jemalloc>: Unsupported system page size
<jemalloc>: Unsupported system page size
<jemalloc>: Unsupported system page size
<jemalloc>: Unsupported system page size
[FATAL] failed to allocate memory

VS

reelix@reelix-oracle:~$ /usr/bin/ruby --version
ruby 3.2.3 (2024-01-18 revision 52bb2ac0a6) [aarch64-linux-gnu]

For reference, the system currently has 3/24GB RAM used, with 14GB free storage.

@adfoster-r7
Copy link
Contributor

I think this is due to: jemalloc/jemalloc#2639

@adfoster-r7
Copy link
Contributor

This should be fixed now; Let me know if you're having problems still 👍

a@ubuntuarm:~$ msfconsole
 
 ** Welcome to Metasploit Framework Initial Setup **
    Please answer a few questions to get started.
 
 
Would you like to use and setup a new database (recommended)? 
Please answer yes or no.
Would you like to use and setup a new database (recommended)? no
 
 ** Metasploit Framework Initial Setup Complete **
 
Metasploit tip: Display the Framework log using the log command, learn 
more with help log
 
IIIIII    dTb.dTb        _.---._
  II     4'  v  'B   .'"".'/|\`.""'.
  II     6.     .P  :  .' / | \ `.  :
  II     'T;. .;P'  '.'  /  |  \  `.'
  II      'T; ;P'    `. /   |   \ .'
IIIIII     'YvP'       `-.__|__.-'
 
I love shells --egypt
 
 
       =[ metasploit v6.4.14-dev-e2516bd4946d6cec05e24373bf6b14b6fbb91893]
+ -- --=[ 2430 exploits - 1252 auxiliary - 428 post       ]
+ -- --=[ 1468 payloads - 47 encoders - 11 nops           ]
+ -- --=[ 9 evasion                                       ]
 
Metasploit Documentation: https://docs.metasploit.com/
 
msf6 > irb -e 'puts RUBY_DESCRIPTION'
ruby 3.1.5p252 (2024-04-23 revision 1945f8dc0e) [aarch64-linux]
msf6 > 

@Reelix
Copy link
Contributor Author

Reelix commented Jun 19, 2024

I can confirm that this is fixed!

1.) Did an update with http://downloads.metasploit.com/data/releases/metasploit-framework/apt lucid/main
2.) Got 6.4.14~20240617094250~1rapid7-1
3.) Ran with v6.4.14-dev-e2516bd4946d6cec05e24373bf6b14b6fbb91893
4.) msfconsole now runs successfully!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

No branches or pull requests

2 participants