Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: Running Health Check fails on Windows 11 agent #1019

Open
Doridian opened this issue Oct 27, 2023 · 0 comments
Open

[BUG]: Running Health Check fails on Windows 11 agent #1019

Doridian opened this issue Oct 27, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@Doridian
Copy link

Doridian commented Oct 27, 2023

Version Information

backend 0.14.1, agent 0.7.1.2

Hashcat

6.2.6

Description

The UI shows the error message

[
    "''\"hashcat.exe\"'' is not recognized as an internal or external command,",
    "operable program or batch file.",
    "Faild to retrieve one successful cracker state, most likely due to failing."
]

Running the agent with --debug shows the following logs:

{'action': 'getHealthCheck', 'token': '[SNIP]'}
https://htpl.foxden.network:443 "POST /api/server.php HTTP/1.1" 200 164
b'{"action":"getHealthCheck","response":"SUCCESS","attack":" --hash-type=3200 #HL# -a 3 ?l?l?l ","crackerBinaryId":1,"hashes":[""],"checkId":3,"hashlistAlias":"#HL#"}'
{'action': 'downloadBinary', 'token': '[SNIP]', 'type': 'cracker', 'binaryVersionId': 1}
https://htpl.foxden.network:443 "POST /api/server.php HTTP/1.1" 200 147
b'{"action":"downloadBinary","response":"SUCCESS","url":"https:\\/\\/hashcat.net\\/files\\/hashcat-6.2.6.7z","name":"hashcat","executable":"hashcat.exe"}'
Starting check ID 3
CALL: C:\hashtopolis\crackers\1\hashcat.exe --version
CALL: '"hashcat.exe"' --machine-readable --quiet --restore-disable --potfile-disable --session=health  --hash-type=3200 'C:\hashtopolis\hashlists\health_check.txt' -a 3 ?l?l?l  -o 'C:\hashtopolis\hashlists\health_check.out'
Started health check attack
{'action': 'sendHealthCheck', 'token': '[SNIP]', 'numCracked': -1, 'start': 1698365126, 'end': 1698365126, 'numGpus': 0, 'errors': ['\'\'"hashcat.exe"\'\' is not recognized as an internal or external command,', 'operable program or batch file.', 'Faild to retrieve one successful cracker state, most likely due to failing.'], 'checkId': 3}
https://htpl.foxden.network:443 "POST /api/server.php HTTP/1.1" 200 44
b'{"action":"sendHealthCheck","response":"OK"}'
Health check completed successfully!
{'action': 'getTask', 'token': '[SNIP]'}

I tried my own hand at fixing it yesterday via hashtopolis/agent-python@master...Doridian:hashtopolis-agent-python:main however that only changed the error, and did not resolve it, so I am unsure if my fix was even the right approach here.

I should note:

  • Health checks on my Linux clients are working perfectly
  • Tasks on Windows machines run just fine, this is health checks specifically
@Doridian Doridian added the bug Something isn't working label Oct 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant