You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Hashtopolis client fails to run on my Windows 11 system due to an issue with the wmic command. The error occurs when the client tries to retrieve CPU information using wmic. However, wmic is deprecated and no longer available on modern Windows 11 installations. This results in a subprocess.CalledProcessError.
Steps to Reproduce:
Download agent.zip
Run python main.py on a Windows 11 system.
Observe the error.
Output
~\Downloads\hashtopolis(1) via 🐍 v3.12.7
❯ python .\__main__.py
Found existing lock.pid, checking if python process is running...
Ignoring lock.pid file because PID is not existent anymore or not running python!
Starting client 's3-python-0.7.2.4'...
Collecting agent data...
Der Befehl "wmic" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
Traceback (most recent call last):
File "C:\Users\ceddi\Downloads\hashtopolis(1)\__main__.py", line 377, in <module>
init(args)
File "C:\Users\ceddi\Downloads\hashtopolis(1)\__main__.py", line 164, in init
Initialize().run(args)
File "C:\Users\ceddi\Downloads\hashtopolis(1)\htpclient\initialize.py", line 25, in run
self.__update_information()
File "C:\Users\ceddi\Downloads\hashtopolis(1)\htpclient\initialize.py", line 107, in __update_information
output = subprocess.check_output("wmic cpu get name", shell=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\ceddi\AppData\Local\Programs\Python\Python312\Lib\subprocess.py", line 466, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\ceddi\AppData\Local\Programs\Python\Python312\Lib\subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'wmic cpu get name' returned non-zero exit status 1.
Thanks for your detailed bug report. I think the best solution for this would be to use python code to determine the cpu architecture when on windows. For example use the platform.processor() function. That way we wont be reliant on which windows version is being used.
Version Information
hashtopolis/backend:latest sha256:22be0c644c3eff473b5bc10c99f360659de8aed74bc1c2a719d3e49baeb5f00e
Hashcat
Description
Description:
The Hashtopolis client fails to run on my Windows 11 system due to an issue with the wmic command. The error occurs when the client tries to retrieve CPU information using wmic. However, wmic is deprecated and no longer available on modern Windows 11 installations. This results in a subprocess.CalledProcessError.
Steps to Reproduce:
Output
Fatfetch
The text was updated successfully, but these errors were encountered: