Skip to content

[BUG]: Creating a task for a hashlist with 0 remaining hashes causes an agent error loop #2515

Description

@therokh

Version Information

1.0.1

Hashcat

No response

Description

When creating a task for a hashlist with zero remaining hashes, the agent will attempt to run the task and fail on downloading chunks.

Client side log:

{'action': 'getTask', 'token': 'OqXtxPLKQU'}
http://$HASHTOPOLIS_URL:8082 "POST /api/server.php HTTP/1.1" 200 404
b'{"action":"getTask","response":"SUCCESS","taskId":71,"attackcmd":"-a 0 #HL#  somewordlist.txt","cmdpars":" --hash-type=22000 ","hashlistId":4,"bench":30,"statustimer":5,"files":["somewordlist.txt"],"crackerId":2,"benchType":"speed","hashlistAlias":"#HL#","keyspace":2,"usePreprocessor":false,"preprocessor":0,"preprocessorCommand":"","enforcePipe":false,"slowHash":false,"useBrain":false}'
Got task with id: 71
{'action': 'downloadBinary', 'token': 'OqXtxPLKQU', 'type': 'cracker', 'binaryVersionId': 2}
http://$HASHTOPOLIS_URL:8082 "POST /api/server.php HTTP/1.1" 200 159
b'{"action":"downloadBinary","response":"SUCCESS","url":"https:\\/\\/hashcat.net\\/beta\\/hashcat-7.1.2-821-g8a58f48.7z","name":"hashcat","executable":"hashcat.bin"}'
{'action': 'getFile', 'token': 'OqXtxPLKQU', 'taskId': 71, 'file': 'known_wifi_passwords.txt'}
http://$HASHTOPOLIS_URL:8082 "POST /api/server.php HTTP/1.1" 200 156
b'{"action":"getFile","response":"SUCCESS","filename":"somewordlist.txt","extension":"txt","url":"getFile.php?file=12&token=OqXtxPLKQU","filesize":33}'
File is present on agent and has matching file size.
{'action': 'getChunk', 'token': 'OqXtxPLKQU', 'taskId': 71}
http://$HASHTOPOLIS_URL:8082 "POST /api/server.php HTTP/1.1" 200 74
b'{"action":"getChunk","response":"ERROR","message":"Internal server error"}'
Getting of chunk failed: {'action': 'getChunk', 'response': 'ERROR', 'message': 'Internal server error'}

Server side log:

$CLIENT_IP - - [03/Oct/2026:01:52:05 +0000] "POST /api/server.php HTTP/1.1" 200 759 "-" "s3-python-0.7.6"
[Sat Oct 03 01:52:05.433216 2026] [php:warn] [pid 268:tid 268] [client $CLIENT_IP:35624] PHP Warning:  Trying to access array offset on null in /var/www/html/src/inc/utils/ChunkUtils.php on line 210
[Sat Oct 03 01:52:05.433309 2026] [php:notice] [pid 268:tid 268] [client $CLIENT_IP:35624] AgentApi [getChunk]: Hashtopolis\\inc\\Util::createLogEntry(): Argument #2 ($issuerId) must be of type string, null given, called in /var/www/html/src/inc/utils/ChunkUtils.php on line 210

I assume that the server is not generating any chunks because there are zero remaining hashes.

My intention was to re-run a known hashlist with a known wordlist to test an issue with cracks not being sent/uploaded by the server.

Activity

  1. therokh commented on Oct 3, 2026

    @therokh
    Author

    Also, clicking Export Left Hashes on a task with 0 remaining hashes creates an empty file in Files > Other. It should probably report that there are no hashes to export.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingserverHashtopolis API/Server related

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions