hashtopolis / server

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

500 Internal Server Error when creating Preconfigured Task #668

Closed shivanraptor closed 2 years ago

shivanraptor commented 4 years ago

Use github issues only for bugs/feature requests - for discussions, general help and questions use the forum: https://hashtopolis.org Before you submit an issue please include the following information if you do not your issue will be closed.

Describe your problem in as much detail as possible " It's broke " is not a description.

  1. Uploaded quite a number of rulesets to Hashtopolis
  2. In "Task > New Preconfigured Task", I ticked all rulesets available on the right, which generated the command above (I didn't manually edit the command)
  3. After filling in the Task name and leave other options by default, and click "Create preconfigured task", the browser shows "500 Internal Server Error".

I checked the PHP error log in the server, it said:

PHP Fatal error: Uncaught PDOException: SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'attackCmd' at row 1 in /path/to/AbstractModelFactory.class.php:114

Seems that Hashtopolis didn't warn when the command is too long for the database field.

s3inlc commented 2 years ago

Fix is merged into master already, therefore closing the issue.