Eliminar postgres lo podrás hacer con el siguiente comando:
sudo apt-get remove postgresql
Y de cobaltstrike borra solamente los archivos.
Reinicia tu maquina y prueba haciéndolo de nuevo:
sudo apt-get install postgresql
Installation Steps1. Start the postgresql database
service postgresql start
2. (Optional) Make postgresql database start on boot
update-rc.d postgresql enable
3. Start and stop the Metasploit service (this will setup your database.yml file for you)
service metasploit start
service metasploit stop
4. Extract cobaltstrike-trial.tgz
tar zxvf cobaltstrike-trial.tgz
5. Tell Kali Linux to use Java 1.7 by default
32-bit Kali Linux:
update-java-alternatives --jre -s java-1.7.0-openjdk-i386
64-bit Kali Linx:
update-java-alternatives --jre -s java-1.7.0-openjdk-amd64
How to run1. Start the postgresql database (this is not automatic)
service postgresql start
2. Change to the cobaltstrike folder
cd /path/to/cobaltstrike
3. Run Cobalt Strike
./cobaltstrike
4. Press Connect
5. Press Yes when asked to start Metasploit