1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-12-22 22:58:30 +00:00

Merge pull request #3697 from matrix/fix_grep_out-of-memory_workaround

Fixed bug in grep out-of-memory workaround on Unit Test
This commit is contained in:
Jens Steube 2023-04-27 15:55:26 +02:00 committed by GitHub
commit bd101ae042
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 6 deletions

View File

@ -52,6 +52,7 @@
- Skip chained generated rules that exceed the maximum number of function calls
- Fixed incorrect plaintext check for 25400 and 26610. Increased plaintext check to 32 bytes to prevent false positives.
- Fixed bug in --stdout that caused certain rules to malfunction
- Fixed bug in grep out-of-memory workaround on Unit Test
- Fixed bug in input_tokenizer when TOKEN_ATTR_FIXED_LENGTH is used and refactor modules
- Fixed build failed for 18400 with Apple Metal
- Fixed build failed for 18600 with Apple Metal

View File

@ -591,7 +591,7 @@ function attack_0()
# out-of-memory, workaround
echo "${output}" | head -1 > tmp_file_out
echo "${output}" | grep -v "^Unsupported\|^$" | head -1 > tmp_file_out
echo "${search}" > tmp_file_search
out_md5=$(md5sum tmp_file_out | cut -d' ' -f1)
@ -874,7 +874,7 @@ function attack_1()
# out-of-memory, workaround
echo "${output}" | head -1 > tmp_file_out
echo "${output}" | grep -v "^Unsupported\|^$" | head -1 > tmp_file_out
echo "${search}" > tmp_file_search
out_md5=$(md5sum tmp_file_out | cut -d' ' -f1)
@ -1180,7 +1180,7 @@ function attack_3()
# out-of-memory, workaround
echo "${output}" | head -1 > tmp_file_out
echo "${output}" | grep -v "^Unsupported\|^$" | head -1 > tmp_file_out
echo "${search}" > tmp_file_search
out_md5=$(md5sum tmp_file_out | cut -d' ' -f1)
@ -1840,9 +1840,10 @@ function attack_6()
newRet=$?
if [ "${newRet}" -eq 2 ]; then
# out-of-memory, workaround
echo "${output}" | head -1 > tmp_file_out
echo "${output}" | grep -v "^Unsupported\|^$" | head -1 > tmp_file_out
echo "${search}" > tmp_file_search
out_md5=$(md5sum tmp_file_out | cut -d' ' -f1)
@ -2273,7 +2274,7 @@ function attack_7()
# out-of-memory, workaround
echo "${output}" | head -1 > tmp_file_out
echo "${output}" | grep -v "^Unsupported\|^$" | head -1 > tmp_file_out
echo "${search}" > tmp_file_search
out_md5=$(md5sum tmp_file_out | cut -d' ' -f1)
@ -2287,7 +2288,6 @@ function attack_7()
fi
if [ "${newRet}" -ne 0 ]; then
if [ "${newRet}" -eq 2 ]; then
ret=20
else