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

Metasploit overwrites the database config #257

Open
GoogleCodeExporter opened this issue Aug 13, 2015 · 2 comments
Open

Metasploit overwrites the database config #257

GoogleCodeExporter opened this issue Aug 13, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

Everytime someone updates msf, it overwrites the database config for the user. 
This is very annoying.
We should either config_protect it of remove the file and put an example 
instead.

File is /usr/lib/metasploit/config/database.yml

TIA

Original issue reported on code.google.com by [email protected] on 23 Apr 2014 at 8:22

@GoogleCodeExporter
Copy link
Author

yeah there is a problem, the database file isn't 
/usr/lib/metasploit/config/database.yml, it's 
/usr/lib{64,}/metasploit${SLOT}/config/database.yml

I don't see an easy way to handle this, we can config_protect it for 9999 
easily enough but the other versions it's just going to install a new one for 
every slot.

Would it maybe make more sense to have a database.yml in ~/.msf4 and call it 
from there? that way the ebuild never overwrites it and we only use the one in 
/usr/lib/metasploit/config/ if there isn't one in ~

If this is okay i think I can pull it off.

Original comment by sidhayn on 2 May 2014 at 1:30

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

As you want. An other solution is to put an example file there and ask ppl to 
create their own config file if they want to use the DB.


Original comment by [email protected] on 2 May 2014 at 9:48

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

No branches or pull requests

1 participant