Skip to content

Commit

Permalink
More scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
MysticalMike60t committed Oct 4, 2024
1 parent 14f637b commit 5d2c5c9
Show file tree
Hide file tree
Showing 3 changed files with 4,578 additions and 0 deletions.
33 changes: 33 additions & 0 deletions scripts/download-x64dbg.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
$originalLocation = Get-Location
$url = "https://github.com/x64dbg/x64dbg/releases/download/snapshot/snapshot_2024-10-03_12-14.zip"
$fileName = "snapshot_2024-10-03_12-14.zip"

# Move to Downloads folder
Write-Host "Moving to Downloads folder for user: $([System.Environment]::UserName)"
Set-Location "$env:USERPROFILE\Downloads"

Write-Host "Downloading $fileName..."
Invoke-WebRequest "$url" -OutFile "$fileName"
Write-Host "Downloaded file."

if (Test-Path "$fileName") {
Expand-Archive -Path $fileName -DestinationPath "x64dbg" -Force
Set-Location ./x64dbg/release/x64
}
else {
Write-Host "Error extracting contents of zip file."
exit 1
}

if (Test-Path "x64dbg.exe") {
Write-Host "Starting x64dbg.exe..."
Start-Process "./x64dbg.exe"
}
else {
Write-Host "x64dbg.exe does not exist."
exit 1
}

Set-Location $originalLocation
Write-Host "Returned to original directory: $originalLocation"
exit 1
Loading

0 comments on commit 5d2c5c9

Please sign in to comment.