Skip to content

Commit a308cc3

Browse files
committed
fix: add in extra salt check
1 parent 4e418eb commit a308cc3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/inc/utils/HashlistUtils.class.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1144,7 +1144,9 @@ public static function getCrackedHashes($hashlistId, $user) {
11441144
"crackpos" => $entry->getCrackPos()
11451145
];
11461146
if ($hashlist->getIsSalted()) {
1147-
$arr["hash"] .= $hashlist->getSaltSeparator() . $entry->getSalt();
1147+
if (strlen($entry->getSalt()) > 0) {
1148+
$arr["hash"] .= $hashlist->getSaltSeparator() . $entry->getSalt();
1149+
}
11481150
}
11491151
$hashes[] = $arr;
11501152
}

0 commit comments

Comments
 (0)