Help Installing metasploit on Opensuse 13.2

Hi , i had try to install a frame work on Opensuse which is call metasploit ,

Here is the steps i had done :

But thing is when i run it …

i got a error message :

Rails Error: Unable to access log file. Please ensure that /home/ash/Desktop/y/apps/pro/msf3/log/production.log exists and is chmod 0666. The log level has been raised to WARN and the output directed to STDERR until the problem is fixed.
[li] Starting the Metasploit Framework console…[-] Warning, /home/ash/Desktop/y/apps/pro/ui/config/database.yml is not readable. Try running as root or chmod.[/li]> [-] No database definition for environment

/home/ash/Desktop/y/apps/pro/msf3/msfconsole: No such file or directory - infocmp -C
/home/ash/Desktop/y/apps/pro/vendor/bundle/ruby/1.9.1/gems/rb-readline-0.5.1/lib/rbreadline.rb:1814:in get_term_capabilities': undefined method split’ for nil:NilClass (NoMethodError)
from /home/ash/Desktop/y/apps/pro/vendor/bundle/ruby/1.9.1/gems/rb-readline-0.5.1/lib/rbreadline.rb:2026:in _rl_init_terminal_io' from /home/ash/Desktop/y/apps/pro/vendor/bundle/ruby/1.9.1/gems/rb-readline-0.5.1/lib/rbreadline.rb:2512:in readline_initialize_everything’
from /home/ash/Desktop/y/apps/pro/vendor/bundle/ruby/1.9.1/gems/rb-readline-0.5.1/lib/rbreadline.rb:3797:in rl_initialize' from /home/ash/Desktop/y/apps/pro/vendor/bundle/ruby/1.9.1/gems/rb-readline-0.5.1/lib/rbreadline.rb:4816:in readline’
from /home/ash/Desktop/y/apps/pro/vendor/bundle/ruby/1.9.1/gems/rb-readline-0.5.1/lib/readline.rb:45:in readline' from /home/ash/Desktop/y/apps/pro/msf3/lib/rex/ui/text/input/readline.rb:86:in pgets’
from /home/ash/Desktop/y/apps/pro/msf3/lib/rex/ui/text/shell.rb:184:in run' from /home/ash/Desktop/y/apps/pro/msf3/lib/metasploit/framework/command/console.rb:30:in start’
from /home/ash/Desktop/y/apps/pro/msf3/lib/metasploit/framework/command/base.rb:82:in start' from /home/ash/Desktop/y/apps/pro/msf3/msfconsole:48:in <main>’

Any help please .

On Mon 17 Nov 2014 04:36:26 AM CST, ashmu wrote:

Hi , i had try to install a frame work on Opensuse which is call
metasploit ,

Here is the steps i had done :

OpEN SUSE: Install And Use Metasploit Framework on Opensuse 13.2

But thing is when i run it …

i got a error message :

> Rails Error: Unable to access log file. Please ensure that
> /home/ash/Desktop/y/apps/pro/msf3/log/production.log exists and is
> chmod 0666. The log level has been raised to WARN and the output
> directed to STDERR until the problem is fixed.
> Starting the Metasploit Framework console…-] Warning,
> /home/ash/Desktop/y/apps/pro/ui/config/database.yml is not readable.
> Try running as root or chmod.
> -] No database definition for environment
>
>
>

>
> /home/ash/Desktop/y/apps/pro/msf3/msfconsole: No such file or
> directory
> - infocmp -C
> /home/ash/Desktop/y/apps/pro/vendor/bundle/ruby/1.9.1/gems/rb-readline-0.5.1/lib/rbreadline.rb:1814:in
> get_term_capabilities': undefined method split’ for nil:NilClass
> (NoMethodError)
> from
> /home/ash/Desktop/y/apps/pro/vendor/bundle/ruby/1.9.1/gems/rb-readline-0.5.1/lib/rbreadline.rb:2026:in
> `_rl_init_terminal_io’

from

/home/ash/Desktop/y/apps/pro/vendor/bundle/ruby/1.9.1/gems/rb-readline-0.5.1/lib/rbreadline.rb:2512:in
readline_initialize_everything' &gt; from &gt; /home/ash/Desktop/y/apps/pro/vendor/bundle/ruby/1.9.1/gems/rb-readline-0.5.1/lib/rbreadline.rb:3797:in &gt; rl_initialize’
from
/home/ash/Desktop/y/apps/pro/vendor/bundle/ruby/1.9.1/gems/rb-readline-0.5.1/lib/rbreadline.rb:4816:in
readline' &gt; from &gt; /home/ash/Desktop/y/apps/pro/vendor/bundle/ruby/1.9.1/gems/rb-readline-0.5.1/lib/readline.rb:45:in &gt; readline’
from
/home/ash/Desktop/y/apps/pro/msf3/lib/rex/ui/text/input/readline.rb:86:in
pgets' &gt; from /home/ash/Desktop/y/apps/pro/msf3/lib/rex/ui/text/shell.rb:184:in &gt; run’
from
/home/ash/Desktop/y/apps/pro/msf3/lib/metasploit/framework/command/console.rb:30:in
start' &gt; from &gt; /home/ash/Desktop/y/apps/pro/msf3/lib/metasploit/framework/command/base.rb:82:in &gt; start’
from /home/ash/Desktop/y/apps/pro/msf3/msfconsole:48:in
`<main>’
>

