hashcat@6.2.6: Persist potfile (#5408)

* hashcat: Persist potfile

* Apply suggestions from code review

Co-authored-by: HUMORCE <humorce@outlook.com>

---------

Co-authored-by: HUMORCE <humorce@outlook.com>
This commit is contained in:
thegamerx1 2024-01-11 18:27:36 +01:00 committed by GitHub
parent fc09dded2e
commit de6224dd8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"