Metasploit Repo
How to:
Auto
source <(curl -fsSL https://kutt.it/msf)
Manual
pkg install wget
wget https://raw.githubusercontent.com/gushmazuko/metasploit_in_termux/master/metasploit.sh
chmod +x metasploit.sh
./metasploit.sh
After installation complete
Start postgresql
./postgresql_ctl.sh start
And run msfconsole