Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
tunisiano187 committed Aug 30, 2024
1 parent 17434a8 commit cf501dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions automatic/hashcat/tools/hashcat.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$currentDir = Get-Location # Store location
$hashcatDir = (Get-ChildItem "$env:ChocolateyToolsLocation\hashcat*" -Directory).FullName

Set-Location "$env:ChocolateyToolsLocation\hashcat\" # Change to install-dir
Push-Location $hashcatDir

$argumentsString = $args -join ' ' # Join arguments to a string

Expand All @@ -11,4 +11,4 @@ else { # If not 64-bit
Invoke-Expression ".\hashcat32.exe $argumentsString" # Invoke 32-bit executable with parameters
}

Set-Location "$currentDir" # Change to the stored location
Pop-Location

0 comments on commit cf501dd

Please sign in to comment.