hashtopolis / server

Hashtopolis - distributed password cracking with Hashcat
GNU General Public License v3.0
1.45k stars 220 forks source link

[BUG]: Multicast Problem #1003

Open at2023 opened 1 year ago

at2023 commented 1 year ago

Version Information

0.14.1

Hashcat

6.2.6

Description

Major problems encountered when activating multicast. We encountered several issues:

  1. Firstly, we need to install Python within the Docker container 'hashtopolis-backend'. After that, we need to install the 'pip' command in order to install packages required for activating the runner, such as 'service' and 'mysql-connector'. However, the 'pip' command is not working as expected. To resolve this, we can create a virtual environment. Creating a virtual environment entails modifying the code in 'RunnerUtils.class.php'.
  2. The second problem pertains to the file 'HTDatabase.py' in 'runner.zip', which requires the 'conf.php' file. However, this file does not exist, but I did find a file named 'conf.template.php', which means that I should manually create the 'conf.php' file.
  3. I have encountered an incompatibility issue between the authentication methods used in the Python code. It appears that the code requires the 'mysql_native_password' method, whereas MySQL 8.0.0 uses 'caching_sha2_password' as the default method. When I attempted to change the method to the older one, the connection with the MySQL database was severed, resulting in a loss of connection with the Hashtopolis server. As a result, I had to reinstall Hashtopolis from scratch.

[2023-09-27 08:28:22] [INFO ] Starting Hashtopolis service runner v0.1.0... [2023-09-27 08:28:22] [ERROR] DB connection file of Hashtopolis is not present! [2023-09-27 08:44:53] [INFO ] Starting Hashtopolis service runner v0.1.0... [2023-09-27 08:44:53] [ERROR] Authentication plugin 'caching_sha2_password' is not supported Traceback (most recent call last): File "/usr/local/lib/python3.11/dist-packages/service/init.py", line 495, in runner self.run() File "/var/www/html/src/inc/runner/runner.zip/htpserver/HTService.py", line 38, in run self.database = HTDatabase(self.working_dir) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/var/www/html/src/inc/runner/runner.zip/htpserver/HTDatabase.py", line 43, in init self.db = mysql.connector.connect(host=self.host, user=self.user, passwd=self.password, port=self.port, database=self.db) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/dist-packages/mysql/connector/init.py", line 179, in connect return MySQLConnection(*args, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/dist-packages/mysql/connector/connection.py", line 95, in init self.connect(kwargs) File "/usr/local/lib/python3.11/dist-packages/mysql/connector/abstracts.py", line 716, in connect self._open_connection() File "/usr/local/lib/python3.11/dist-packages/mysql/connector/connection.py", line 208, in _open_connection self._do_auth(self._user, self._password, File "/usr/local/lib/python3.11/dist-packages/mysql/connector/connection.py", line 137, in _do_auth packet = self._protocol.make_auth( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/dist-packages/mysql/connector/protocol.py", line 99, in make_auth packet += self._auth_response(client_flags, username, password, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/dist-packages/mysql/connector/protocol.py", line 58, in _auth_response auth = get_auth_plugin(auth_plugin)( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/dist-packages/mysql/connector/authentication.py", line 190, in get_auth_plugin raise errors.NotSupportedError( mysql.connector.errors.NotSupportedError: Authentication plugin 'caching_sha2_password' is not supported

@zyronix @s3inlc @hops @rixvet