hashtopolis / server

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

[BUG]: maxAgents not being set to TaskWrapper #1013

Closed zyronix closed 10 months ago

zyronix commented 10 months ago

Version Information

0.14.1

Hashcat

No response

Description

  1. Create a task, set the maxAgents to for example '1' in the task creation screen
  2. Update the task maxAgents in the task overview screen to for example 50.

The expected behavior would be that the TaskWrapper would be updatet to 50. But it will stay on 1.

After creation:
SELECT taskWrapperId,maxAgents FROM TaskWrapper;
+---------------+-----------+
| taskWrapperId | maxAgents |
+---------------+-----------+
|             1 |         1 |
+---------------+-----------+
SELECT taskId,taskName,maxAgents FROM Task;
+--------+----------+-----------+
| taskId | taskName | maxAgents |
+--------+----------+-----------+
|      1 | Test     |         1 |
+--------+----------+-----------+

After updating maxAgents to 50:
SELECT taskWrapperId,maxAgents FROM TaskWrapper;
+---------------+-----------+
| taskWrapperId | maxAgents |
+---------------+-----------+
|             1 |         1 |
+---------------+-----------+
SELECT taskId,taskName,maxAgents FROM Task;
+--------+----------+-----------+
| taskId | taskName | maxAgents |
+--------+----------+-----------+
|      1 | Test     |        50 |
+--------+----------+-----------+

Expected behavior would be that both would be set to 50. As this will result in only 1 agent being assigned to the task max.