metasploit | install | maintenance | discovery
the hard way
see postgres-install
apt install ruby ruby-dev build-essential ruby-bundler yard libpq-dev libpcap0.8 libpcap-dev nmap # ruby-pg
as root
get latest
cd /opt/ git clone https://github.com/rapid7/metasploit-framework.git cd metasploit-framework/ #export http_proxy=... #export HTTP_PROXY=$http_proxy time bundle update --bundler bundle install yard config --gem-install-yri
for MSF in $(ls msf*); do ln -svf /opt/metasploit-framework/$MSF /usr/local/bin/$MSF; done; unset MSF
see metasploit & metasploit-usage
https://www.metasploit.com/download
https://docs.metasploit.com/docs/using-metasploit/getting-started/nightly-installers.html
https://docs.rapid7.com/metasploit/installing-the-metasploit-framework/
Setting Up a Metasploit Development Environment https://github.com/rapid7/metasploit-framework/wiki/Setting-Up-a-Metasploit-Development-Environment#set-up-postgresql
Nightly Installers https://github.com/rapid7/metasploit-framework/wiki/Nightly-Installers
Setting Up a Metasploit Development Environment https://github.com/rapid7/metasploit-framework/wiki/Setting-Up-a-Metasploit-Development-Environment
Installing Metasploit Framework on Ubuntu 18.04 LTS and Debian 7 https://www.darkoperator.com/installing-metasploit-in-ubunt/
How to Exploit BlueKeep Vulnerability with Metasploit https://pentest-tools.com/blog/bluekeep-exploit-metasploit/
Exploiting BlueKeep https://medium.com/@jonathanchelmus/bluekeepn-it-real-9e99a45dfceb
Downloads https://www.postgresql.org/download/
Linux downloads (Debian) https://www.postgresql.org/download/linux/debian/ https://wiki.postgresql.org/wiki/Apt
How To Install and Use PostgreSQL on Ubuntu 16.04 https://www.digitalocean.com/community/tutorials/how-to-install-and-use-postgresql-on-ubuntu-16-04
Metasploit Postgres Setup https://fedoraproject.org/wiki/Metasploit_Postgres_Setup
Metasploit Penetration Testing Framework https://fedoraproject.org/wiki/Metasploit_Penetration_Testing_Framework
Error Connecting to Posgresql Database (metasploit) #2 https://github.com/r00t-3xp10it/venom/issues/2
initdb — create a new PostgreSQL database cluster https://www.postgresql.org/docs/12/app-initdb.html
PostgreSQL “initdb” (Database Initialization) on Linux https://stackoverflow.com/questions/32041907/postgresql-initdb-database-initialization-on-linux
warning: constant Gem::ConfigMap is deprecated #3068
https://github.com/rubygems/rubygems/issues/3068
–> DEBIAN_DISABLE_RUBYGEMS_INTEGRATION
Work needed to allow msfdb to use postgresql common https://github.com/rapid7/metasploit-framework/wiki/Work-needed-to-allow-msfdb-to-use-postgresql-common –> build pg from scratch