Metasploit não vai lançar

0

Eu baixei recentemente o Metasploit e tentei rodá-lo digitando msfconsole, mas eu entendi:

** 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)? (I put Yes)
/opt/metasploit-framework/embedded/framework/msfdb:176:in 'initialize': Permission denied @ rb_sysopen - /home/jackattack/.msf4/database.yml (Errno::EACCES)
    from /opt/metasploit-framework/embedded/framework/msfdb:176:in 'open'
    from /opt/metasploit-framework/embedded/framework/msfdb:176:in 'init_db'
    from /opt/metasploit-framework/embedded/framework/msfdb:277:in '<main>'

 ** Metasploit Framework Initial Setup Complete **

touch: cannot touch '/home/jackattack/.msf4/initial_setup_complete': Permission denied
Rails Error: Unable to access log file. Please ensure that /home/jackattack/.msf4/logs/production.log exists and is writable (ie, make it writable for user and group: chmod 0664 /home/jackattack/.msf4/logs/production.log). The log level has been raised to WARN and the output directed to STDERR until the problem is fixed.
/opt/metasploit-framework/embedded/framework/lib/rex/logging/sinks/flatfile.rb:21:in 'initialize': Permission denied @ rb_sysopen - /home/jackattack/.msf4/logs/framework.log (Errno::EACCES)
    from /opt/metasploit-framework/embedded/framework/lib/rex/logging/sinks/flatfile.rb:21:in 'new'
    from /opt/metasploit-framework/embedded/framework/lib/rex/logging/sinks/flatfile.rb:21:in 'initialize'
    from /opt/metasploit-framework/embedded/framework/lib/msf/base/logging.rb:24:in 'new'
    from /opt/metasploit-framework/embedded/framework/lib/msf/base/logging.rb:24:in 'init'
    from /opt/metasploit-framework/embedded/framework/lib/msf/base/simple/framework.rb:111:in 'simplify'
    from /opt/metasploit-framework/embedded/framework/lib/msf/base/simple/framework.rb:73:in 'create'
    from /opt/metasploit-framework/embedded/framework/lib/msf/ui/console/driver.rb:74:in 'initialize'
    from /opt/metasploit-framework/embedded/framework/lib/metasploit/framework/command/console.rb:62:in 'new'
    from /opt/metasploit-framework/embedded/framework/lib/metasploit/framework/command/console.rb:62:in 'driver'
    from /opt/metasploit-framework/embedded/framework/lib/metasploit/framework/command/console.rb:48:in 'start'
    from /opt/metasploit-framework/embedded/framework/lib/metasploit/framework/command/base.rb:82:in 'start'
    from /opt/metasploit-framework/bin/../embedded/framework/msfconsole:48:in '<main>'
    
por Jack Attack 09.05.2017 / 04:11

1 resposta

0

% bl0ck_qu0te%

Esse problema pode ser que seu arquivo .msf4/database.yml pertence a outro usuário (provavelmente root, você executou o metasploit como root antes?)

Você pode verificar a propriedade com ls -l ~/.msf4 .

Se você quiser alterá-lo, execute chown -R $(whoami) ~/.msf4 (suponha que você tenha efetuado login como jackattack )

    
por P.-H. Lin 09.05.2017 / 06:23