Any help please .

Hi
Grab Greg Freemyer’s version on the Build Service;
http://software.opensuse.org/package/metasploit

P.S. always helps to post the openSUSE version your using :wink:


Cheers Malcolm °¿° LFCS, SUSE Knowledge Partner (Linux Counter #276890)
SUSE Linux Enterprise Desktop 12 GNOME 3.10.1 Kernel 3.12.28-4-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!

Thanks i’am giving a try right now ,would you mind show me how to remove the actual version i just install ,

i did install the community version but :

[QUOTE][/QUOTE]ash@linux-ret6:~> msfconsole/usr/lib64/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in require': /opt/metasploit3/msf3/lib/rex/ui/text/input/socket.rb:64: invalid multibyte escape: /\xff\xf4\xff\xfd\x06/ (SyntaxError) invalid multibyte escape: /\xff\xed\xff\xfd\x06/ from /usr/lib64/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in require’
from /opt/metasploit3/msf3/lib/rex/ui/text/input.rb:18:in <class:Input>' from /opt/metasploit3/msf3/lib/rex/ui/text/input.rb:14:in <module:Text>’
from /opt/metasploit3/msf3/lib/rex/ui/text/input.rb:5:in <module:Ui>' from /opt/metasploit3/msf3/lib/rex/ui/text/input.rb:4:in <module:Rex>’
from /opt/metasploit3/msf3/lib/rex/ui/text/input.rb:3:in <top (required)>' from /usr/lib64/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in require’
from /usr/lib64/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in require' from /opt/metasploit3/msf3/lib/rex/ui.rb:11:in <top (required)>’
from /usr/lib64/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in require' from /usr/lib64/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in require’
from /opt/metasploit3/msf3/lib/msf/ui.rb:6:in <top (required)>' from /usr/lib64/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in require’
from /usr/lib64/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in require' from /usr/local/bin/msfconsole:20:in <main>’
ash@linux-ret6:~>

Hi
I would imagine the installer has an uninstall option, try;


./metasploit-latest-linux-x64-installer.run --help

ash@linux-ret6:~> ./metasploit-latest-linux-x64-installer.run --help
bash: ./metasploit-latest-linux-x64-installer.run: No such file or directory

Hi
In your example, you were root user on your normal users Desktop, you need to run from there… :wink:

linux-ret6:/home/ash/Desktop # ./metasploit-latest-linux-x64-installer.run --help
bash: ./metasploit-latest-linux-x64-installer.run: No such file or directory
linux-ret6:/home/ash/Desktop #

i guess i miss something out …

On Mon 17 Nov 2014 07:26:01 AM CST, ashmu wrote:

malcolmlewis;2676790 Wrote:
> Hi
> In your example, you were root user on your normal users Desktop, you
> need to run from there… :wink:

linux-ret6:/home/ash/Desktop #
…/metasploit-latest-linux-x64-installer.run --help
bash: ./metasploit-latest-linux-x64-installer.run: No such file or
directory
linux-ret6:/home/ash/Desktop #

i guess i miss something out …

Hi
It looks like it, you need to find where you have the file and run
it…


cd /
find . -name metasploit-latest-linux-x64-installer.run


Cheers Malcolm °¿° LFCS, SUSE Knowledge Partner (Linux Counter #276890)
SUSE Linux Enterprise Desktop 12 GNOME 3.10.1 Kernel 3.12.28-4-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!

[QUOTE][ind . -name metasploit-latest-linux-x64-installer.run./home/ash/.local/share/Trash/files/metasploit-latest-linux-x64-installer.run
find: ‘./run/user/1000/gvfs’: Permission denied

/QUOTE]

Had same issue , solved it by installing the package ncurses-devel
Hope this solves it for you as well.

Also be sure to have installed ruby :slight_smile:

*note just installed from the official page :slight_smile:

so can we assume no one is able to successfully run metasploit on openSUSE 13.2??
can anyone give a youtube link of a successfull deployment of metasploit on openSUSE 13.2?

Did you try the package suggested above?
Here is the link again…
https://software.opensuse.org/package/metasploit

TSU

On 11/17/2014 06:06 AM, ashmu wrote:
>
> Thanks i’am giving a try right now ,would you mind show me how to remove
> the actual version i just install
>
>

If I remember correctly, metasploit installs in /opt. Uninstall script
should be somewhere down that path.

~rs~