From de6224dd8b898795a935d96f8454536bcde9d591 Mon Sep 17 00:00:00 2001 From: thegamerx1 <34986564+thegamerx1@users.noreply.github.com> Date: Thu, 11 Jan 2024 18:27:36 +0100 Subject: [PATCH] hashcat@6.2.6: Persist potfile (#5408) * hashcat: Persist potfile * Apply suggestions from code review Co-authored-by: HUMORCE --------- Co-authored-by: HUMORCE --- bucket/hashcat.json | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bucket/hashcat.json b/bucket/hashcat.json index 248b9b8a4b..410416c026 100644 --- a/bucket/hashcat.json +++ b/bucket/hashcat.json @@ -10,7 +10,13 @@ } }, "extract_dir": "hashcat-6.2.6", - "pre_install": "Set-Content -Value \"@echo off`r`npushd $dir`r`nhashcat.exe %*`r`npopd\" -Path \"$dir\\hashcat.cmd\"", + "persist": "hashcat.potfile", + "pre_install": [ + "Set-Content -Value \"@echo off`r`npushd $dir`r`nhashcat.exe %*`r`npopd\" -Path \"$dir\\hashcat.cmd\"", + "# potfile, https://hashcat.net/faq/potfile", + "$pot = 'hashcat.potfile'", + "if (!(Test-Path \"$persist_dir\\$pot\")) { New-Item \"$dir\\$pot\" }" + ], "bin": "hashcat.cmd", "checkver": { "github": "https://github.com/hashcat/hashcat"