-
Notifications
You must be signed in to change notification settings - Fork 13.8k
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
Revert back to Kali 2 repository version? #6335
Comments
What you are likely running into is not a big-enough connection pool for the database. Edit your database.yml file (likely either under ~/.msf4/database.yml or /usr/share/metasploit-framework/config/database.yml ) and ensure that the 'pool' argument is big enough, like '200'. As of recently, the installer would create a database.yml file under ~/.msf4/ that only had a pool size of 5, which was too small for armitage. If you find your system has both ~/.msf4/database.yml and /usr/share/metasploit-framework/config/database.yml, try deleting or moving ~/.msf4/database.yml out of the way, and you should see it use your original database. Uninstall steps coming in a sec if that doesn't help. |
Note that on Kali, the above installer should refuse to make any changes to your database at all when running as the root user; are you running Kali as a regular non-root user? At any rate, to remove, try these steps:
I'd be happy help improve the experience for future versions; typically we haven't been testing the installs with armitage, but that's a good point. |
Thank you for the quick reply. I do have the old version back now, although armitage still doesn't work.
armitage console (nothing appears on term when I type this): I can use the UI without any problems, it just doesn't do anything. edit: after msfdb reinit, it would delete the environment variable MSF_DATABASE_CONFIG |
This is a point of divergence between Kali Linux's installation and the more general omnibus installers. Kali assumes you have a system-wide PostgreSQL instance that is the right version to work with metasploit. So, msfdb in Kali Linux's package is written to make that assumption, and assumes you are running as root. The omnibus installers instead assume that you are not running as root, and do not have a system-wide postgresql installation, so the database server is bundled in, and the database runs as the user who is using framework with data instead stored in the user's home directory. Omnibus does have a special Kali Linux exception, where if it sees the system-wide database, it will try using that (and it will bail if running as root). rapid7/metasploit-omnibus@ba405f6 I thought we had bundled the uninstall bits for Linux into 'msfremove' command, but apparently we only added it for OS X and Windows. Will make sure we add Linux as well: I'm not sure how Kali's armitage package determines where the database config is, but I think you're right, this is probably now beyond the scope of this issue. Thanks for the feedback. |
I made a ticket on the omnibus repo to simplify removal. Closing this out. |
I followed the instructions to install the latest nightly build for Metasploit-Framework:
curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > msfinstall &&
chmod 755 msfinstall &&
./msfinstall
This did work fine. However, it is full of bugs, crashing and using a different database than before, now using one database for armitage and another for the console (msf3 and msf respectively). I tried to uninstall via apt-get, and reinstall. But this installer did something to my package sources and it redownloaded the nightly build. I could downgrade again by deleting the files in /var/lib/apt/lists:
downloads.metasploit.com_data_releases_metasploit-framework_apt_dists_lucid_InRelease
downloads.metasploit.com_data_releases_metasploit-framework_apt_dists_lucid_main_binary-amd64_Packages
downloads.metasploit.com_data_releases_metasploit-framework_apt_dists_lucid_main_binary-i386_Packages
and reinstalling then. However whenever I run apt-get update it would recreate those files. sources.list does not have a new repository in it that i could simply take out.
Issue is: I want to revert back, tell me how please.
Another issue is now that after uninstalling and reinstalling everything, my armitage doesn't work at all anymore. At first it asked for a database to connect to, telling me to set an environment variable. I did that. After that it started, though it was not showing hosts, even after I add them manually, not responding to any commands I type into the console. Starting it from console throws timeouts on startup for different commands (db_status, some listener jobs). Basically it's completely useless now.
The text was updated successfully, but these errors were encountered: