mirror of
https://github.com/hashcat/hashcat.git
synced 2025-02-20 11:32:12 +00:00
Restrict loopback option to straight attack-mode
This commit is contained in:
parent
9b3d18f87d
commit
c297678536
@ -104,6 +104,7 @@ It combines all features of all hashcat projects in one project.
|
|||||||
- Synchronize maximum output line size with input line size
|
- Synchronize maximum output line size with input line size
|
||||||
- Increased maximum hash line size to 0x50000
|
- Increased maximum hash line size to 0x50000
|
||||||
- Run weak-hash checks only in straight-attack mode, this greatly reduces code complexity
|
- Run weak-hash checks only in straight-attack mode, this greatly reduces code complexity
|
||||||
|
- Restrict loopback option to straight attack-mode
|
||||||
- Moved rules_optimize to hashcat-utils
|
- Moved rules_optimize to hashcat-utils
|
||||||
- Stick to older libOpenCL in binary package to avoid errors like this: version `OPENCL_2.0' not found
|
- Stick to older libOpenCL in binary package to avoid errors like this: version `OPENCL_2.0' not found
|
||||||
- Tightened hash parser for several algorithms
|
- Tightened hash parser for several algorithms
|
||||||
|
@ -6330,13 +6330,7 @@ int main (int argc, char **argv)
|
|||||||
|
|
||||||
if (loopback == 1)
|
if (loopback == 1)
|
||||||
{
|
{
|
||||||
if (attack_mode == ATTACK_MODE_BF)
|
if (attack_mode == ATTACK_MODE_STRAIGHT)
|
||||||
{
|
|
||||||
log_error ("ERROR: Parameter loopback not allowed in attack-mode 3");
|
|
||||||
|
|
||||||
return (-1);
|
|
||||||
}
|
|
||||||
else if (attack_mode == ATTACK_MODE_STRAIGHT)
|
|
||||||
{
|
{
|
||||||
if ((rp_files_cnt == 0) && (rp_gen == 0))
|
if ((rp_files_cnt == 0) && (rp_gen == 0))
|
||||||
{
|
{
|
||||||
@ -6345,6 +6339,12 @@ int main (int argc, char **argv)
|
|||||||
return (-1);
|
return (-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
log_error ("ERROR: Parameter loopback allowed in attack-mode 0 only");
|
||||||
|
|
||||||
|
return (-1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (debug_mode > 0)
|
if (debug_mode > 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user