Skip to content

Commit 7b1e33e

Browse files
authored
Update hashcat_runner.sh
Fix orphaned reference to rule file for filesize calculation
1 parent 4bdcf8d commit 7b1e33e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hashcat/hashcat_runner.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ OutputFolder=""#e.g."/home/hacker/project/cracked_pass/"
1717
function ProfileLarge(){
1818
for RULE in "$RuleFolder"/*;
1919
do
20-
FILESIZE=$(stat -c%s "$FILE")
20+
FILESIZE=$(stat -c%s "$RULE")
2121
if [ "$FILESIZE" -le "10240" ]
2222
then
2323
rulefile=$(basename "$RULE" | sed 's/\(.*\)\..*/\1/')
@@ -88,4 +88,4 @@ do
8888
else
8989
echo "Seems $currentWordlist is too large"
9090
fi
91-
done
91+
done

0 commit comments

Comments
 (0)