Foro de elhacker.net

Sistemas Operativos => GNU/Linux => Mensaje iniciado por: GozStar en 25 Julio 2022, 20:36 pm



Título: Error Armitage,....
Publicado por: GozStar en 25 Julio 2022, 20:36 pm
The authentication type 10 is not supported .check that you have configured  pg_hba.conf to include ithe clients p address or subnet....


Título: Re: Error Armitage,....
Publicado por: BloodSharp en 25 Julio 2022, 22:35 pm
Mmm es mejor siempre utilizar msfconsole, aún así me fijé en Kali:

Citar
Paquete: armitage
Versión: 20220123-0kali3
Arquitectura: all
Instalado: no
Prioridad: optional
Esencial: no
Section: utils
Source: armitage
Origin: Kali
Maintainer: Kali Developers <devel@kali.org>
Installed-Size: 11.5 MB
Depende: default-jre, metasploit-framework
Homepage: https://github.com/r00t0v3rr1d3/armitage
Download-Size: 5.0 MB
APT-Sources: http://http.kali.org/kali/ kali-rolling/main all Packages
Descripción: Cyber attack management for Metasploit
 Armitage is a scriptable red team collaboration tool for Metasploit that
 visualizes targets, recommends exploits, and exposes the advanced post-
 exploitation features in the framework.

Esto al parecer tiene 2 soluciones, que en realidad hacen lo mismo:

Cita de: https://github.com/r00t0v3rr1d3/armitage
Instructions for Armitage on Kali 2021.4a with latest updates. Do everything below within a root prompt!:

msfdb init

edit /etc/postgresql/14/main/pg_hba.conf

on the line 97 (IPV4 local connections)
switch “scram-sha-256” to “trust”

systemctl enable postgresql
systemctl start postgresql

Cita de: https://forums.hak5.org/topic/56455-armitage-connection-problem/?do=findComment&comment=352640
This is to do with how postgresql 13+ versions authenticate.

Step 1.
In file explorer navigate to etc/postgresql/14/main

Step 2.
Open pg_hba.conf in Mousepad and find the line
host all all 127.0.0.1/32 scram-sha-256

change the line to
host all all 127.0.0.1/32 trust

*NB the file may be read only, in which case open terminal and follow Step 3

Step 3.
Open Terminal type the following
sudo chmod 777 /etc/postgresql/14/main/pg_hba/conf

*Now return to Step 2.

Step 4.
Open Terminal and type the following

# Start the PostgreSQL Database
systemctl start postgresql
# Initialize the Metasploit Framework Database
msfdb init
# Start Armitage
armitage

Step 5. Success!


B#